diff --git a/Repositories/otago_eprints/otago_eprints/cfg/ArchiveMetadataFieldsConfig.pm b/Repositories/otago_eprints/otago_eprints/cfg/ArchiveMetadataFieldsConfig.pm index 42d60d1..a79c4d0 100755 --- a/Repositories/otago_eprints/otago_eprints/cfg/ArchiveMetadataFieldsConfig.pm +++ b/Repositories/otago_eprints/otago_eprints/cfg/ArchiveMetadataFieldsConfig.pm @@ -90,6 +90,7 @@ browse_link => "subjects", render_input=>\&EPrints::Extras::subject_browser_input }, + # NJS: Affiliations field to store organisational unit within the University. { name => "affiliations", type=>"subject", top=>"affiliations", multiple => 1, browse_link => "affiliations", render_input=>\&EPrints::Extras::subject_browser_input }, @@ -181,9 +182,19 @@ family_first=>1, hide_honourific=>1, hide_lineage=>1 }, { name => "official_url", type => "url", sql_index => 0 }, + +# { name => "contact_email", type => "email" }, # nb. Can't call this field "references" because that's a MySQL keyword. - { name => "referencetext", type => "longtext", input_rows => 10 } + { name => "referencetext", type => "longtext", input_rows => 10 }, + + # NJS 2007-04-02: Added author_permission field to indicate whether permission + # has been granted by the author to make the eprint publicly available. + { name => "author_permission", type => "set", options=>[ "unproc", "ongoing", "no", "embargo", "yes" ] }, + + # NJS 2007-04-04: Added copyright_confirmed field to indicate whether + # copyright status has been resolved. + { name => "copyright_confirmed", type => "set", options=>[ "unproc", "ongoing", "no", "embargo", "yes" ] }, ]; @@ -233,7 +244,10 @@ my( $data, $session ) = @_; $data->{type} = "article"; - $data->{thesis_type} = "UNSPECIFIED"; + # 2007-04-18: Added defaults for new author permission and copyright + # status fields. + $data->{author_permission} = "unproc"; + $data->{copyright_status} = "unproc"; } sub set_user_defaults