bugs in n3 files and manage labels logic when there are no labels (e.g. on individual page profile)

This commit is contained in:
hudajkhan 2013-10-07 17:26:34 -04:00
parent aced8fece7
commit 7c3c8f6c4e
4 changed files with 6 additions and 5 deletions

View file

@ -1,4 +1,5 @@
# $This file is distributed under the terms of the license in /doc/license.txt$
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
#Data getter type labels
<java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.ClassGroupPageData> rdfs:label "Class Group Page" .

View file

@ -1,7 +1,7 @@
# $This file is distributed under the terms of the license in /doc/license.txt$
# This file is for the portions of the pageList that should not be editable, i.e.
that it cannot be deleted and that it requires certain permissions #
# This file is for the portions of the pageList that should not be editable, i.e.#
# that it cannot be deleted and that it requires certain permissions #
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
@ -12,6 +12,5 @@ that it cannot be deleted and that it requires certain permissions #
### This file defines the page list menu for vitro. ###
display:pageListPage
display:queryModel <vitro:requestDisplayModel> ;
display:requiresAction <java:edu.cornell.mannlib.vitro.webapp.auth.permissions.SimplePermission#ManageMenus> ;
display:cannotDeletePage "true" .

View file

@ -18,6 +18,7 @@ display:pageListPage
display:pageListData
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter>;
display:saveToVar "pages" ;
display:queryModel <vitro:requestDisplayModel> ;
display:query """
PREFIX display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

View file

@ -249,7 +249,7 @@ name will be used as the label. -->
${label.value}
<#if useEditLink>
<@editingLinks "label" "" label editable />
<#elseif editable || (languageCount > 1)>
<#elseif (editable && (labelCount > 0)) || (languageCount > 1)>
<#--We display the link even when the user is not logged in case of multiple labels with different languages-->
<#assign labelLink = ""/>
<#-- Manage labels now goes to generator -->
@ -274,7 +274,7 @@ name will be used as the label. -->
<span class="inline">
<a class="add-label" href="${labelLink}"
title="${linkTitle}">${individualProfileUrl} -> ${profileParameters} -> ${extraParameters}
title="${linkTitle}">
<img class="add-individual" src="${urls.images}/individual/manage-icon.png" alt="${imageAlt}" /></a>
</span>
</#if>