Added sci templates and some doku (backport release 24x r6194).
git-svn-id: https://svn.libreccm.org/ccm/trunk@6195 8810af33-2d31-482b-a856-94f89814c4dfmaster^2^2^2^2^2^2
parent
92c98d6d3b
commit
21e6ed36c7
|
|
@ -140,6 +140,17 @@ com.arsdigita.cms.use_streamlined_creation=true
|
|||
com.arsdigita.cms.contenttypes.generic_contact.contact_entry_keys=email,phoneOffice,phoneMobile,phonePrivate,fax,building,office,vistitingHours
|
||||
|
||||
|
||||
# ccm-cms-publicpersonalprofile
|
||||
# ##############################################################################
|
||||
com.arsdigita.cms.publicpersonalprofile.publications.groups=monographs\:com.arsdigita.cms.contenttypes.Monograph;collectedVolumes\:com.arsdigita.cms.contenttypes.CollectedVolume;collectedVolumeArticles\:com.arsdigita.cms.contenttypes.ArticleInCollectedVolume;journalArticlesReviewed\:com.arsdigita.cms.contenttypes.ArticleInJournal_reviewed;journalArticles\:com.arsdigita.cms.contenttypes.ArticleInJournal_notreviewed
|
||||
#com.arsdigita.cms.publicpersonalprofile.publications.groupSplit=20
|
||||
#com.arsdigita.cms.publicpersonlprofile.publications.groupSplit=20
|
||||
com.arsdigita.cms.publicpersonlprofile.publications.groupSplit=1
|
||||
com.arsdigita.cms.publicpersonlprofile.publications.pageSize=100
|
||||
com.arsdigita.cms.publicpersonalprofile.projects.groupSplit=1
|
||||
com.arsdigita.cms.publicPersonalProfile.person_type=com.arsdigita.cms.contenttypes.SciMember
|
||||
|
||||
|
||||
# ccm-cms-types-event parameters
|
||||
# ##############################################################################
|
||||
com.arsdigita.cms.contenttypes.event.hide_cost=true
|
||||
|
|
@ -151,24 +162,12 @@ com.arsdigita.cms.contenttypes.event.use_html_date_description=false
|
|||
com.arsdigita.cms.contenttypes.event.start_year=2015
|
||||
com.arsdigita.cms.contenttypes.event.end_year_delta=5
|
||||
|
||||
|
||||
# ccm-cms-types-newsitem parameters
|
||||
# ##############################################################################
|
||||
com.arsdigita.cms.contenttypes.newsitem.hide_homepage=true
|
||||
com.arsdigita.cms.contenttypes.newsitem.start_year=2015
|
||||
com.arsdigita.cms.contenttypes.newsitem.end_year_delta=5
|
||||
|
||||
# ccm-cms-publicpersonalprofile
|
||||
# ##############################################################################
|
||||
com.arsdigita.cms.publicpersonalprofile.publications.groups=monographs\:com.arsdigita.cms.contenttypes.Monograph;collectedVolumes\:com.arsdigita.cms.contenttypes.CollectedVolume;collectedVolumeArticles\:com.arsdigita.cms.contenttypes.ArticleInCollectedVolume;journalArticlesReviewed\:com.arsdigita.cms.contenttypes.ArticleInJournal_reviewed;journalArticles\:com.arsdigita.cms.contenttypes.ArticleInJournal_notreviewed
|
||||
#com.arsdigita.cms.publicpersonalprofile.publications.groupSplit=20
|
||||
#com.arsdigita.cms.publicpersonlprofile.publications.groupSplit=20
|
||||
com.arsdigita.cms.publicpersonlprofile.publications.groupSplit=1
|
||||
com.arsdigita.cms.publicpersonlprofile.publications.pageSize=100
|
||||
com.arsdigita.cms.publicpersonalprofile.projects.groupSplit=1
|
||||
com.arsdigita.cms.publicPersonalProfile.person_type=com.arsdigita.cms.contenttypes.SciMember
|
||||
|
||||
|
||||
# AtoZ configuration parameters
|
||||
# ##############################################################################
|
||||
com.arsdigita.atoz.root_category_picker=com.arsdigita.london.terms.ui.RootCategoryPicker
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
|
||||
<display-name>Scientific CMS (standard bundle)</display-name>
|
||||
<display-name>Scientific CMS (standard bundle)</display-name>
|
||||
<description>Content and Collaboration Management for Scientific Institutions</description>
|
||||
|
||||
<!-- path and filename of the log4j2 user accessible config file
|
||||
|
|
|
|||
|
|
@ -0,0 +1,77 @@
|
|||
<!--
|
||||
The ScientificCMS default departments item page (index page) provided by package
|
||||
ccm-sci-types-department.
|
||||
Sites will probably use a customized departmenbt list page.
|
||||
|
||||
##Title: ScientificCMS Departments Item Page
|
||||
##Descr: ScientificCMS page listing departments
|
||||
##Path : /templates/ccm-navigation/navigation/sci-departments.jsp
|
||||
-->
|
||||
<jsp:root
|
||||
xmlns:jsp="http://java.sun.com/JSP/Page"
|
||||
xmlns:define="/WEB-INF/bebop-define.tld"
|
||||
xmlns:show="/WEB-INF/bebop-show.tld"
|
||||
version="1.2">
|
||||
|
||||
<jsp:directive.page import="com.arsdigita.dispatcher.DispatcherHelper"/>
|
||||
<jsp:directive.page import="com.arsdigita.bebop.parameters.BigDecimalParameter"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.Navigation"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.cms.CMSDataCollectionDefinition"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.cms.CMSDataCollectionRenderer"/>
|
||||
|
||||
<jsp:scriptlet>
|
||||
long age = Navigation.getConfig().getIndexPageCacheLifetime();
|
||||
if (age == 0) {
|
||||
DispatcherHelper.cacheDisable(response);
|
||||
} else {
|
||||
DispatcherHelper.cacheForWorld(response, (int)age);
|
||||
}
|
||||
</jsp:scriptlet>
|
||||
|
||||
<define:page name="defaultItemPage" application="navigation"
|
||||
title="Navigation" cache="true">
|
||||
|
||||
<define:component name="greetingItem"
|
||||
classname="com.arsdigita.navigation.ui.GreetingItem"/>
|
||||
<define:component name="categoryPath"
|
||||
classname="com.arsdigita.navigation.ui.category.Path"/>
|
||||
<define:component name="categoryMenu"
|
||||
classname="com.arsdigita.navigation.ui.category.Menu"/>
|
||||
// Menu for mobile responsive version
|
||||
<define:component name="categoryNav"
|
||||
classname="com.arsdigita.navigation.ui.category.Hierarchy" />
|
||||
<jsp:scriptlet>
|
||||
((com.arsdigita.navigation.ui.category.Hierarchy) categoryNav).setShowItems(false);
|
||||
</jsp:scriptlet>
|
||||
|
||||
|
||||
<define:component name="itemList"
|
||||
classname="com.arsdigita.navigation.ui.object.SimpleObjectList"/>
|
||||
<jsp:scriptlet>
|
||||
|
||||
defaultItemPage.setClassAttr("departmentsPage");
|
||||
|
||||
((com.arsdigita.navigation.ui.object.SimpleObjectList) itemList).setDefinition(new CMSDataCollectionDefinition());
|
||||
((com.arsdigita.navigation.ui.object.SimpleObjectList) itemList).setRenderer(new CMSDataCollectionRenderer());
|
||||
((com.arsdigita.navigation.ui.object.SimpleObjectList) itemList).getDefinition().setObjectType("com.arsdigita.cms.ContentPage");
|
||||
|
||||
((com.arsdigita.navigation.ui.object.SimpleObjectList) itemList).getDefinition().setDescendCategories(false);
|
||||
((com.arsdigita.navigation.ui.object.SimpleObjectList) itemList).getDefinition().addOrder("parent.categories.link.sortKey");
|
||||
|
||||
((com.arsdigita.navigation.ui.object.SimpleObjectList) itemList).getRenderer().setPageSize(30);
|
||||
((com.arsdigita.navigation.ui.object.SimpleObjectList) itemList).getRenderer().addAttribute("objectType");
|
||||
((com.arsdigita.navigation.ui.object.SimpleObjectList) itemList).getRenderer().addAttribute("title");
|
||||
((com.arsdigita.navigation.ui.object.SimpleObjectList) itemList).getRenderer().addAttribute("departmentShortDescription");
|
||||
((com.arsdigita.navigation.ui.object.SimpleObjectList) itemList).getRenderer().addAttribute("contacts.contact_type");
|
||||
// ((com.arsdigita.navigation.ui.object.SimpleObjectList) itemList).getRenderer().addAttribute("contacts");
|
||||
// ((com.arsdigita.navigation.ui.object.SimpleObjectList) itemList).getRenderer().addAttribute("persons");
|
||||
((com.arsdigita.navigation.ui.object.SimpleObjectList) itemList).getRenderer().addAttribute( "imageAttachments.caption");
|
||||
((com.arsdigita.navigation.ui.object.SimpleObjectList) itemList).getRenderer().addAttribute( "imageAttachments.image.id");
|
||||
</jsp:scriptlet>
|
||||
|
||||
<define:component name="assignedTerms"
|
||||
classname="com.arsdigita.navigation.ui.CategoryIndexAssignedTerms"/>
|
||||
|
||||
</define:page>
|
||||
<show:all/>
|
||||
</jsp:root>
|
||||
|
|
@ -9,6 +9,7 @@
|
|||
<jsp:directive.page import="com.arsdigita.navigation.Navigation"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.cms.CMSDataCollectionDefinition"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.cms.CMSDataCollectionRenderer"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.ui.object.CompareFilter"/>
|
||||
<jsp:directive.page import="org.apache.log4j.Logger"/>
|
||||
|
||||
<jsp:scriptlet>
|
||||
|
|
@ -29,28 +30,30 @@
|
|||
<define:component name="categoryMenu"
|
||||
classname="com.arsdigita.navigation.ui.category.Menu"/>
|
||||
<define:component name="categoryNav"
|
||||
classname="com.arsdigita.navigation.ui.category.Hierarchy">
|
||||
<jsp:scriptlet>
|
||||
((com.arsdigita.navigation.ui.category.Hierarchy) categoryNav).setShowItems(false);
|
||||
</jsp:scriptlet>
|
||||
</define:component>
|
||||
|
||||
classname="com.arsdigita.navigation.ui.category.Hierarchy" />
|
||||
<jsp:scriptlet>
|
||||
((com.arsdigita.navigation.ui.category.Hierarchy) categoryNav).setShowItems(false);
|
||||
</jsp:scriptlet>
|
||||
<define:component name="itemList"
|
||||
classname="com.arsdigita.navigation.ui.object.CustomizableObjectList"/>
|
||||
<jsp:scriptlet>
|
||||
((com.arsdigita.navigation.ui.object.CustomizableObjectList) itemList).addTextFilter("surname", "surname");
|
||||
((com.arsdigita.navigation.ui.object.CustomizableObjectList) itemList).setCustomName("memberList");
|
||||
((com.arsdigita.navigation.ui.object.CustomizableObjectList) itemList).addTextFilter("surname", "surname");
|
||||
//CompareFilter statusFilter = ((com.arsdigita.navigation.ui.object.CustomizableObjectList) itemList).addCompareFilter(
|
||||
// "memberStatus", "status", false, false, false);
|
||||
//statusFilter.addOption("memberActive", "active");
|
||||
//statusFilter.addOption("memberFormer", "former");
|
||||
((com.arsdigita.navigation.ui.object.CustomizableObjectList) itemList).setCustomName("memberList");
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).setDefinition(new CMSDataCollectionDefinition());
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).setRenderer(new CMSDataCollectionRenderer());
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).getDefinition().setObjectType("com.arsdigita.cms.contenttypes.GenericPerson");
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).getRenderer().setPageSize(20);
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).getRenderer().setPageSize(100);
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).getRenderer().setSpecializeObjects(true);
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).getDefinition().addOrder("surname");
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).getDefinition().addOrder("givenname");
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).getDefinition().addOrder("surname");
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).getDefinition().addOrder("givenname");
|
||||
</jsp:scriptlet>
|
||||
|
||||
<define:component name="assignedTerms"
|
||||
classname="com.arsdigita.navigation.ui.CategoryIndexAssignedTerms"/>
|
||||
</define:page>
|
||||
<show:all/>
|
||||
<show:all/>
|
||||
</jsp:root>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,73 @@
|
|||
<!--
|
||||
The ScientificCMS customizable projects item page (index page) provided by package
|
||||
ccm-sci-types-project.
|
||||
In this version you can modify the elements to show inside the jsp.
|
||||
Sites will probably use a customized project list page.
|
||||
|
||||
##Title: ScientificCMS Customizable Project Item Page
|
||||
##Descr: ScientificCMS page listing projects customizable inside the jsp
|
||||
##Path : /templates/ccm-navigation/navigation/sci-projects-customizable.jsp
|
||||
-->
|
||||
<jsp:root
|
||||
xmlns:jsp="http://java.sun.com/JSP/Page"
|
||||
xmlns:define="/WEB-INF/bebop-define.tld"
|
||||
xmlns:show="/WEB-INF/bebop-show.tld"
|
||||
version="1.2">
|
||||
|
||||
<jsp:directive.page import="com.arsdigita.dispatcher.DispatcherHelper"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.Navigation"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.Navigation"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.cms.CMSDataCollectionDefinition"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.cms.CMSDataCollectionRenderer"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.ui.object.CategoryFilter"/>
|
||||
|
||||
<jsp:scriptlet>
|
||||
long age = Navigation.getConfig().getIndexPageCacheLifetime();
|
||||
if (age == 0) {
|
||||
DispatcherHelper.cacheDisable(response);
|
||||
} else {
|
||||
DispatcherHelper.cacheForWorld(response, (int)age);
|
||||
}
|
||||
</jsp:scriptlet>
|
||||
|
||||
<define:page name="defaultItemPage" application="navigation"
|
||||
title="Navigation" cache="false">
|
||||
|
||||
<define:component name="greetingItem"
|
||||
classname="com.arsdigita.navigation.ui.GreetingItem"/>
|
||||
<define:component name="categoryPath"
|
||||
classname="com.arsdigita.navigation.ui.category.Path"/>
|
||||
<define:component name="categoryMenu"
|
||||
classname="com.arsdigita.navigation.ui.category.Menu"/>
|
||||
<define:component name="categoryNav"
|
||||
classname="com.arsdigita.navigation.ui.category.Hierarchy" />
|
||||
<jsp:scriptlet>
|
||||
((com.arsdigita.navigation.ui.category.Hierarchy) categoryNav).setShowItems(false);
|
||||
</jsp:scriptlet>
|
||||
<define:component name="itemList"
|
||||
classname="com.arsdigita.navigation.ui.object.CustomizableObjectList"/>
|
||||
|
||||
<jsp:scriptlet>
|
||||
((com.arsdigita.navigation.ui.object.CustomizableObjectList) itemList).addTextFilter("title", "title");
|
||||
CategoryFilter rfFilter = ((com.arsdigita.navigation.ui.object.CustomizableObjectList) itemList).addCategoryFilter("researchfield", "Forschungsfelder");
|
||||
rfFilter.setMultiple(false);
|
||||
((com.arsdigita.navigation.ui.object.CustomizableObjectList) itemList).setCustomName("projectList");
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).setDefinition(new CMSDataCollectionDefinition());
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).setRenderer(new CMSDataCollectionRenderer());
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).getDefinition().setObjectType("com.arsdigita.cms.contenttypes.SciProject");
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).getRenderer().setPageSize(50);
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).getRenderer().setSpecializeObjects(true);
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).getDefinition().addOrder("projectBegin DESC");
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).getDefinition().addOrder("projectEnd DESC");
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) itemList).getDefinition().addOrder("title ASC");
|
||||
|
||||
</jsp:scriptlet>
|
||||
|
||||
<define:component name="assignedTerms"
|
||||
classname="com.arsdigita.navigation.ui.CategoryIndexAssignedTerms"/>
|
||||
|
||||
</define:page>
|
||||
|
||||
<show:all/>
|
||||
|
||||
</jsp:root>
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
<!--
|
||||
The ScientificCMS default projects item page (index page) provided by package
|
||||
ccm-sci-types-project.
|
||||
This version uses a java class to collect the item elements to show.
|
||||
There is another version (customizable) where you can modify the elements to
|
||||
show inside the jsp.
|
||||
Sites will probably use a customized project list page.
|
||||
|
||||
##Title: ScientificCMS Project Item Page
|
||||
##Descr: ScientificCMS page listing projects
|
||||
##Path : /templates/ccm-navigation/navigation/sci-projects.jsp
|
||||
-->
|
||||
<jsp:root
|
||||
xmlns:jsp="http://java.sun.com/JSP/Page"
|
||||
xmlns:define="/WEB-INF/bebop-define.tld"
|
||||
xmlns:show="/WEB-INF/bebop-show.tld"
|
||||
version="1.2">
|
||||
|
||||
<jsp:directive.page import="com.arsdigita.dispatcher.DispatcherHelper"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.Navigation"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.Navigation"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.cms.CMSDataCollectionDefinition"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.cms.CMSDataCollectionRenderer"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.ui.object.CategoryFilter"/>
|
||||
|
||||
<jsp:scriptlet>
|
||||
long age = Navigation.getConfig().getIndexPageCacheLifetime();
|
||||
if (age == 0) {
|
||||
DispatcherHelper.cacheDisable(response);
|
||||
} else {
|
||||
DispatcherHelper.cacheForWorld(response, (int)age);
|
||||
}
|
||||
</jsp:scriptlet>
|
||||
|
||||
<define:page name="defaultItemPage" application="navigation"
|
||||
title="Navigation" cache="false">
|
||||
|
||||
<define:component name="greetingItem"
|
||||
classname="com.arsdigita.navigation.ui.GreetingItem"/>
|
||||
<define:component name="categoryPath"
|
||||
classname="com.arsdigita.navigation.ui.category.Path"/>
|
||||
<define:component name="categoryMenu"
|
||||
classname="com.arsdigita.navigation.ui.category.Menu"/>
|
||||
<define:component name="categoryNav"
|
||||
classname="com.arsdigita.navigation.ui.category.Hierarchy" />
|
||||
<jsp:scriptlet>
|
||||
((com.arsdigita.navigation.ui.category.Hierarchy) categoryNav).setShowItems(false);
|
||||
</jsp:scriptlet>
|
||||
<define:component name="itemList"
|
||||
classname="com.arsdigita.cms.sciproject.navigation.SciProjectList"/>
|
||||
|
||||
<define:component name="assignedTerms"
|
||||
classname="com.arsdigita.navigation.ui.CategoryIndexAssignedTerms"/>
|
||||
|
||||
</define:page>
|
||||
|
||||
<show:all/>
|
||||
|
||||
</jsp:root>
|
||||
|
|
@ -3,21 +3,22 @@
|
|||
xmlns:define="/WEB-INF/bebop-define.tld"
|
||||
xmlns:show="/WEB-INF/bebop-show.tld"
|
||||
version="1.2">
|
||||
|
||||
|
||||
<jsp:directive.page import="com.arsdigita.dispatcher.DispatcherHelper"/>
|
||||
<jsp:directive.page import="com.arsdigita.bebop.parameters.BigDecimalParameter"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.Navigation"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.cms.CMSDataCollectionDefinition"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.cms.CMSDataCollectionRenderer"/>
|
||||
<jsp:directive.page import="com.arsdigita.navigation.ui.object.CustomizableObjectList"/>
|
||||
//<jsp:directive.page import="com.arsdigita.navigation.ui.object.CategoryFilter"/>
|
||||
|
||||
<jsp:scriptlet>
|
||||
long age = Navigation.getConfig().getIndexPageCacheLifetime();
|
||||
if (age == 0) {
|
||||
DispatcherHelper.cacheDisable(response);
|
||||
} else {
|
||||
DispatcherHelper.cacheForWorld(response, (int)age);
|
||||
}
|
||||
long age = Navigation.getConfig().getIndexPageCacheLifetime();
|
||||
if (age == 0) {
|
||||
DispatcherHelper.cacheDisable(response);
|
||||
} else {
|
||||
DispatcherHelper.cacheForWorld(response, (int)age);
|
||||
}
|
||||
</jsp:scriptlet>
|
||||
|
||||
<define:page name="defaultItemPage" application="navigation"
|
||||
|
|
@ -28,40 +29,50 @@
|
|||
classname="com.arsdigita.navigation.ui.category.Path"/>
|
||||
<define:component name="categoryMenu"
|
||||
classname="com.arsdigita.navigation.ui.category.Menu"/>
|
||||
<define:component name="categoryNav"
|
||||
classname="com.arsdigita.navigation.ui.category.Hierarchy" />
|
||||
<jsp:scriptlet>
|
||||
((com.arsdigita.navigation.ui.category.Hierarchy) categoryNav).setShowItems(false);
|
||||
</jsp:scriptlet>
|
||||
|
||||
<define:component name="itemList"
|
||||
classname="com.arsdigita.navigation.ui.object.CustomizableObjectList"/>
|
||||
|
||||
<jsp:scriptlet>
|
||||
CustomizableObjectList objList = (CustomizableObjectList) itemList;
|
||||
objList.setDefinition(new CMSDataCollectionDefinition());
|
||||
objList.setRenderer(new CMSDataCollectionRenderer());
|
||||
objList.setCustomName("SciPublicationsList");
|
||||
objList.getDefinition().setObjectType("com.arsdigita.cms.contenttypes.Publication");
|
||||
objList.getDefinition().setDescendCategories(false);
|
||||
objList.addTextFilter("title", "title");
|
||||
objList.addTextFilter("authorsStr", "authorsStr");
|
||||
objList.addSelectFilter("yearOfPublication", "yearOfPublication", true, true, true, true);
|
||||
objList.addSortField("title", "title asc");
|
||||
objList.addSortField("yearAsc", "yearOfPublication asc");
|
||||
objList.addSortField("yearDesc", "yearOfPublication desc");
|
||||
objList.addSortField("authors", "authorsStr asc");
|
||||
objList.getDefinition().addOrder(objList.getOrder(request.getParameter("sort")));
|
||||
<jsp:scriptlet>
|
||||
CustomizableObjectList objList = (CustomizableObjectList) itemList;
|
||||
objList.setDefinition(new CMSDataCollectionDefinition());
|
||||
objList.setRenderer(new CMSDataCollectionRenderer());
|
||||
objList.setCustomName("SciPublicationsList");
|
||||
objList.getDefinition().setObjectType("com.arsdigita.cms.contenttypes.Publication");
|
||||
objList.getDefinition().setDescendCategories(true);
|
||||
objList.addTextFilter("title", "title");
|
||||
objList.addSelectFilter("yearOfPublication", "yearOfPublication", true, true, true, true);
|
||||
objList.addTextFilter("authorsStr", "authorsStr");
|
||||
|
||||
objList.getRenderer().setPageSize(20);
|
||||
objList.getRenderer().setSpecializeObjects(true);
|
||||
//CategoryFilter catFilter = objList.addCategoryFilter("keywords", "Publikationen Schlagworte");
|
||||
//catFilter.setSeparator(";");
|
||||
|
||||
</jsp:scriptlet>
|
||||
objList.addSortField("yearAsc", "yearOfPublication asc");
|
||||
objList.addSortField("yearDesc", "yearOfPublication desc");
|
||||
objList.addSortField("authors", "authorsStr asc");
|
||||
objList.addSortField("title", "title asc");
|
||||
objList.getDefinition().addOrder(objList.getOrder(request.getParameter("sort")));
|
||||
|
||||
objList.getRenderer().setPageSize(20);
|
||||
objList.getRenderer().setSpecializeObjects(true);
|
||||
|
||||
</jsp:scriptlet>
|
||||
|
||||
<define:component name="assignedTerms"
|
||||
classname="com.arsdigita.navigation.ui.CategoryIndexAssignedTerms"/>
|
||||
|
||||
<define:component name="publicationExportLinks"
|
||||
classname="com.arsdigita.cms.scipublications.ui.PublicationExportLinks"/>
|
||||
<jsp:scriptlet>
|
||||
((com.arsdigita.cms.scipublications.ui.PublicationExportLinks)publicationExportLinks).setObjList(objList);
|
||||
</jsp:scriptlet>
|
||||
</define:page>
|
||||
|
||||
<define:component name="assignedTerms"
|
||||
classname="com.arsdigita.navigation.ui.CategoryIndexAssignedTerms"/>
|
||||
|
||||
<define:component name="publicationExportLinks"
|
||||
classname="com.arsdigita.cms.scipublications.ui.PublicationExportLinks"/>
|
||||
<jsp:scriptlet>
|
||||
((com.arsdigita.cms.scipublications.ui.PublicationExportLinks)publicationExportLinks).setObjList(objList);
|
||||
</jsp:scriptlet>
|
||||
|
||||
</define:page>
|
||||
<show:all/>
|
||||
|
||||
</jsp:root>
|
||||
|
|
|
|||
Loading…
Reference in New Issue