コード例 #1
0
ファイル: mnhnl_bats.php プロジェクト: BirenRathod/drupal-6
 public static function get_parameters()
 {
     $parentVal = parent::get_parameters();
     $retVal = array();
     foreach ($parentVal as $param) {
         if ($param['name'] == 'structure') {
             $param['default'] = "=Site=\r\n" . "[custom JS]\r\n" . "[location module]\r\n" . "[location attributes]\r\n" . "@lookUpListCtrl=radio_group\r\n" . "@lookUpKey=meaning_id\r\n" . "@sep= \r\n" . "@tabNameFilter=Site\r\n" . "[location spatial reference]\r\n" . "[location attributes]\r\n" . "@tabNameFilter=SpatialRef\r\n" . "[place search]\r\n" . "[map]\r\n" . "@scroll_wheel_zoom=false\r\n" . "@searchUpdatesSref=true\r\n" . "[location comment]\r\n" . "[*]\r\n" . "=Other Information=\r\n" . "[date]\r\n" . "[recorder names]\r\n" . "[*]\r\n" . "@sep= \r\n" . "@lookUpKey=meaning_id\r\n" . "[sample comment]\r\n" . "=Species=\r\n" . "[species]\r\n" . "@view=detail\r\n" . "@rowInclusionCheck=alwaysRemovable\r\n" . "[species attributes]\r\n" . "[*]\r\n";
         }
         if ($param['name'] == 'attribute_termlist_language_filter') {
             $param['default'] = true;
         }
         if ($param['name'] == 'grid_report') {
             $param['default'] = 'reports_for_prebuilt_forms/mnhnl_bats_grid';
         }
         if ($param['name'] != 'species_include_taxon_group' && $param['name'] != 'link_species_popups' && $param['name'] != 'species_include_both_names') {
             $retVal[] = $param;
         }
     }
     $retVal[] = array('name' => 'siteTypeOtherTermID', 'caption' => 'Site Type Attribute, Other Term ID', 'description' => 'The site type has an Other choice which when selected allows an additional text field to be filled in. This field holds the Indicia term meaning id for the radiobutton.', 'type' => 'int', 'group' => 'User Interface');
     $retVal[] = array('name' => 'siteTypeOtherAttrID', 'caption' => 'Site Type Other Attribute ID', 'description' => 'The site type has an Other choice which when selected allows an additional text field to be filled in. This field holds the text field Indicia attribute id', 'type' => 'int', 'group' => 'User Interface');
     $retVal[] = array('name' => 'entranceDefectiveTermID', 'caption' => 'Entrance hole Attribute, Defective Term ID', 'description' => 'The Entrance hole attribute has a Defective choice which when selected allows an additional text field to be filled in. This field holds the Indicia term meaning id for the checkbox.', 'type' => 'int', 'group' => 'User Interface');
     $retVal[] = array('name' => 'entranceDefectiveCommentAttrID', 'caption' => 'Defective Entrance Comment Attribute ID', 'description' => 'The Entrance hole attribute has a Defective choice which when selected allows an additional text field to be filled in. This field holds the text field Indicia attribute id', 'type' => 'int', 'group' => 'User Interface');
     $retVal[] = array('name' => 'disturbanceOtherTermID', 'caption' => 'Entrance hole Attribute, Defective Term ID', 'description' => 'The Disturbances attribute has an Other choice which when selected allows an additional text field to be filled in. This field holds the Indicia term meaning id for the checkbox.', 'type' => 'int', 'group' => 'User Interface');
     $retVal[] = array('name' => 'disturbanceCommentAttrID', 'caption' => 'Disturbance Other Comment Attribute ID', 'description' => 'The Disturbances attribute has an Other choice which when selected allows an additional text field to be filled in. This field holds the text field Indicia attribute id', 'type' => 'int', 'group' => 'User Interface');
     $retVal[] = array('name' => 'removeBreakIDs', 'caption' => 'Attributes to remove the break after', 'description' => 'The Attributes to remove the break after. This text field holds a colon separated list of Indicia attribute ids', 'type' => 'string', 'group' => 'User Interface');
     $retVal[] = array('name' => 'attributeValidation', 'caption' => 'Attribute Validation Rules', 'description' => 'Client Validation rules to be enforced on attributes: allows more options than allowed by straight class led validation.', 'type' => 'textarea', 'required' => false, 'group' => 'User Interface');
     return $retVal;
 }
コード例 #2
0
 public static function get_parameters()
 {
     $parentVal = array_merge(parent::get_parameters(), array(array('name' => 'qual_dist_term_id', 'caption' => 'Qualitive Distribution Termlist ID', 'description' => 'The Indicia ID of the termlist for the Qualitive distribution flag.', 'type' => 'int'), array('name' => 'qual_dist_attr_id', 'caption' => 'Qualitive Distribution Occurrence Attribute ID', 'description' => 'The Indicia ID of the occurrence Attribute for the Qualitive distribution flag.', 'type' => 'int'), array('name' => 'ignore_qual_dist_id', 'caption' => 'Qualitive Distribution Termlist Term Ignore ID', 'description' => 'The Indicia ID of the termlist term for which a occurrence is not generated.', 'type' => 'int'), array('name' => 'quant_dist_attr_id', 'caption' => 'Quantative Distribution Occurrence Count Attribute ID', 'description' => 'The Indicia ID of the Occurrence Attribute for the Quantative Distribution Count.', 'type' => 'int'), array('name' => 'observer_attr_id', 'caption' => 'Observer Sample Attribute ID', 'description' => 'The Indicia ID of the Sample Attribute for the Observer.', 'type' => 'int'), array('name' => 'month_attr_id', 'caption' => 'Month Sample Attribute ID', 'description' => 'The Indicia ID of the Sample Month drop down Attribute.', 'type' => 'int'), array('name' => 'aucune_attr_id', 'caption' => 'No observation Sample Attribute ID', 'description' => 'The Indicia ID of the Sample Attribute for No observation.', 'type' => 'int'), array('name' => 'init_species_ids', 'caption' => 'List of default species to be included in Quantative Distribution list', 'description' => 'Comma separated list of the Indicia IDs of those species to be included by default in the Quantative Distribution list.', 'type' => 'string', 'required' => false), array('name' => 'max_species_ids', 'caption' => 'max number of species to be returned by a search', 'description' => 'The maximum number of species to be returned by the drop downs at any one time.', 'default' => 25, 'type' => 'int'), array('name' => 'max_number_sections', 'caption' => 'Maximum Number of Sections', 'description' => 'The Maximum Number of Sections in the Section List.', 'default' => 8, 'type' => 'int')));
     $retVal = array();
     foreach ($parentVal as $param) {
         if ($param['name'] == 'structure') {
             $param['default'] = "=General Information=\r\n" . "[transect]\r\n" . "[date]\r\n" . "?Setting this date field automatically fills in the Month field below. This field must be between April and September, otherwise the Month field will not be filled in, and you will not be able to proceed.?\r\n" . "[sectionnumber]\r\n" . "[*]\r\n" . "[sample comment]\r\n" . "=Grid-based species records=\r\n" . "[display transect and date]\r\n" . "[transectgrid]\r\n" . "=Section-based species records=\r\n" . "[display transect and date]\r\n" . "?The number of sections in this list is selected on the first page?\r\n" . "[sectionlist]\r\n" . "@smpAttr=[TBD]\r\n";
         }
         $retVal[] = $param;
     }
     return $retVal;
 }
