# CABI Fungi Catalogue
#
# Version 2004.03.22.01
# Last Updated March 23, 2004
# Author: Domenico Marra & Francesca Piersigilli & Paolo Romano
# (c) CABRI 1999-2023

$CABI_FIL_DB=$Library:[CABI_FIL group:$CABRI_FUNGI_LIBS
 res:$CABI_FIL_RES
 comment:'CABI Bioscience Collection of Filamentous Fungi (Egham, United Kingdom)'
 defaultEntryView:$Entries_View
 defaultView:$CABRI_Fungi_View
 format:$CABI_FIL_FORMAT maxNameLen:60
 files:{$LibFile:cabi_fil}
 links:{ $Link:[$CABI_FIL_DB to:$BCCM_IHEM_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Other_collection_numbers]
         $Link:[$CABI_FIL_DB to:$BCCM_MUCL_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Other_collection_numbers]
       }
 ]

$CABI_FIL_FILE=$FileType:[text typeName:'dat' maxline:10000 fieldTokens:fields]
$CABI_FIL_SYNTAX=$Syntax:[file:'SRSSITE:cabi_fil.is' ignore:'\t']

$CABI_FIL_FORMAT=$LibFormat:[fileType:$CABI_FIL_FILE
  syntax:$CABI_FIL_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_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_Mutant code:mutant index:str
                   indexToken:'strX|mutant' tableToken:'t_fields|mutant']
           $Field:[$DF_CABRI_Literature code:lit index:str
                   indexToken:lit tableToken:'t_fields|lit']
           $Field:[$DF_CABRI_Race code:race index:str
                   indexToken:'strX|race' tableToken:'t_fields|race']
           $Field:[$DF_CABRI_Sexual_state code:sexual index:str
                   indexToken:'strX|sexual' tableToken:'t_fields|sexual']
           $Field:[$DF_CABRI_Pathogenicity code:patho index:str
                   indexToken:'strX|patho' tableToken:'t_fields|patho']

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

#
# CABI_FIL_RL is designed to cope with reverse links

$CABI_FIL_RL_DB=$Library:[CABI_FIL_RL group:$CABRI_FUNGI_HIDDEN_LIBS
 type:hidden
 defaultView:$CABRI_Fungi_View
 format:$CABI_FIL_RL_FORMAT maxNameLen:60
 files:{$LibFile:cabi_fil}
 links:{ $Link:[$CABI_FIL_RL_DB to:$BCCM_IHEM_RL_DB
           fromField:$DF_CABRI_Other_collection_numbers toField:$DF_CABRI_Strain_number]
         $Link:[$CABI_FIL_RL_DB to:$BCCM_MUCL_RL_DB
           fromField:$DF_CABRI_Other_collection_numbers toField:$DF_CABRI_Strain_number]
         $Link:[$CABI_FIL_RL_DB to:$CABI_FIL_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Strain_number]
       }
 ]

$CABI_FIL_RL_FORMAT=$LibFormat:[fileType:$CABI_FIL_FILE syntax:$CABI_FIL_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_l_fields|other_nos']
    }
 ]

# CABI_FIL_EL is designed to cope with reverse links

$CABI_FIL_EL_DB=$Library:[CABI_FIL_EL group:$CABRI_FUNGI_HIDDEN_LIBS
 type:hidden
 defaultView:$CABRI_Fungi_View
 format:$CABI_FIL_EL_FORMAT maxNameLen:60
 files:{$LibFile:cabi_fil}
 links:{ $Link:[$CABI_FIL_EL_DB to:$BCCM_IHEM_EL_DB
           fromField:$DF_CABRI_Other_collection_numbers
           toField:$DF_CABRI_Other_collection_numbers]
         $Link:[$CABI_FIL_EL_DB to:$BCCM_MUCL_EL_DB
           fromField:$DF_CABRI_Other_collection_numbers
           toField:$DF_CABRI_Other_collection_numbers]
         $Link:[$CABI_FIL_EL_DB to:$CABI_FIL_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Strain_number]
       }
 ]

$CABI_FIL_EL_FORMAT=$LibFormat:[fileType:$CABI_FIL_FILE
   syntax:$CABI_FIL_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_l_fields|other_nos']
    }
 ]