VIVO-112
This commit is contained in:
parent
500bb456c3
commit
f76ee886d5
2 changed files with 3 additions and 4 deletions
|
@ -18,7 +18,7 @@
|
|||
<#-- List the menu items -->
|
||||
<ul class="menuItems">
|
||||
<#list hasElement.statements as statement>
|
||||
<li class="menuItem"><#include "${hasElement.template}"> <span class="controls"><!--p.editingLinks "hasElement" statement editable /--></span></li>
|
||||
<li class="menuItem"><#include "${hasElement.template}"> <span class="controls"><!--p.editingLinks "hasElement" "" statement editable /--></span></li>
|
||||
</#list>
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -297,7 +297,6 @@ var customForm = {
|
|||
//to the filtering list
|
||||
this.getAcFilterForIndividuals();
|
||||
this.acCache = {};
|
||||
var theType = customForm.acTypes[$(selectedObj).attr('acGroupName')];
|
||||
|
||||
$(selectedObj).autocomplete({
|
||||
minLength: 3,
|
||||
|
@ -317,7 +316,7 @@ var customForm = {
|
|||
dataType: 'json',
|
||||
data: {
|
||||
term: request.term,
|
||||
type: theType,
|
||||
type: customForm.acTypes[$(selectedObj).attr('acGroupName')],
|
||||
multipleTypes:(customForm.acMultipleTypes == undefined || customForm.acMultipleTypes == null)? null: customForm.acMultipleTypes
|
||||
},
|
||||
complete: function(xhr, status) {
|
||||
|
@ -325,7 +324,7 @@ var customForm = {
|
|||
var results = $.parseJSON(xhr.responseText);
|
||||
var filteredResults = customForm.filterAcResults(results);
|
||||
|
||||
if ( theType == "http://www.w3.org/2004/02/skos/core#Concept" ) {
|
||||
if ( customForm.acTypes[$(selectedObj).attr('acGroupName')] == "http://www.w3.org/2004/02/skos/core#Concept" ) {
|
||||
filteredResults = customForm.removeConceptSubclasses(filteredResults);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue