Difference between revisions of "Field property defaults.pl"

From EPrints Documentation
Jump to: navigation, search
(Added more detail and tidied up formatting.)
 
Line 1: Line 1:
In this file you can set the default number of rows and widths of input fields (e.g. Name->Family).
+
'''field_property_defaults.pl''' sets the defaults for various properties of fields.  This is encompassed within <code>$c->{field_defaults}</code> and includes:
You can also adjust the number of rows added when using the 'more rows' feature of a multiple field, as well as the default number of rows displayed for all multiple fields.
+
* '''<code>input_rows</code>''' - Number of rows (i.e. height) for fields.
 +
* '''<code>input_cols</code>''' - Number of columns (i.e. width) for fields.
 +
* '''<code>input_name_cols</code>''' - Number of columns (i.e. width) in the individual input fields fields (''honourific'', ''given'', ''family'', and ''lineage'') for [[API:EPrints/MetaField/Name|EPrints::MetaField::Name]] fields.
 +
* '''<code>input_add_boxes</code>''' - Number of extra boxes/rows to add for entries to a ''multiple'' field.
 +
* '''<code>input_boxes</code>''' - Number of initial boxes/rows for ''multiple'' fields.
 +
* '''<code>digits</code>''' - Maximum number of digits allowed for [[API:EPrints/MetaField/Longtext|EPrints::MetaField::Int]] fields.
 +
* '''<code>search_cols</code>''' - Number of columns (i.e. width) for the input for searching on fields.
 +
* '''<code>search_rows</code>''' - Number of rows (i.e. height) for the input for searching on fields.
 +
* '''<code>hide_honourific</code>''' - Hide the ''honourfic'' input field for [[API:EPrints/MetaField/Name|EPrints::MetaField::Name]] fields.
 +
* '''<code>hide_lineage</code>''' - Hide the ''lineage'' input field for [[API:EPrints/MetaField/Name|EPrints::MetaField::Name]] fields.
 +
* '''<code>family_first</code>''' - Whether to render the ''family'' input field before ''given'' input field for [[API:EPrints/MetaField/Name|EPrints::MetaField::Name]] fields.  
 +
 
 
[[Category:Metadata Fields]]
 
[[Category:Metadata Fields]]

Latest revision as of 10:07, 30 January 2022

field_property_defaults.pl sets the defaults for various properties of fields. This is encompassed within $c->{field_defaults} and includes:

  • input_rows - Number of rows (i.e. height) for fields.
  • input_cols - Number of columns (i.e. width) for fields.
  • input_name_cols - Number of columns (i.e. width) in the individual input fields fields (honourific, given, family, and lineage) for EPrints::MetaField::Name fields.
  • input_add_boxes - Number of extra boxes/rows to add for entries to a multiple field.
  • input_boxes - Number of initial boxes/rows for multiple fields.
  • digits - Maximum number of digits allowed for EPrints::MetaField::Int fields.
  • search_cols - Number of columns (i.e. width) for the input for searching on fields.
  • search_rows - Number of rows (i.e. height) for the input for searching on fields.
  • hide_honourific - Hide the honourfic input field for EPrints::MetaField::Name fields.
  • hide_lineage - Hide the lineage input field for EPrints::MetaField::Name fields.
  • family_first - Whether to render the family input field before given input field for EPrints::MetaField::Name fields.