value: // key: name of the field // value is an array of parameters to define the field: // type: is required! and must be one of the following: // text: usual text field // checkbox: shows checkbox returns value // select: creates a selection list (drop down) // if a the parameter 'valueList' is set (to an array of strings) // it will be shown. // if it is not set, the list will be generated from the index // therefore the field name must match an index field // (if not an error will appear) // suggest: a field that provides suggestion on the input the user makes // number: creates a number field, where the user can choose integers. // it is recommended to define 'min' and 'max' in the 'config' array // deactivated: the field will not be writable // hideable: set to 'true' if the field can be added by the user on demand // config: is an array of attributes for the elements // e.g. 'size' or 'maxlength' // e.g. 'familyName' =>array('type'=>'text', 'config'=>array(size'=>45,'maxlength'=>45)) // (this will end up in a field like this: // ) // alt: if you have a group of fields, that have to be chosen one of them exclusively. // create a field in the field declaration section for each but only one in the // field definition section with the default selection and put the names of the // others in the 'alt' parameter see: familyName // TODO do we need or want this static??? private $_parameters = array ( 'fullScientificName' => array ( 'type' => 'suggest' ), 'familyName' => array ( // 'alt' => array('orderName', 'className', 'phylumName', 'kingdomName'), 'type' => 'suggest' ) // 'hideable'=>'true' , // 'taxonomyId' => array ( // 'type' => 'deactivated' , // 'hideable'=>'true' // ), 'country' => array ( 'type' => 'select' ) // 'valueList' => array('Foo','Bar','Batz') , // 'continent' => array ( // 'type' => 'select' // // 'type' => 'deactivated' // ), 'sea' => array ( 'type' => 'select', 'hideable' => 'true' ), 'ocean' => array ( 'type' => 'select', // 'type' => 'deactivated', 'hideable' => 'true' ), 'longitudeFrom' => array ( 'type' => 'text', 'hideable' => 'true', 'config' => array () // 'size' => 10 ), 'longitudeTo' => array ( 'type' => 'text', 'hideable' => 'true', 'config' => array () // 'size' => 10 ), 'latitudeFrom' => array ( 'type' => 'text', 'hideable' => 'true', 'config' => array () // 'size' => 10 ), 'latitudeTo' => array ( 'type' => 'text', 'hideable' => 'true', 'config' => array () // 'size' => 10 ), 'collectionYearFrom' => array ( 'type' => 'text', 'hideable' => 'true', 'config' => array () // 'size' => 10 ), 'collectionYearTo' => array ( 'type' => 'text', 'hideable' => 'true', 'config' => array () // 'size' => 10 ), // 'locality' => array ( // 'type' => 'text', // 'hideable'=>'true' // ), // 'collectors' => array ( // 'type' => 'text', // 'hideable'=>'true' // ), // 'collectorNo' => array ( // // 'type' => 'text', // 'type' => 'deactivated', // 'hideable'=>'true' // ), // 'hasTypestatus' => array ( // 'type' => 'checkbox', // // 'type' => 'deactivated', // 'hideable'=>'true' // ), 'hasImage' => array ( 'type' => 'checkbox', 'hideable' => 'true' ), // 'unitID' => array ( // //'type' => 'deactivated' // 'type' => 'text' // ), // 'extractionNo' => array ( // //'type' => 'text' // 'type' => 'deactivated' // ), 'institution' => array ( 'type' => 'select', 'hideable' => 'true' ), // 'genBankAccessionNo' => array ( // 'type' => 'deactivated' // //'type' => 'text' // ), // 'genBankRecordAvailable' => array ( // 'type' => 'deactivated', // // 'type' => 'checkbox', // 'hideable'=>'true' // ), // 'boldRecordAvailable' => array ( // 'type' => 'deactivated' // // 'type' => 'checkbox' // ), 'kindofunit' => array ( 'type' => 'select', 'hideable' => 'true' ) ) // 'boldId' => array ( // 'type' => 'deactivated', // // 'type' => 'text', // 'hideable'=>'true' // ) ; /* * ----------------- field declarations ------------------------ * put here all the same fields as you defined in the parameters array */ // voucher/specimen // fields marked with ***main field*** should be permanent, the other are hidden, and // can be added by the user - this is set up with the hideable parameter in the defenition area public $familyName; // TODO also other ranks: order, class, phylum, kingdom ***main field*** public $orderName; // TODO public $className; // TODO public $phylumName; // TODO public $kingdomName; // TODO public $fullScientificName; // Species //TODO have also search with * like "ac*" ***main field*** public $taxonomyId; // TODO later, not yet in index public $country; // ***main field*** public $continent; // TODO public $sea; // TODO public $ocean; // TODO public $longitudeFrom; public $longitudeTo; public $latitudeFrom; public $latitudeTo; public $collectionYearFrom; public $collectionYearTo; public $locality; public $collectors; public $collectorNo; // TODO search collectornumber and fieldnumber public $hasTypestatus; // TODO recheck with Gabi what cases we exactly want to find if this field is choosen (see email to Gabi) public $hasImage; // boolean public $unitID; // TODO make over when index DB is corrected by Patricia // ***main field*** !!!use multivalued!!! // DNA // public $extractionNo; public $institution; // TODO felder "GenBank/EMBL/DDBJ Accession No" und "BOLD Process ID" // solange es noch keine spalte sequenceaccession.BoldID gibt, // für beide in sequenceaccession.accessionIdentifier suchen public $genBankAccessionNo; // TODO public $boldId; // TODO // TODO beide felder zusammen, solange es noch kein feld sequenceaccession.BoldID gibt, // checke if sequenceaccession.accessionIdentifier ist vorhanden public $genBankRecordAvailable; // TODO public $boldRecordAvailable; // TODO gibt es eine sequenceaccession.BoldID // -> erst wenn die spalte in die index db gebaut wurde public $kindofunit; // Tissue TODO evtl. weglassen /* * ----------------- other settings ---------------------------- */ // title of the form: // TODO put some html-classes arround the strings private $_extendedSearchFormTitle = '