コード例 #3
0
 /**
  * Get the list of parameters for this form.
  * @return array List of parameters that this form requires.
  */
 public static function get_parameters()
 {
     $parentVal = parent::get_parameters();
     $retVal = array();
     foreach ($parentVal as $param) {
         if ($param['name'] == 'grid_report') {
             $param['description'] = 'Name of the report to use to populate the grid for selecting existing data from. The report must return a sample_id ' . 'field for linking to the data entry form.';
             $param['default'] = 'reports_for_prebuilt_forms/mnhnl_dynamic_2_supersamples';
         }
         if ($param['name'] != 'structure' && $param['name'] != 'includeLocTools' && $param['name'] != 'no_grid') {
             $retVal[] = $param;
         }
     }
     $retVal = array_merge($retVal, array(array('name' => 'grid_rows', 'caption' => 'Number of Rows display in supersample grid', 'description' => 'Number of Rows display in supersample grid at one time.', 'type' => 'int', 'default' => 12, 'group' => 'User Interface'), array('name' => 'supersample_structure', 'caption' => 'Form Structure for supersample', 'description' => 'Define the structure of the supersample form. Each component goes on a new line and is nested inside the previous component where appropriate. The following types of ' . "component can be specified. <br/>" . "<strong>=tab name=</strong> is used to specify the name of a tab. (Alpha-numeric characters only)<br/>" . "<strong>[control name]</strong> indicates a predefined control is to be added to the form with the following predefined controls available: <br/>" . "&nbsp;&nbsp;<strong>[date]</strong><br/>" . "&nbsp;&nbsp;<strong>[map]</strong> - if you wish to see the subsamples associated with this supersample, add the option @layers=[\"SSLayer\"] to the following line<br/>" . "&nbsp;&nbsp;<strong>[spatial reference]</strong><br/>" . "&nbsp;&nbsp;<strong>[location name]</strong><br/>" . "&nbsp;&nbsp;<strong>[location autocomplete]</strong><br/>" . "&nbsp;&nbsp;<strong>[location select]</strong><br/>" . "&nbsp;&nbsp;<strong>[place search]</strong><br/>" . "&nbsp;&nbsp;<strong>[recorder names]</strong><br/>" . "&nbsp;&nbsp;<strong>[sample comment]</strong>. <br/>" . "&nbsp;&nbsp;<strong>[sub sample grid]</strong>. This requires the following options (see below): (1) grid_report - Name of the report to use to populate the grid for selecting existing data from; and (2) grid_rows - the number of rows to be displayed in a single page of the grid. The report must take a parent_id, and return a sample id field for linking to the data entry form.<br/>" . "<strong>@option=value</strong> on the line(s) following any control allows you to override (or set) one of the options passed to the control. The options " . "available depend on the control. For example @label=Abundance would set the untranslated label of a control to Abundance. Where the " . "option value is an array, use valid JSON to encode the value. For example an array of strings could be passed as @occAttrClasses=[\"class1\",\"class2\"]. " . "Other common options include helpText (set to a piece of additional text to display alongside the control) and class (to add css " . "classes to the control such as control-width-3). <br/>" . "<strong>[*]</strong> is used to make a placeholder for putting any custom attributes that should be inserted into the current tab.<br/>" . "<strong>?help text?</strong> is used to define help text to add to the tab, e.g. ?Enter the name of the site.?<br/><br/>" . "The <strong>=*=</strong> placeholder is not valid for this form.", 'type' => 'textarea', 'default' => "=Place=\r\n" . "?Please provide the spatial reference of the record. You can enter the reference directly, or search for a place then click on the map.?\r\n" . "[place search]\r\n" . "[spatial reference]\r\n" . "[map]\r\n" . "@layers=[\"SSLayer\"]\r\n" . "[*]\r\n" . "=Other Information=\r\n" . "?Please provide the following additional information.?\r\n" . "[date]\r\n" . "[sample comment]\r\n" . "[*]\r\n" . "=Occurrences=\r\n" . "?Please enter subsample and occurrence data. If you have made any changes to the supersample record, save those first, as they will be lost otherwise when you either add a new or edit an existing subsample.?\r\n" . "[sub sample grid]\r\n" . "@grid_report=reports_for_prebuilt_forms/mnhnl_dynamic_2_subsamples\r\n" . "@grid_rows=15\r\n" . "[*]\r\n", 'group' => 'User Interface'), array('name' => 'occurrence_structure', 'caption' => 'Form Structure for sample/occurrence pair', 'description' => 'Define the structure of the sample/occurrence form. Each component goes on a new line and is nested inside the previous component where appropriate. The following types of ' . "component can be specified, in addition to those given under the Form Structure for supersample. <br/>" . "<strong>[control name]</strong>: the following additional controls may be used: <br/>" . "&nbsp;&nbsp;<strong>[map]</strong> - if you wish to see the supersample associated with this subsample, add the option @layers=[\"SSLayer\"] to the following line<br/>" . "&nbsp;&nbsp;<strong>[species]</strong> - a species grid or input control<br/>" . "&nbsp;&nbsp;<strong>[species_attributes]</strong> - any custom attributes for the occurrence, if not using the grid<br/>" . "&nbsp;&nbsp;<strong>[record status]</strong><br/>" . "Some controls don't make sense being used in this context of this part of the form, though they are available: these include <strong>[location name]</strong>, <strong>[location autocomplete]</strong>, <strong>[location select]</strong> as the expectation is that the concept of a named location is based within the supersample, and the positioning of the individual occurrences would be based on selecting a point on the map associated with the supersample location.<br/>" . "Note as well that the date will be copied down from the parent supersample, and that care should be taken 1) when using any tab called Other Information, as this the default tab for any unassigned attributes, and 2) to avoid using tab names to hold attributes which are on both super and subsample records, as the attributes will then appear on both.", 'type' => 'textarea', 'default' => "=Place=\r\n" . "?Please provide the spatial reference of the record. You can enter the reference directly, or click on the map.?\r\n" . "[spatial reference]\r\n" . "[map]\r\n" . "@layers=[\"SSLayer\"]\r\n" . "[*]\r\n" . "=Species=\r\n" . "?Please enter the species you saw and any other information about them.?\r\n" . "[species]\r\n" . "[species attributes]\r\n" . "[*]\r\n", 'group' => 'User Interface')));
     return $retVal;
 }
