EPrints 2.3 Documentation - Configuring the functions of an Archive |
If you want to split the metadata input into more than one page, you can, by adding <page name=``foo'' /> elements in between <field> elements in metadata-types.xml.
The ``name'' attribute is used so that EPrints knows which page it's currently on. It can also be used to define a custom title for a page of fields, and to specify validation requirements for that page.
Eg. The title of a metadata input page is taken from the phrase ``metapage_title_pagename''. It may have any of the following pins:
The simple validation will be checked for each field on the sub page. This means that an invalid URL will raise a problem and not let the submitter continue. However if you have a more complex validation issue, such as an exclusion or a co-dependancy, you will need to edit the ArchiveValidateConfig.pm config file, and edit this subroutine:
sub validate_eprint_meta_page { my( $eprint, $session, $page, $for_archive ) = @_;
my @problems = ();
return @problems }
The options are as for validate_eprint_meta except that $page is the sub-page to validate. @problems should be an array of XHTML objects describing any problems with the data submitted for that page.
Render options are settings for a metadata field which control how it is rendered (but nothing else). Some render options are only meaningful for certain types.
Render options can be specified as properties of a metadata field in ArchiveMetadataFieldsConfig.pm in which case they apply to that field (unless over ridden). In this case they are a hash reference, for example:
{ name => "creators", type => "name", render_opts=>{ order=>"gf" } },
This sets the ``order'' render option of the creators field to be ``gf''.
Render options can also be specified in views and citations. If you don't want them to apply except in the given view or citation. For example, in citations:
@title;magicstop@
Magicstop is a boolean option so this is the same as saying:
@title;magicstop=1@
In views you can use
"some_date_field;res=year"
To make a view that browses by the values of a date field as if it were a ``year'' field.
Boolean options with no value default to true (1).
EPrints 2.3 Documentation - Configuring the functions of an Archive |