Changeset 29213

Show
Ignore:
Timestamp:
18.08.2014 11:50:38 (5 years ago)
Author:
kjdon
Message:

added a class to metadataSetList to make it the same colour as the other controls. Added a couple of customization vars

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js

    r29178 r29213  
    55/* some vars for document editing */ 
    66/* if true, will look through all the metadata for the document, and add each namespace into the list of metadata sets. If set to false, will only add in the ones defined in setStaticMetadataSets function (defined below) - override this function to make a custom list of sets */ 
    7 var dynamic_metadata_list = true; 
     7var dynamic_metadata_set_list = true; 
    88/* if true, will make the editing controls stay visible even on page scrolling */ 
    99var keep_editing_controls_visible = true; 
     
    1111var save_and_rebuild_buttons = ["saveandrebuild"]; 
    1212 
     13/* What kind of metadata element selection do we provide? 
     14   plain: just a text input box 
     15   fixedlist: a drop down menu with a fixed list of options (provided by the availableMetadataElements list) 
     16   autocomplete: a text input box with a list of suggestions to choose from (provided by the availableMetadataElements list). Allows additional input other than the fixed list  
     17*/ 
     18var new_metadata_field_input_type = "plain"; 
     19/* Metadata elements to be used in the fixedlist/autocomplete options above */ 
     20var availableMetadataElements = ["dc.Title", "dc.Subject"]; 
    1321/******************** 
    1422* EXPANSION SCRIPTS * 
     
    11631171/* override this function in other interface/site/collection if you want 
    11641172   a different set of metadata sets  
    1165   Use in conjunction with the dynamic_metadata_list variable. */ 
     1173  Use in conjunction with the dynamic_metadata_set_list variable. */ 
    11661174function setStaticMetadataSets(list) { 
    1167   addMetaSetToList(list, "All"); 
     1175  addOptionToList(list, "All", "All"); 
    11681176} 
    11691177 
     
    11911199    var editBar = $("#editBarLeft"); 
    11921200     
    1193     var visibleMetadataList = $("<select>", {"id": "metadataSetList"}); 
     1201    var visibleMetadataList = $("<select>", {"id": "metadataSetList", "class": "ui-state-default"}); 
    11941202    setStaticMetadataSets(visibleMetadataList); 
    11951203