Make orderkey.pl
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
make_orderkey.pl contains several functions to provide orderings to be used by the make_value_orderkey
and make_single_value_orderkey
field attributes. See for more details. It adds the following functions to the configuration:
$c->{make_orderkey_ignore_extras}
- Converts a to string that ignores all but the standard ASCII alphabet, numbers and underscores. All letters are upper-cased and full stops (.) are replaced with underscores (_). This is used by the functions below, which are called with the parameters ofmake_value_orderkey
andmake_single_value_orderkey
.$c->{make_name_orderkey}
- Only uses family name, given name and honourific in that order to generate the initial order key, then uses$c->{make_orderkey_ignore_extras}
to sanitise each string in turn before joining together with underscores.$c->{make_title_orderkey}
- Calls$c->{make_orderkey_ignore_extras}
after removing any preceding definite or indefinite articles (i.e. a, an and the).$c->{make_sanitised_value_orderkey}
- Just calls$c->{make_orderkey_ignore_extras}
.