Skip to content

Includes an extended navigation for journals and series in MIR

Notifications You must be signed in to change notification settings

MyCoRe-Org/mir-navigation-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mir-navigation-plugin

Includes an extended navigation for newspapers and series. It based on a widen solr handling for parent documents (root field).

The plugin provides the extended solr handling for series (solr-navigation.xsl). In frontend context there is a series layout with a panel that shows the navigation.

Installation instructions for mir lts 2019.06 (As mir-enduser)

  1. Download the project from this repository and place it on your computer

  2. Unzip the downloaded file to create a development project folder location

  3. Customize general mycore.properties(http://www.mycore.de/documentation/getting_started/mcr_properties.html) for this plugin (/mir-navigation-plugin/src/main/resources/config/mir-navigation-plugin/mycore.properties)

  4. Create jar file with maven => mvn clean && mvn install

  5. Copy the created jar file from target (/mir-navigation-plugin/target) to mycore home lib

(Windows Systems C:\Users\User\AppData\Local\MyCoRe\mirapplication\lib)
(Linux Systems /home/user/.mycore/mirapplication/lib)

  1. The navigation plugin uses a widen solr handling for parent documents. For this purpose, the plugin brings its own schema extensions. It is necessary to reload the solr schema (for further information have a look on solr mycore documentation http://www.mycore.de/documentation/search/using_solr.html). In case of a standard solr core installation (the main core is named „main“) open the mir web cli:
  • run command „reload solr configuration main in core main“
    • This command synchronizes the solr main core with the solr schema from this plugin
  • Reload the mir core with solr webadmin (Core Admin - reload)
    • You can do a quick check in the solr webadmin via mir schema menu item (root field should be there now)
  • Reindex solr with the rules from the navigation plugin with command „rebuild solr metadata and content index in core main“
    • solr entries should provide the extended handling for parent documents now (root field)

Understanding xsl file structure for adapt navigation on different pages

---- src/main/resources/xsl

The transformation stylesheet files are located here.

To include navigation into mycoreobject-modsmeta view it is necessary to overwrite mods-metadata.xsl (.../resources/xsl/metadata/mods-metadata-page.xsl) on mir application customization layer (@see MIR Installation).

The following example includes the additional navigation for journals and series right before the citation container:

...
<!-- right column -->
        <div id="aux_col" class="col-xs-12 col-sm-4">

<!-- additional layout components for journals and series -->
        <xsl:copy-of select="div[@id='series-banner']" />
        <xsl:copy-of select="div[@id='series-layout']" />


<!-- cites -->
...

About

Includes an extended navigation for journals and series in MIR

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages