Changeset 32134

Show
Ignore:
Timestamp:
13.02.2018 12:09:48 (6 months ago)
Author:
kjdon
Message:

when adding a new metadata row to the table, we need to check for multivaluedness, and add the indicator if need be

Files:
1 modified

Legend:

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

    r32132 r32134  
    955955    var clean_name = name.replace(/[\.-]/g, ""); 
    956956    var newRow = $("<tr>", {"style": "display: table-row;"}); 
    957     var nameCell = $("<td>" + name + "</td>"); 
     957    var nameCell; 
     958    if (jQuery.inArray(name, multiValuedMetadata) != -1) { 
     959    nameCell = $("<td>" + name + " <span title='"+gs.text.de.multi_valued_tooltip + "' style='float:right;'>"+mvm_delimiter+"</span></td>"); 
     960    } else { 
     961    nameCell = $("<td>" + name + "</td>"); 
     962    } 
    958963    nameCell.attr("class", "metaTableCellName"); 
    959964    var valueCell = $("<td>", {"class": "metaTableCell"});