From e959ffb6059e3548bba0e7264f6742c38aafd737 Mon Sep 17 00:00:00 2001 From: briancaruso Date: Wed, 29 Feb 2012 19:53:57 +0000 Subject: [PATCH] Adding entry to robots.txt, adding pageList to menu.n3 --- productMods/WEB-INF/ontologies/app/menu.n3 | 35 ++++++++++++++++++---- productMods/robots.txt | 3 +- themes/wilma/templates/identity.ftl | 5 ++++ 3 files changed, 36 insertions(+), 7 deletions(-) diff --git a/productMods/WEB-INF/ontologies/app/menu.n3 b/productMods/WEB-INF/ontologies/app/menu.n3 index 8acc8a52..c9d9c0d7 100644 --- a/productMods/WEB-INF/ontologies/app/menu.n3 +++ b/productMods/WEB-INF/ontologies/app/menu.n3 @@ -50,11 +50,8 @@ display:EventsMenuItem a display:NavigationElement ; display:menuPosition 5; display:linkText "Events"; - display:toPage display:Events . - -########## Pages ############ -#Instead of type, now using dataGetter which uses an object that specifies information for data getter - + display:toPage display:Events . + display:Home a display:HomePage ; a display:Page ; @@ -95,6 +92,8 @@ display:Research display:urlMapping "/research" ; display:hasDataGetter display:researchDataGetter . + + #The data getter objects used above a ; @@ -117,4 +116,28 @@ display:Research . - a . \ No newline at end of file + a . + + +## display model pages ### + +display:pageListPage + a display:Page ; + display:title "Pages" ; + display:urlMapping "/pageList" ; + display:requiresBodyTemplate "page-pageList.ftl" ; + display:hasDataGetter display:pageListData . + +display:pageListData + a ; + display:queryModel ; + display:saveToVar "pages" ; + + display:query """ + PREFIX display: + SELECT ?pageUri ?title ?urlMapping + WHERE { + ?pageUri a display:Page . + OPTIONAL{ ?pageUri display:urlMapping ?urlMapping } + OPTIONAL{ ?pageUri display:title ?title } + } """ . \ No newline at end of file diff --git a/productMods/robots.txt b/productMods/robots.txt index c7a52f8f..1acf58e1 100644 --- a/productMods/robots.txt +++ b/productMods/robots.txt @@ -22,4 +22,5 @@ Disallow: /visualizationfm/ Disallow: /visualization/ Disallow: /vis/ Disallow: /visualizationAjax/ -Disallow: /visualizationData/ \ No newline at end of file +Disallow: /visualizationData/ +Disallow: /qrcode diff --git a/themes/wilma/templates/identity.ftl b/themes/wilma/templates/identity.ftl index 6a35a520..3fc7332a 100644 --- a/themes/wilma/templates/identity.ftl +++ b/themes/wilma/templates/identity.ftl @@ -11,6 +11,9 @@
  • Index
  • <#if user.loggedIn> + <#if (page??) && (page.URLToEditPage??) > +
  • Edit Page
  • + <#if user.hasSiteAdminAccess>
  • Site Admin
  • @@ -29,6 +32,8 @@
+ + ${scripts.add('')}