updates to menu.n3 - for page management
This commit is contained in:
parent
c126688a49
commit
bce5093c46
2 changed files with 34 additions and 6 deletions
|
@ -118,13 +118,19 @@ display:Research
|
||||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.BrowseDataGetter> .
|
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.BrowseDataGetter> .
|
||||||
|
|
||||||
|
|
||||||
|
#Data getter type labels
|
||||||
|
<java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.ClassGroupPageData> rdfs:label "Class Group Page" .
|
||||||
|
<java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.BrowseDataGetter> rdfs:label "Browse Page" .
|
||||||
|
<java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.IndividualsForClassesDataGetter> rdfs:label "Class Group Page - Selected Classes" .
|
||||||
|
<java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.InternalClassesDataGetter> rdfs:label "Class Group Page - Institutional Internal Class" .
|
||||||
|
<java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter> rdfs:label "Sparql Query Results" .
|
||||||
## display model pages ###
|
## display model pages ###
|
||||||
|
|
||||||
display:pageListPage
|
display:pageListPage
|
||||||
a display:Page ;
|
a display:Page ;
|
||||||
display:title "Pages" ;
|
display:title "Pages" ;
|
||||||
display:urlMapping "/pageList" ;
|
display:urlMapping "/pageList" ;
|
||||||
display:requiresBodyTemplate "page-pageList.ftl" ;
|
display:requiresBodyTemplate "pageList.ftl" ;
|
||||||
display:hasDataGetter display:pageListData .
|
display:hasDataGetter display:pageListData .
|
||||||
|
|
||||||
display:pageListData
|
display:pageListData
|
||||||
|
@ -134,9 +140,14 @@ display:pageListData
|
||||||
|
|
||||||
display:query """
|
display:query """
|
||||||
PREFIX display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#>
|
PREFIX display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#>
|
||||||
SELECT ?pageUri ?title ?urlMapping
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
SELECT ?pageUri ?title ?urlMapping ?template ?menuItem
|
||||||
WHERE {
|
WHERE {
|
||||||
?pageUri a display:Page .
|
?pageUri a display:Page .
|
||||||
OPTIONAL{ ?pageUri display:urlMapping ?urlMapping }
|
OPTIONAL{ ?pageUri display:urlMapping ?urlMapping. }
|
||||||
OPTIONAL{ ?pageUri display:title ?title }
|
OPTIONAL{ ?pageUri display:title ?title. }
|
||||||
|
OPTIONAL {?pageUri display:requiresBodyTemplate ?template .}
|
||||||
|
OPTIONAL {?menuItem display:toPage ?pageUri .}
|
||||||
} """ .
|
} """ .
|
||||||
|
##Originally, included this OPTIONAL {?pageUri display:hasDataGetter ?dataGetter . ?dataGetter rdfs:label ?dataGetterTypeLabel . }
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||||
|
|
||||||
|
<#assign internalClassUri = editConfiguration.pageData.internalClassUri />
|
||||||
|
<section id="internal-class" role="region">
|
||||||
|
<#if editConfiguration.pageData.internalClass?has_content>
|
||||||
|
<#assign enableInternalClass = '' />
|
||||||
|
<#assign disableClass = 'class="inline"' />
|
||||||
|
<#else>
|
||||||
|
<#assign enableInternalClass = '<p class="note">To enable this option, you must first select an <a href="${urls.base}/processInstitutionalInternalClass" title="institutional internal class">institutional internal class</a> for your instance</p>' />
|
||||||
|
<#assign disableClass = 'class="disable inline" disabled="disabled"' />
|
||||||
|
</#if>
|
||||||
|
|
||||||
|
<input type="checkbox" ${disableClass} name="display-internalClass" value="${internalClassUri}" id="display-internalClass" <#if editConfiguration.pageData.internalClass?has_content && editConfiguration.pageData.isInternal?has_content>checked</#if> role="input" />
|
||||||
|
<label ${disableClass} class="inline" for="display-internalClass">Only display <em>${editConfiguration.pageData.associatedPage}</em> within my institution</label>
|
||||||
|
|
||||||
|
${enableInternalClass}
|
||||||
|
</section>
|
Loading…
Add table
Add a link
Reference in a new issue