From bce5093c46628be823e9758bafe370430e1bf7b3 Mon Sep 17 00:00:00 2001 From: hjkhjk54 Date: Wed, 16 May 2012 21:14:00 +0000 Subject: [PATCH] updates to menu.n3 - for page management --- productMods/WEB-INF/ontologies/app/menu.n3 | 23 ++++++++++++++----- .../pageManagement--classIntersections.ftl | 17 ++++++++++++++ 2 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 productMods/templates/freemarker/edit/forms/pageManagement--classIntersections.ftl diff --git a/productMods/WEB-INF/ontologies/app/menu.n3 b/productMods/WEB-INF/ontologies/app/menu.n3 index 70d23d1e..5f4040af 100644 --- a/productMods/WEB-INF/ontologies/app/menu.n3 +++ b/productMods/WEB-INF/ontologies/app/menu.n3 @@ -117,14 +117,20 @@ display:Research a . - + +#Data getter type labels + rdfs:label "Class Group Page" . + rdfs:label "Browse Page" . + rdfs:label "Class Group Page - Selected Classes" . + rdfs:label "Class Group Page - Institutional Internal Class" . + rdfs:label "Sparql Query Results" . ## display model pages ### display:pageListPage a display:Page ; display:title "Pages" ; display:urlMapping "/pageList" ; - display:requiresBodyTemplate "page-pageList.ftl" ; + display:requiresBodyTemplate "pageList.ftl" ; display:hasDataGetter display:pageListData . display:pageListData @@ -134,9 +140,14 @@ display:pageListData display:query """ PREFIX display: - SELECT ?pageUri ?title ?urlMapping + PREFIX rdfs: + SELECT ?pageUri ?title ?urlMapping ?template ?menuItem WHERE { ?pageUri a display:Page . - OPTIONAL{ ?pageUri display:urlMapping ?urlMapping } - OPTIONAL{ ?pageUri display:title ?title } - } """ . \ No newline at end of file + OPTIONAL{ ?pageUri display:urlMapping ?urlMapping. } + 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 . } + \ No newline at end of file diff --git a/productMods/templates/freemarker/edit/forms/pageManagement--classIntersections.ftl b/productMods/templates/freemarker/edit/forms/pageManagement--classIntersections.ftl new file mode 100644 index 00000000..489d1862 --- /dev/null +++ b/productMods/templates/freemarker/edit/forms/pageManagement--classIntersections.ftl @@ -0,0 +1,17 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + +<#assign internalClassUri = editConfiguration.pageData.internalClassUri /> +
+ <#if editConfiguration.pageData.internalClass?has_content> + <#assign enableInternalClass = '' /> + <#assign disableClass = 'class="inline"' /> + <#else> + <#assign enableInternalClass = '

To enable this option, you must first select an institutional internal class for your instance

' /> + <#assign disableClass = 'class="disable inline" disabled="disabled"' /> + + + checked role="input" /> + + + ${enableInternalClass} +
\ No newline at end of file