コード例 #4
0
 public static function get_parameters()
 {
     $retVal = array();
     $parentVal = array_merge(parent::get_parameters(), iform_mnhnl_getParameters(), array(array('name' => 'reportFilenamePrefix', 'caption' => 'Report Filename Prefix', 'description' => 'Prefix to be used at the start of the download report filenames.', 'type' => 'string', 'default' => 'ButterflySites', 'group' => 'Reporting'), array('name' => 'max_species_ids', 'caption' => 'max number of species to be returned by a search', 'description' => 'The maximum number of species to be returned by the drop downs at any one time.', 'default' => 100, 'type' => 'int', 'group' => 'Species'), array('name' => 'attributeValidation', 'caption' => 'Attribute Validation Rules', 'description' => 'Client Validation rules to be enforced on attributes: allows more options than allowed by straight class led validation.', 'type' => 'textarea', 'required' => false, 'group' => 'User Interface')));
     foreach ($parentVal as $param) {
         if ($param['name'] == 'structure') {
             $param['default'] = "=Sites=\r\n" . "[lux5kgrid2]\r\n" . "[map]\r\n" . "@layers=[\"ParentWMSLayer\",\"ParentLocationLayer\",\"SitePointLayer\",\"SitePathLayer\",\"SiteAreaLayer\",\"SiteLabelLayer\"]\r\n" . "@editLayer=false\r\n" . "@clickableLayers=[\"ParentWMSLayer\"]\r\n" . "@clickableLayersOutputMode=custom\r\n" . "@clickableLayersOutputDiv=clickableLayersOutputDiv\r\n" . "@clickableLayersOutputFn=setClickedParent\r\n" . "[point grid]\r\n" . "@srefs=2169,LUREF (m),X,Y,;4326,Lat/Long Deg,Lat,Long,D;4326,Lat/Long Deg:Min,Lat,Long,DM;4326,Lat/Long Deg:Min:Sec,Lat,Long,DMS\r\n" . "[sample comment]\r\n" . "=Conditions=\r\n" . "[recorder names]\r\n" . "[*]\r\n" . "@sep=&#32;\r\n" . "@lookUpKey=meaning_id\r\n" . "[year]\r\n" . "@boltTo=passage\r\n" . "[conditions grid]\r\n" . "@sep=<br />\r\n" . "@lookUpKey=meaning_id\r\n" . "@tabNameFilter=ConditionsGrid\r\n" . "@setRowRequired=2\r\n" . "@NumRows=4\r\n" . "@NumAttrCols=3\r\n" . "=Species=\r\n" . "[species grid]\r\n" . "[*]\r\n" . "[late JS]";
         }
         if ($param['name'] == 'attribute_termlist_language_filter') {
             $param['default'] = true;
         }
         if ($param['name'] == 'grid_report') {
             $param['default'] = 'reports_for_prebuilt_forms/MNHNL/mnhnl_butterflies2';
         }
         if ($param['name'] != 'species_include_taxon_group' && $param['name'] != 'link_species_popups' && $param['name'] != 'species_include_both_names') {
             $retVal[] = $param;
         }
     }
     return $retVal;
 }
