...
Code Block | ||||
---|---|---|---|---|
| ||||
<bean class="org.dspace.app.webui.cris.metrics.MetricsCrisHomeProcessor" id="rpHomeProcessor"> <property name="configurator" ref="org.dspace.app.webui.cris.metrics.MetricsProcessorConfigurator"/> <property name="rankingLevels"> <list> <value>1</value> <value>5</value> <value>10</value> <value>20</value> <value>50</value> </list> </property> <property name="metricTypes"> <list> <value>view_aggregate</value> <value>download_aggregate</value> <value>scopus_aggregate</value> <value>scopus_count</value> <value>wos_aggregate</value> <value>wos_count</value> <value>pubmed_aggregate</value> <value>pubmed_count</value> </list> </property> <property name="clazz" value="org.dspace.app.cris.model.ResearcherPage" /> <property name="searchService" ref="org.dspace.discovery.SearchService" /> </bean> |
Customize the Home page
In the home page
Defining the site sections (Explore)
...
The section / entity type included in the navigation bar are defined by the following configuration
property in the [dspace-installDir]/config/modules/cris.cfg
Code Block | ||
---|---|---|
| ||
navbar.cris-entities = publications,researcherprofiles,orgunits,fundings |
For for each section it is possible to define which browses proposes , which indexes use for the advanced search and which dynamic components includeand which dynamic components include. The system looks up for a Singleton Service id org.dspace.app.webui.cris.components.ExploreMapProcessors by default it is defined in [dspace-installDir]/config/spring/cris-processor.xml indeed each piece of information to include in the section page is linked to an ExploreProcessor
Code Block | ||||
---|---|---|---|---|
| ||||
<bean class="org.dspace.app.webui.cris.components.ExploreMapProcessors" id="org.dspace.app.webui.cris.components.ExploreMapProcessors">
<property name="processorsMap">
<map>
<entry key="publications">
<list>
<bean class="org.dspace.app.webui.cris.components.BrowseProcessor">
...
</bean>
...
</list>
</entry>
<entry key="researcherprofiles">
...
</entry>
...
</map>
</property>
</bean> |
each section is an entry of in the above map containing a list of implementation of the org.dspace.app.webui.cris.components.ExploreProcessor interface.
By default two implementations of such interface are available
- org.dspace.app.webui.cris.components.BrowseProcessor - it allows to set the list of browse to include in the section
- org.dspace.app.webui.cris.components.TopObjectsProcessor - it allows to configure a list a top objects customizing the sorting criteria (most recent, most viewed, most downloaded, etc.)
The following configuration snippet define six browses to include in that specific order in a section
Code Block | ||||
---|---|---|---|---|
| ||||
<bean class="org.dspace.app.webui.cris.components.BrowseProcessor">
<property name="browseNames">
<list>
<value>itemdept</value>
<value>author</value>
<value>title</value>
<value>type</value>
<value>dateissued</value>
<value>subject</value>
</list>
</property>
</bean> |
here an two examples of configuration for the TopObjectsProcessor
Code Block | ||||
---|---|---|---|---|
| ||||
<bean class="org.dspace.app.webui.cris.components.TopObjectsProcessor">
<property name="viewConfiguration" ref="dspaceitemsLayoutView" />
<property name="type" value="recentsubmission" />
<property name="sortField" value="dateaccessioned_dt" />
<property name="order" value="desc" />
<property name="num" value="4" />
</bean>
<bean class="org.dspace.app.webui.cris.components.TopObjectsProcessor">
<property name="viewConfiguration" ref="dspaceitemsLayoutView" />
<property name="type" value="view" />
<property name="sortField" value="crismetrics_view" />
<property name="order" value="desc" />
<property name="extraInfo">
<value>crismetrics_view</value>
</property>
<property name="num" value="4" />
</bean> |
The indexes proposed for the advanced search are instead derived by the discovery configuration associated with the entity type alias (publications, researcherprofiles, etc.)