Changeset 32134 for main/trunk


Ignore:
Timestamp:
02/13/18 12:09:48 (3 years 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

File:
1 edited

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"}); 
Note: See TracChangeset for help on using the changeset viewer.