Changeset 32124

Show
Ignore:
Timestamp:
12.02.2018 10:17:55 (2 weeks ago)
Author:
kjdon
Message:

some updates

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/pei-jones/js/custom-doc-editing.js

    r31793 r32124  
    44dynamic_metadata_set_list = false; 
    55/* Can be "save", rebuild", saveandrebuild". Determines what type of save buttons are used */ 
    6 save_and_rebuild_buttons = ["saveandrebuild"]; 
     6save_and_rebuild_buttons = ["save", "rebuild"]; 
    77/* 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 */ 
    88new_metadata_field_input_type = "fixedlist"; 
    99/* 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"]; 
     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", "pj.Format", "pj.Physical-Description", "pj.HideImage", "pj.EditStatus"]; 
    1111 
    1212function setStaticMetadataSets(list) { 
     
    1515} 
    1616 
    17 autocompleteMetadata = ["pj.MSHeading", "pj.Provenance", "pj.Document-Type", "pj.Access", "pj.DisplayText"]; 
     17autocompleteMetadata = ["pj.MSHeading", "pj.Provenance", "pj.Document-Type", "pj.Access", "pj.DisplayText", "pj.EditStatus", "pj.Physical-Description", "pj.HideImage"]; 
    1818 
    1919pjMSHeading_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"]; 
     
    2121pjProvenance_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"]; 
    2222 
    23 pjDocumentType_values =  ["Photograph", "Letter", "Whakapapa", "Map", "Manuscript", "Typescript", "Telegram", "Invitation card", "Press clipping", "Souvenir booklet", "Mimeograph", "Brochure"]; 
     23pjDocumentType_values =  ["Photograph", "Letter", "Whakapapa", "Map", "Manuscript",  "Telegram", "Invitation card", "Press clipping", "Waiata", "Souvenir booklet", "Brochure", "Diagram/Schematic", "Diary", "Record", "Memo", "Draft", "Instructions"]; 
    2424 
     25pjPhysicalDescription_values = ["Photocopy", "Manuscript" ]; 
    2526pjAccess_values = ["unrestricted", "restricted", "embargoed"]; 
    2627 
     28pjEditStatus_values = ["completed", "partial", "needs translating", "needs checking"]; 
    2729pjDisplayText_values = ["true", "false"]; 
    28  
    29 add_metadata_buttons = ["add_one", "add_undefined", "add_all"]; 
     30pjHideImage_values = ["true", "false"]; 
    3031 
    3132 
    3233 
     34