diff --git a/productMods/edit/forms/js/addConcept.js b/productMods/edit/forms/js/addConcept.js index 59627773..fe3466df 100644 --- a/productMods/edit/forms/js/addConcept.js +++ b/productMods/edit/forms/js/addConcept.js @@ -206,13 +206,26 @@ var addConceptForm = { var htmlAdd = "
  • " + "
    " + "" + - "" + - label + " (" + type + ")" + - "" + definition + "" + + addConceptForm.generateIndividualCUIInput(cuiURI, label, definition, type, definedBy) + + label + addConceptForm.generateIndividualTypeDisplay(type) + "" + + addConceptForm.generateIndividualDefinitionDisplay(definition) + "
    " + "
  • "; return htmlAdd; - }, validateConceptSelection:function(checkedElements) { + }, + generateIndividualCUIInput:function(cuiURI, label, type, definedBy) { + return ""; + }, + generateIndividualTypeDisplay:function(type) { + if(type != null && type.length > 0) { + return " (" + type + ")"; + } + return ""; + }, + generateIndividualDefinitionDisplay:function(definition) { + return "" + definition + ""; + }, + validateConceptSelection:function(checkedElements) { var numberElements = checkedElements.length; if(numberElements < 1) { addConceptForm.errors.html("

    Please select at least one term from search results to add or click cancel.

    ");