source: main/trunk/model-sites-dev/pei-jones/js/custom-doc-editing.js@ 31793

Last change on this file since 31793 was 31793, checked in by kjdon, 7 years ago

committing core files for pei jones project

File size: 2.2 KB
Line 
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 */
4dynamic_metadata_set_list = false;
5/* Can be "save", rebuild", saveandrebuild". Determines what type of save buttons are used */
6save_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 */
8new_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 */
10availableMetadataElements = [ "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
12function setStaticMetadataSets(list) {
13 addOptionToList(list, "pj", "Pei Jones", true);
14// addOptionToList(list, "All", "All");
15}
16
17autocompleteMetadata = ["pj.MSHeading", "pj.Provenance", "pj.Document-Type", "pj.Access", "pj.DisplayText"];
18
19pjMSHeading_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
21pjProvenance_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
23pjDocumentType_values = ["Photograph", "Letter", "Whakapapa", "Map", "Manuscript", "Typescript", "Telegram", "Invitation card", "Press clipping", "Souvenir booklet", "Mimeograph", "Brochure"];
24
25pjAccess_values = ["unrestricted", "restricted", "embargoed"];
26
27pjDisplayText_values = ["true", "false"];
28
29add_metadata_buttons = ["add_one", "add_undefined", "add_all"];
30
31
32
Note: See TracBrowser for help on using the repository browser.