Changeset 29499

Show
Ignore:
Timestamp:
01.12.2014 11:14:10 (5 years ago)
Author:
kjdon
Message:

allow comma separated list of metadata, so can display more than one namespace at once. eg dc plus ex.dc

Files:
1 modified

Legend:

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

    r29226 r29499  
    675675function changeVisibleMetadata(metadataSetName) 
    676676{ 
     677        var metaSetList = metadataSetName.split(","); 
    677678    var tables = document.getElementsByTagName("TABLE"); 
    678679    for(var i = 0; i < tables.length; i++) 
     
    700701                    { 
    701702                        var setName = cellName.substring(0, cellName.lastIndexOf(".")); 
    702                         if(setName == metadataSetName) 
     703                        if (metaSetList.indexOf(setName)!= -1)  
    703704                        { 
    704705                            rows[j].style.display = "table-row";