- Timestamp:
- 2014-08-18T11:50:38+12:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js
r29178 r29213 5 5 /* some vars for document editing */ 6 6 /* 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;7 var dynamic_metadata_set_list = true; 8 8 /* if true, will make the editing controls stay visible even on page scrolling */ 9 9 var keep_editing_controls_visible = true; … … 11 11 var save_and_rebuild_buttons = ["saveandrebuild"]; 12 12 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 */ 18 var new_metadata_field_input_type = "plain"; 19 /* Metadata elements to be used in the fixedlist/autocomplete options above */ 20 var availableMetadataElements = ["dc.Title", "dc.Subject"]; 13 21 /******************** 14 22 * EXPANSION SCRIPTS * … … 1163 1171 /* override this function in other interface/site/collection if you want 1164 1172 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. */ 1166 1174 function setStaticMetadataSets(list) { 1167 add MetaSetToList(list, "All");1175 addOptionToList(list, "All", "All"); 1168 1176 } 1169 1177 … … 1191 1199 var editBar = $("#editBarLeft"); 1192 1200 1193 var visibleMetadataList = $("<select>", {"id": "metadataSetList" });1201 var visibleMetadataList = $("<select>", {"id": "metadataSetList", "class": "ui-state-default"}); 1194 1202 setStaticMetadataSets(visibleMetadataList); 1195 1203
Note:
See TracChangeset
for help on using the changeset viewer.