コード例 #5
0
 public static function get_parameters()
 {
     $retVal = array();
     $parentVal = array_merge(parent::get_parameters(), iform_mnhnl_getParameters(), array(array('name' => 'reportFilenamePrefix', 'caption' => 'Report Filename Prefix', 'description' => 'Prefix to be used at the start of the download report filenames.', 'type' => 'string', 'default' => 'bathibernation', 'group' => 'Reporting'), array('name' => 'siteTypeAttr', 'caption' => 'Site Type Attribute', 'description' => 'Caption of the location attribute used to indicate the site type.', 'type' => 'int', 'default' => 'Site type', 'group' => 'Locations'), array('name' => 'entranceDefectiveTermID', 'caption' => 'Entrance hole Attribute, Defective Term ID', 'description' => 'The Entrance hole attribute has a Defective choice which when selected allows an additional text field to be filled in. This field holds the Indicia term meaning id for the checkbox.', 'type' => 'int', 'group' => 'User Interface'), array('name' => 'entranceDefectiveCommentAttrID', 'caption' => 'Defective Entrance Comment Attribute ID', 'description' => 'The Entrance hole attribute has a Defective choice which when selected allows an additional text field to be filled in. This field holds the text field Indicia attribute id', 'type' => 'int', 'group' => 'User Interface'), array('name' => 'disturbanceOtherTermID', 'caption' => 'Disturbance Attribute, Other Term ID', 'description' => 'The Disturbances attribute has an Other choice which when selected allows an additional text field to be filled in. This field holds the Indicia term meaning id for the checkbox.', 'type' => 'int', 'group' => 'User Interface'), array('name' => 'disturbanceCommentAttrID', 'caption' => 'Disturbance Other Comment Attribute ID', 'description' => 'The Disturbances attribute has an Other choice which when selected allows an additional text field to be filled in. This field holds the text field Indicia attribute id', 'type' => 'int', 'group' => 'User Interface'), array('name' => 'removeBreakIDs', 'caption' => 'Remove breaks', 'description' => 'The Sample Attributes to remove the break after. This text field holds a colon separated list of Indicia attribute ids', 'type' => 'string', 'group' => 'User Interface'), array('name' => 'attributeValidation', 'caption' => 'Attribute Validation Rules', 'description' => 'Client Validation rules to be enforced on attributes: allows more options than allowed by straight class led validation.', 'type' => 'textarea', 'required' => false, 'group' => 'User Interface'), array('name' => 'max_species_ids', 'caption' => 'max number of species to be returned by a search', 'description' => 'The maximum number of species to be returned by the drop downs at any one time.', 'default' => 25, 'type' => 'int', 'group' => 'Species')));
     foreach ($parentVal as $param) {
         if ($param['name'] == 'structure') {
             $param['default'] = "=Site=\r\n" . "[custom JS]\r\n" . "[location module]\r\n" . "[location attributes]\r\n" . "@lookUpListCtrl=radio_group\r\n" . "@lookUpKey=meaning_id\r\n" . "@sep=&#32;\r\n" . "@tabNameFilter=Site\r\n" . "@class=wide\r\n" . "[location spatial reference]\r\n" . "[location attributes]\r\n" . "@tabNameFilter=SpatialRef\r\n" . "[place search]\r\n" . "[map]\r\n" . "@layers=[\"SiteAreaLayer\",\"SitePathLayer\",\"SitePointLayer\",\"SiteLabelLayer\"]\r\n" . "@editLayer=false\r\n" . "@searchLayer=true\r\n" . "@searchUpdatesSref=false\r\n" . "@maxZoom=17\r\n" . "[point grid]\r\n" . "@srefs=2169,LUREF (m),X,Y,;4326,Lat/Long Deg,Lat,Long,D;4326,Lat/Long Deg:Min,Lat,Long,DM;4326,Lat/Long Deg:Min:Sec,Lat,Long,DMS\r\n" . "[location comment]\r\n" . "[*]\r\n" . "=Conditions=\r\n" . "[date]\r\n" . "[recorder names]\r\n" . "[*]\r\n" . "@sep=&#32;\r\n" . "@lookUpKey=meaning_id\r\n" . "[sample comment]\r\n" . "=Species=\r\n" . "[species]\r\n" . "@view=detail\r\n" . "@rowInclusionCheck=alwaysRemovable\r\n" . "@sep=&#32;\r\n" . "@lookUpKey=meaning_id\r\n" . "[*]\r\n" . "[lateJS]\r\n";
         }
         if ($param['name'] == 'attribute_termlist_language_filter') {
             $param['default'] = true;
         }
         if ($param['name'] == 'grid_report') {
             $param['default'] = 'reports_for_prebuilt_forms/MNHNL/mnhnl_bats_grid';
         }
         if ($param['name'] != 'species_include_taxon_group' && $param['name'] != 'link_species_popups' && $param['name'] != 'species_include_both_names' && $param['name'] != 'includeLocTools' && $param['name'] != 'loctoolsLocTypeID') {
             $retVal[] = $param;
         }
     }
     return $retVal;
 }
