updates for page management
This commit is contained in:
parent
8ac0e93880
commit
5c3ab93bd5
3 changed files with 20 additions and 6 deletions
|
@ -35,6 +35,13 @@ display:Home
|
|||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.BrowseDataGetter> .
|
||||
|
||||
########## Page Management ##########
|
||||
display:pageListPage
|
||||
a display:Page ;
|
||||
display:title "Pages" ;
|
||||
display:urlMapping "/pageList" ;
|
||||
display:requiresBodyTemplate "pageList.ftl" ;
|
||||
display:hasDataGetter display:pageListData .
|
||||
|
||||
display:pageListData
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter>;
|
||||
display:queryModel <vitro:contextDisplayModel> ;
|
||||
|
@ -50,4 +57,5 @@ display:pageListData
|
|||
OPTIONAL{ ?pageUri display:title ?title. }
|
||||
OPTIONAL {?pageUri display:requiresBodyTemplate ?template .}
|
||||
OPTIONAL {?menuItem display:toPage ?pageUri .}
|
||||
} """ .
|
||||
} """ .
|
||||
|
|
@ -18,12 +18,16 @@ var pageManagementUtils = {
|
|||
this.bindEventListeners();
|
||||
this.initDisplay();
|
||||
//if edit, then generate existing content
|
||||
if(this.menuAction != null) {
|
||||
if(this.menuAction != null && this.menuAction == "Edit") {
|
||||
this.initExistingContent();
|
||||
}
|
||||
},
|
||||
initExistingContent:function() {
|
||||
this.generateExistingContentSections();
|
||||
//display more content button - will need to review how to hit save etc.
|
||||
//Don't need to display this b/c already in appended section
|
||||
//pageManagementUtils.moreContentButton.show();
|
||||
//Need to have additional save button
|
||||
},
|
||||
initReverseURIToLabel:function() {
|
||||
if(this.dataGetterLabelToURI != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue