1 | // Customisations for document editing for pei jones collections
|
---|
2 |
|
---|
3 | /* if true, will create a list of sets based on the metadata values in the document. If false, will just use those added by setStaticMetadataSets */
|
---|
4 | dynamic_metadata_set_list = false;
|
---|
5 | /* Can be "save", rebuild", saveandrebuild". Determines what type of save buttons are used */
|
---|
6 | save_and_rebuild_buttons = ["saveandrebuild"];
|
---|
7 | /* determines what type of metadata element input there is. Can be 'plain' - a text box, 'fixedlist' = a drop down list, 'autocomplete' - a text box with suggestions */
|
---|
8 | new_metadata_field_input_type = "fixedlist";
|
---|
9 | /* What metadata elements are used for the fixedlist and autocomplete options above - this is a complete list of all elements. Collections may (and do) override this in their own custom-doc-editing.js file */
|
---|
10 | availableMetadataElements = [ "pj.Title", "pj.Date", "pj.Author", "pj.Catalogue-Number", "pj.Catalogue-Short", "pj.Description", "pj.Document-Type", "pj.Subject", "pj.MSHeading", "pj.Physical-Location", "pj.Provenance", "pj.Tags", "pj.Notes", "pj.Year", "pj.Location", "pj.PersonOfInterest", "pj.Event", "pj.Correspondent", "pj.Access", "pj.DisplayText"];
|
---|
11 |
|
---|
12 | function setStaticMetadataSets(list) {
|
---|
13 | addOptionToList(list, "pj", "Pei Jones", true);
|
---|
14 | // addOptionToList(list, "All", "All");
|
---|
15 | }
|
---|
16 |
|
---|
17 | autocompleteMetadata = ["pj.MSHeading", "pj.Provenance", "pj.Document-Type", "pj.Access", "pj.DisplayText"];
|
---|
18 |
|
---|
19 | pjMSHeading_values = ["Ao wairua", "Atua", "Hauora", "Mahi toi", "MÄtauranga", "Ohaoha", "Pakanga", "PÄpÄho", "PÅ«taiao", "Reo MÄori", "Taiao", "TÄngata", "TÄngata whenua", "Taonga", "Tikanga", "Tikanga tuku iho", "TÅrangapÅ«", "Ture", "Waka", "Whakapapa", "Whakapono"];
|
---|
20 |
|
---|
21 | pjProvenance_values = ["Pei Te Hurinui Jones 1898-1976", "Michael Rotohiko Jones 1895-1978", "KorokÄ« Te Rata Mahuta TÄwhiao PÅtatau Te Wherowhero 1906-1966", "Te Kirihaehae Te Puea Herangi 1883â1952", "Brian HauÄuru Jones"];
|
---|
22 |
|
---|
23 | pjDocumentType_values = ["Photograph", "Letter", "Whakapapa", "Map", "Manuscript", "Typescript", "Telegram", "Invitation card", "Press clipping", "Souvenir booklet", "Mimeograph", "Brochure"];
|
---|
24 |
|
---|
25 | pjAccess_values = ["unrestricted", "restricted", "embargoed"];
|
---|
26 |
|
---|
27 | pjDisplayText_values = ["true", "false"];
|
---|
28 |
|
---|
29 | add_metadata_buttons = ["add_one", "add_undefined", "add_all"];
|
---|
30 |
|
---|
31 |
|
---|
32 |
|
---|