コード例 #6
0
 /**
  * Get the list of parameters for this form.
  * @return array List of parameters that this form requires.
  */
 public static function get_parameters()
 {
     $parentVal = array_merge(parent::get_parameters(), iform_mnhnl_getParameters(), array(array('name' => 'attributeValidation', 'caption' => 'Attribute Validation Rules', 'description' => 'Client Validation rules to be enforced on attributes: allows more options than allowed by straight class led validation.', 'type' => 'textarea', 'required' => false, 'group' => 'User Interface'), array('name' => 'targetSpeciesAttr', 'caption' => 'Target Species Attribute', 'description' => 'Name of lookup type Sample Attribute used to hold the target species. This is used in the reporting and control.', 'type' => 'text_input', 'group' => 'User Interface', 'required' => false), array('name' => 'targetSpeciesAttrList', 'caption' => 'Target Species Attribute List', 'description' => 'Comma separated list of sample attribute IDs used in the target species grid. This is used in the control and the reporting.', 'type' => 'text_input', 'group' => 'User Interface', 'required' => false), array('name' => 'target_species_subsample_method_id', 'caption' => 'Target Species Sample Method', 'type' => 'select', 'table' => 'termlists_term', 'captionField' => 'term', 'valueField' => 'id', 'extraParams' => array('termlist_external_key' => 'indicia:sample_methods'), 'required' => false, 'helpText' => 'The sample method that will be used when creating subsamples in the target species grid.'), array('name' => 'language', 'caption' => 'Language Override', 'description' => 'Two digit language override.', 'type' => 'string', 'required' => true, 'default' => 'en', 'group' => 'User Interface'), array('name' => 'subsample_method_id', 'caption' => 'Subsample Method', 'type' => 'select', 'table' => 'termlists_term', 'captionField' => 'term', 'valueField' => 'id', 'extraParams' => array('termlist_external_key' => 'indicia:sample_methods'), 'required' => false, 'helpText' => 'The sample method that will be used for created subsamples in the species grid.'), array('name' => 'reportFilenamePrefix', 'caption' => 'Report Filename Prefix', 'description' => 'Prefix to be used at the start of the download report filenames.', 'type' => 'string', 'group' => 'Reporting'), array('name' => 'sites_download_report', 'caption' => 'Sites download report', 'description' => 'Name of the sites download report.', 'type' => 'string', 'group' => 'Reporting', 'required' => false), array('name' => 'conditions_download_report', 'caption' => 'Conditions download report', 'description' => 'Name of the conditions download report.', 'type' => 'string', 'group' => 'Reporting', 'required' => false), array('name' => 'species_download_report', 'caption' => 'Species download report', 'description' => 'Name of the species download report.', 'type' => 'string', 'group' => 'Reporting')));
     $retVal = array();
     foreach ($parentVal as $param) {
         if ($param['name'] == 'grid_report') {
             $param['description'] = 'Name of the report to use to populate the grid for selecting existing data. The report must return a sample_id ' . 'field for linking to the data entry form.';
             $param['default'] = 'reports_for_prebuilt_forms/mnhnl_dynamic_2_supersamples';
         }
         if ($param['name'] == 'interface') {
             $param['options'] = array('tabs' => 'Tabs', 'wizard' => 'Wizard');
         }
         // No one_page
         if ($param['name'] != 'no_grid' && $param['name'] != 'occurrence_comment' && $param['name'] != 'occurrence_images' && $param['name'] != 'multiple_occurrence_mode' && $param['fieldname'] != 'list_id' && $param['fieldname'] != 'extra_list_id' && $param['fieldname'] != 'cache_lookup' && $param['fieldname'] != 'user_controls_taxon_filter') {
             $retVal[] = $param;
         }
         // Note the includeLocTools is left in in case any child forms use it
     }
     return $retVal;
 }
