def supply_catalog_rheader(r):
 if (r.representation == 'html'):
  catalog = r.record
  if catalog:
   T = current.T
   tabs = [(T('Edit Details'), None), (T('Categories'), 'item_category'), (T('Items'), 'catalog_item')]
   rheader_tabs = s3_rheader_tabs(r, tabs)
   table = r.table
   rheader = DIV(TABLE(TR(TH(('%s: ' % table.name.label)), catalog.name), TR(TH(('%s: ' % table.organisation_id.label)), table.organisation_id.represent(catalog.organisation_id))), rheader_tabs)
   return rheader
 return None

def supply_catalog_rheader ( r ) : if ( r . representation == 'html' ) : catalog = r . record if catalog : T = current . T tabs = [ ( T ( 'Edit Details' ) , None ) , ( T ( 'Categories' ) , 'item_category' ) , ( T ( 'Items' ) , 'catalog_item' ) ] rheader_tabs = s3_rheader_tabs ( r , tabs ) table = r . table rheader = DIV ( TABLE ( TR ( TH ( ( '%s: ' % table . name . label ) ) , catalog . name ) , TR ( TH ( ( '%s: ' % table . organisation_id . label ) ) , table . organisation_id . represent ( catalog . organisation_id ) ) ) , rheader_tabs ) return rheader return None
resource header for catalogs .