# The Pasteur Culture Collection of Cyanobacteria (PCC)
#
# Version 2023.02.22.01
# Last Updated february 22, 2023
# Author: Paolo Romano
# (c) CABRI 1999-2023

$CRBIP_PCC_CYANO_DB=$Library:[CRBIP_PCC_CYANO group:$CABRI_CYANO_LIBS
 res:$CRBIP_PCC_CYANO_RES
 comment:'Collection Institut Pasteur - Collection of cyanobacteria (Paris, France)'
 defaultEntryView:$Entries_View
 defaultView:$CABRI_Cyanobacteria_View
# defaultSortFld:'namesort'
 format:$CRBIP_PCC_CYANO_FORMAT maxNameLen:60
 files:{$LibFile:crbip_pcc_cyano}
 links:{ $Link:[$CRBIP_PCC_CYANO_DB to:$CRBIP_PCC_CYANO_MEDIA_DB
           fromField:$DF_CABRI_Conditions_for_growth toField:$DF_CABRI_Medium]
      }
 ]

$CRBIP_PCC_CYANO_FILE=$FileType:[text typeName:'dat' maxline:10000 fieldTokens:fields]
$CRBIP_PCC_CYANO_SYNTAX=$Syntax:[file:'SRSSITE:crbip_pcc_cyano.is' ignore:'\t']

$CRBIP_PCC_CYANO_FORMAT=$LibFormat:[fileType:$CRBIP_PCC_CYANO_FILE syntax:$CRBIP_PCC_CYANO_SYNTAX
 printFormat:table3 tableFormat:left
 fields:{
  $Field:[$DF_CABRI_Strain_number code:strain_no index:id
          indexToken:strain_no tableToken:'t_fields|strain_no' ]
  $Field:[$DF_CABRI_Other_collection_numbers code:other_nos index:str
          indexToken:'other_nos' tableToken:'t_fields|other_nos']
  $Field:[$DF_CABRI_Restrictions code:restrictions index:str
          indexToken:'strX|restrictions' tableToken:'t_fields|restrictions']
  $Field:[$DF_CABRI_Organism_type code:org_type index:str
          indexToken:'strX|org_type' tableToken:'t_fields|org_type']
  $Field:[$DF_CABRI_Name code:name index:str
          indexToken:'name' tableToken:'t_fields|name' ]
  $Field:[$DF_CABRI_Infrasubspecific_names code:inf_name index:str
          indexToken:'strX|inf_name' tableToken:'t_fields|inf_name']
  $Field:[$DF_CABRI_Status code:status index:str
          indexToken:'strX|status' tableToken:'t_fields|status']
  $Field:[$DF_CABRI_History code:history index:str
          indexToken:'strX|history' tableToken:'t_fields|history']
  $Field:[$DF_CABRI_Conditions_for_growth code:cond index:str
          indexToken:'strX|cond' tableToken:'t_fields|cond']
  $Field:[$DF_CABRI_Form_of_supply code:supply index:str
          indexToken:'strX|supply' tableToken:'t_fields|supply']
  $Field:[$DF_CABRI_Isolated_from code:isol_from index:str
          indexToken:'strX|isol_from' tableToken:'t_fields|isol_from']
  $Field:[$DF_CABRI_Geographic_origin code:geo_origin index:str
          indexToken:'strX|geo_origin' tableToken:'t_fields|geo_origin']
  $Field:[$DF_CABRI_Literature code:lit index:str
          indexToken:lit tableToken:'t_fields|lit']
#  $Field:[$DF_CABRI_Serovar code:serovar index:str
#          indexToken:'strX|serovar' tableToken:'t_fields|serovar']

  $Field:[$DF_CABRI_IDE]
  $Field:[$DF_CABRI_NAM]
  $Field:[$DF_CABRI_ALL]
  $Field:[$DF_CABRI_Information code:information index:show
          indexToken:'strX|name' token:'strX|name' tableToken:'t_fields|name']
    }
 ]

$CRBIP_PCC_CYANO_RL_DB=$Library:[CRBIP_PCC_CYANO_RL group:$CABRI_CYANO_HIDDEN_LIBS
 type:hidden 
 defaultView:$CABRI_Cyanobacteria_View
 format:$CRBIP_PCC_CYANO_RL_FORMAT maxNameLen:60
 files:{$LibFile:crbip_pcc_cyano}
 links:{ $Link:[$CRBIP_PCC_CYANO_RL_DB to:$CRBIP_PCC_CYANO_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Strain_number]
       }
 ]

$CRBIP_PCC_CYANO_RL_FORMAT=$LibFormat:[fileType:$CRBIP_PCC_CYANO_FILE syntax:$CRBIP_PCC_CYANO_SYNTAX
   printFormat:table3 tableFormat:left
   fields:{ $Field:[$DF_CABRI_Strain_number code:strain_no index:id
                    indexToken:strain_no tableToken:'t_fields|strain_no']  
            $Field:[$DF_CABRI_Other_collection_numbers code:other_nos index:str
                    indexToken:'other_nos' tableToken:'t_fields|other_nos']
    }
 ]

$CRBIP_PCC_CYANO_EL_DB=$Library:[CRBIP_PCC_CYANO_EL group:$CABRI_CYANO_HIDDEN_LIBS
 type:hidden 
 defaultView:$CABRI_Cyanobacteria_View
 format:$CRBIP_PCC_CYANO_EL_FORMAT maxNameLen:60
 files:{$LibFile:crbip_pcc_cyano}
 links:{ $Link:[$CRBIP_PCC_CYANO_EL_DB to:$CRBIP_PCC_CYANO_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Strain_number]
       }
 ]

$CRBIP_PCC_CYANO_EL_FORMAT=$LibFormat:[fileType:$CRBIP_PCC_CYANO_FILE syntax:$CRBIP_PCC_CYANO_SYNTAX
   printFormat:table3 tableFormat:left
   fields:{ $Field:[$DF_CABRI_Strain_number code:strain_no index:id
                    indexToken:strain_no tableToken:'t_fields|strain_no']  
            $Field:[$DF_CABRI_Other_collection_numbers code:other_nos index:str
                    indexToken:'other_nos' tableToken:'t_fields|other_nos']
    }
   ]