コード例 #7
0
 public static function get_parameters()
 {
     $retVal = array();
     $parentVal = array_merge(parent::get_parameters(), iform_mnhnl_getParameters(), array(array('name' => 'attributeValidation', 'caption' => 'Attribute Validation Rules', 'description' => 'Client Validation rules to be enforced on attributes: allows more options than allowed by straight class led validation.', 'type' => 'textarea', 'required' => false, 'group' => 'User Interface'), array('name' => 'targetSpeciesAttr', 'caption' => 'Target Species Attribute', 'description' => 'Name of lookup type Sample Attribute used to hold the target species. This is used in the control and the reporting.', 'type' => 'text_input', 'default' => 'ReptileTargetSpecies', 'group' => 'User Interface'), array('name' => 'targetSpeciesAttrList', 'caption' => 'Target Species Attribute List', 'description' => 'Comma separated list of sample attribute IDs used in the target species grid. This is used in the control and the reporting.', 'type' => 'text_input', 'group' => 'User Interface'), array('name' => 'language', 'caption' => 'Language Override', 'description' => '', 'type' => 'string', 'required' => true, 'default' => 'en', 'group' => 'User Interface'), array('name' => 'reportFilenamePrefix', 'caption' => 'Report Filename Prefix', 'description' => 'Prefix to be used at the start of the download report filenames.', 'type' => 'string', 'default' => 'reptiles', 'group' => 'Reporting'), array('name' => 'sites_download_report', 'caption' => 'Sites download report', 'description' => 'Name of the sites download report.', 'type' => 'string', 'group' => 'Reporting', 'required' => false), array('name' => 'conditions_download_report', 'caption' => 'Conditions download report', 'description' => 'Name of the conditions download report.', 'type' => 'string', 'group' => 'Reporting', 'required' => false), array('name' => 'species_download_report', 'caption' => 'Species download report', 'description' => 'Name of the species download report.', 'type' => 'string', 'group' => 'Reporting', 'default' => 'reports_for_prebuilt_forms/MNHNL/mnhnl_reptile_download_report')));
     foreach ($parentVal as $param) {
         if ($param['name'] == 'structure') {
             $param['default'] = "=Site=\r\n" . "[custom JS]\r\n" . "@attrRestrictionsProcessOrder=<TBD>\r\n" . "@attrRestrictions=<TBD>\r\n" . "[lux5k grid]\r\n" . "[location attributes]\r\n" . "[location spatial reference]\r\n" . "[map]\r\n" . "@layers=[\"ParentWMSLayer\",\"ParentLocationLayer\",\"SitePointLayer\",\"SitePathLayer\",\"SiteAreaLayer\",\"SiteLabelLayer\"]\r\n" . "@editLayer=false\r\n" . "@clickableLayers=[\"ParentWMSLayer\"]\r\n" . "@clickableLayersOutputMode=custom\r\n" . "@clickableLayersOutputDiv=clickableLayersOutputDiv\r\n" . "@clickableLayersOutputFn=setClickedParent\r\n" . "[point grid]\r\n" . "@srefs=2169,LUREF (m),X,Y,;4326,Lat/Long Deg,Lat,Long,D;4326,Lat/Long Deg:Min,Lat,Long,DM;4326,Lat/Long Deg:Min:Sec,Lat,Long,DMS\r\n" . "[location comment]\r\n" . "=Conditions=\r\n" . "[target species grid]\r\n" . "@targetSpeciesTermList=reptile:targetSpecies\r\n" . "@disableOptions=<TBD>\r\n" . "[date]\r\n" . "[recorder names]\r\n" . "[*]\r\n" . "@sep=&#32;\r\n" . "@lookUpKey=meaning_id\r\n" . "[sample comment]\r\n" . "=Species=\r\n" . "[species]\r\n" . "@view=detail\r\n" . "@rowInclusionCheck=alwaysRemovable\r\n" . "@lookUpKey=meaning_id\r\n" . "[*]\r\n" . "@lookUpKey=meaning_id\r\n" . "[late JS]";
         }
         if ($param['name'] == 'attribute_termlist_language_filter') {
             $param['default'] = true;
         }
         if ($param['name'] == 'grid_report') {
             $param['default'] = 'reports_for_prebuilt_forms/MNHNL/mnhnl_reptiles';
         }
         if ($param['name'] == 'extendLocationNameTemplate') {
             $param['default'] = '{name} : created by {Creator}';
         }
         if ($param['name'] != 'species_include_taxon_group' && $param['name'] != 'link_species_popups' && $param['name'] != 'species_include_both_names') {
             $retVal[] = $param;
         }
     }
     return $retVal;
 }
コード例 #8
0
 public static function get_parameters()
 {
     $retVal = array_merge(parent::get_parameters(), array(array('name' => 'qual_dist_term_id', 'caption' => 'Qualitive Distribution Termlist ID', 'description' => 'The Indicia ID of the termlist for the Qualitive distribution flag.', 'type' => 'int'), array('name' => 'qual_dist_attr_id', 'caption' => 'Qualitive Distribution Occurrence Attribute ID', 'description' => 'The Indicia ID of the occurrence Attribute for the Qualitive distribution flag.', 'type' => 'int'), array('name' => 'ignore_qual_dist_id', 'caption' => 'Qualitive Distribution Termlist Term Ignore ID', 'description' => 'The Indicia ID of the termlist term for which a occurrence is not generated.', 'type' => 'int'), array('name' => 'quant_dist_attr_id', 'caption' => 'Quantative Distribution Occurrence Count Attribute ID', 'description' => 'The Indicia ID of the Occurrence Attribute for the Quantative Distribution Count.', 'type' => 'int'), array('name' => 'observer_attr_id', 'caption' => 'Observer Sample Attribute ID', 'description' => 'The Indicia ID of the Sample Attribute for the Observer.', 'type' => 'int'), array('name' => 'month_attr_id', 'caption' => 'Month Sample Attribute ID', 'description' => 'The Indicia ID of the Sample Month drop down Attribute.', 'type' => 'int'), array('name' => 'aucune_attr_id', 'caption' => 'No Observation Sample Attribute ID', 'description' => 'The Indicia ID of the Sample Attribute for No Observation.', 'type' => 'int'), array('name' => 'init_species_ids', 'caption' => 'List of default species to be included in Quantative Distribution list', 'description' => 'Comma separated list of the Indicia IDs of those species to be included by default in the Quantative Distribution list.', 'type' => 'string', 'required' => false), array('name' => 'max_species_ids', 'caption' => 'max number of species to be returned by a search', 'description' => 'The maximum number of species to be returned by the drop downs at any one time.', 'default' => 25, 'type' => 'int'), array('name' => 'max_number_sections', 'caption' => 'Maximum Number of Sections', 'description' => 'The Maximum Number of Sections in the Section List.', 'default' => 8, 'type' => 'int')));
     return $retVal;
 }