diff --git a/mir-module/src/main/resources/config/mir/deprecated.properties b/mir-module/src/main/resources/config/mir/deprecated.properties index ad21e0a91b..3ab2dd31cf 100644 --- a/mir-module/src/main/resources/config/mir/deprecated.properties +++ b/mir-module/src/main/resources/config/mir/deprecated.properties @@ -7,5 +7,6 @@ MCR.Access.Strategy.SubmittedCategory=MCR.Access.Strategy.SubmittedCategories MIR.Viewer.DisableDerivateType=MCR.Derivate.DisplayFilters.mir.Filter.Filters.20.Mappings.show-file-viewer.[thumbnail,...] MIR.OwnerStrategy.FallbackClass=MIR.OwnerStrategy.Fallback.Class MIR.Metadata.Admindata.ShowRealUserName=MIR.AdmindataBox.ShowRealUserName +MIR.Metadata.Navigation.SeriesPanel.RSS.Enabled=MIR.GuidancePanel.RSS.Enabled MCR.Alias.prefix=MIR.Alias.Prefix MCR.Alias.Filepattern=MIR.Alias.LayoutFilePattern diff --git a/mir-module/src/main/resources/config/mir/messages_de.properties b/mir-module/src/main/resources/config/mir/messages_de.properties index 030f3110d2..5cf314849a 100644 --- a/mir-module/src/main/resources/config/mir/messages_de.properties +++ b/mir-module/src/main/resources/config/mir/messages_de.properties @@ -400,6 +400,7 @@ mir.form.editor.dynamic.header.in = mir.form.editor.dynamic.partof = Erschienen in mir.geographic = Geografischer Ort: mir.geographic.gnd.type = GND: +mir.guidancePanel.search = Suche in {0} mir.help.abstract = Eine kurze Beschreibung des Datensatzes und des Kontextes (z.B. Zweck, Methoden der Datenerzeugung, r\u00E4umliche und zeitliche Eigenschaften, Datenqualit\u00E4t, Herkunft). mir.help.abstract.aslink = Ist ein Abstract bereits im Web verf\u00FCgbar, kann dieses auch direkt verlinkt werden. mir.help.abstract.language = Geben Sie die Sprache an, in der das hier ver\u00F6ffentlichte Abstract verfasst ist. Bei Zusammenfassungen in verschiedenen Sprachen k\u00F6nnen Sie diese mit dem \u201E+\u201C-Button wiederholen. diff --git a/mir-module/src/main/resources/config/mir/messages_en.properties b/mir-module/src/main/resources/config/mir/messages_en.properties index 967ab20d38..3e438018b0 100644 --- a/mir-module/src/main/resources/config/mir/messages_en.properties +++ b/mir-module/src/main/resources/config/mir/messages_en.properties @@ -388,6 +388,7 @@ mir.form.editor.dynamic.header.in = mir.form.editor.dynamic.partof = Part of mir.geographic = Geographic place: mir.geographic.gnd.type = GND: +mir.guidancePanel.search = Search in {0} mir.help.abstract = A human readable description of the dataset and its context (e.g. purpose and methodology of data creation, spatio-temporal characteristics, data quality, provenance). mir.help.abstract.aslink = Weblink to abstract. mir.help.abstract.ortext = A short summary of the document content. diff --git a/mir-module/src/main/resources/config/mir/mycore.properties b/mir-module/src/main/resources/config/mir/mycore.properties index 24a1dbfa24..ae85ba6afd 100644 --- a/mir-module/src/main/resources/config/mir/mycore.properties +++ b/mir-module/src/main/resources/config/mir/mycore.properties @@ -396,6 +396,14 @@ MCR.ContentTransformer.mycoreobject-podcast.Stylesheet=xslt/mir/export/mycoreobj # Apple requires an image of 3000x3000 MCR.IIIFImage.thumbnail.MaxImageBytes=27000000 +############################################################################## +# RSS feed # +############################################################################## +MCR.ContentTransformer.mycoreobject-rss.Stylesheet=xslt/mir/export/mycoreobject2rss.xsl +MCR.LayoutTransformerFactory.Default.Ignore=%MCR.LayoutTransformerFactory.Default.Ignore%,mycoreobject-rss +# Optional name of the generator in the RSS feed, e.g. MIR: MyCoRe/MODS Institutional Repository +#MIR.RSS.Generator= + ############################################################################## # ReCaptcha for self registration # ############################################################################## @@ -826,7 +834,7 @@ MCR.ContentTransformer.mycoreobject.Steps=mycoreobject-modsmeta,newMetadataStyle MIR.Layout.Top=mir-breadcrumb,search_browsing,mir-message MIR.Layout.Start=mir-abstract-badges,mir-workflow,mir-abstract-title,mir-abstract-plus,toc,mir-file-upload,mir-viewer,mir-player,mir-collapse-files,mir-metadata -MIR.Layout.End=mir-edit,mir-citation,mir-thumbnail,mir-epusta,mir-access-rights,mir-export,mir-admindata,mir-historydata, +MIR.Layout.End=mir-edit,mir-guidance-panel,mir-citation,mir-thumbnail,mir-epusta,mir-access-rights,mir-export,mir-admindata,mir-historydata, MIR.Layout.Bottom= #MIR.Layout.Start.Col=col-12 col-lg-8 @@ -884,6 +892,21 @@ MCR.Startup.Class = %MCR.Startup.Class%,org.mycore.mir.migration.MIRMigrateStati ############################################################################## #MIR.Maintenance.File=%MCR.basedir%/maintenance.xml +############################################################################## +# Guidance panel # +############################################################################## +# Enables the guidance panel on the metadata page, in the result list of a series search (q or fq=mods.relatedItem.root:{id}) +# and in MyCoReWebPages +MIR.GuidancePanel.Enabled=false +# Shows a link to the RSS feed of the series (see RSS feed) in the panel +MIR.GuidancePanel.RSS.Enabled=true +MCR.URIResolver.xslImports.modsmeta=%MCR.URIResolver.xslImports.modsmeta%,mir/object-page/boxes/guidance-panel.xsl +MCR.URIResolver.xslIncludes.MyCoReWebPage=%MCR.URIResolver.xslIncludes.MyCoReWebPage%,resource:xslt/mir/guidance-panel/webpage.xsl +# navigation derivates (navigation.xml, banner, web pages) are not shown in the object view and not exported +MCR.Derivate.DisplayFilters.mir.Filter.Filters.20.Mappings.show-file-viewer.navigation=false +MCR.Derivate.DisplayFilters.mir.Filter.Filters.20.Mappings.show-file-area.navigation=false +MCR.Derivate.DisplayFilters.mir.Filter.Filters.20.Mappings.export.navigation=false + ############################################################################## # Alias # ############################################################################## diff --git a/mir-module/src/main/resources/config/mir/solr/main/solr-schema.json b/mir-module/src/main/resources/config/mir/solr/main/solr-schema.json index 4cd7ac15de..05700316c9 100644 --- a/mir-module/src/main/resources/config/mir/solr/main/solr-schema.json +++ b/mir-module/src/main/resources/config/mir/solr/main/solr-schema.json @@ -376,5 +376,14 @@ "source": "mods.nameIdentifier", "dest": "mods.nameIdentifier.id" } + }, + { + "add-field": { + "name": "mods.relatedItem.root", + "type": "string", + "indexed": true, + "stored": true, + "multiValued": true + } } ] diff --git a/mir-module/src/main/resources/xslt/mir/export/mycoreobject2rss.xsl b/mir-module/src/main/resources/xslt/mir/export/mycoreobject2rss.xsl new file mode 100644 index 0000000000..3573d672f6 --- /dev/null +++ b/mir-module/src/main/resources/xslt/mir/export/mycoreobject2rss.xsl @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + https://www.rssboard.org/rss-specification + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:apply-templates select="." mode="text" /> + + + + + + + + + : + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mir-module/src/main/resources/xslt/mir/functions/mirmods.xsl b/mir-module/src/main/resources/xslt/mir/functions/mirmods.xsl index 8e59165fb4..9815728d01 100644 --- a/mir-module/src/main/resources/xslt/mir/functions/mirmods.xsl +++ b/mir-module/src/main/resources/xslt/mir/functions/mirmods.xsl @@ -3,6 +3,7 @@ xmlns:mcrmods="http://www.mycore.de/xslt/mods" xmlns:mirmods="http://www.mycore.de/xslt/mirmods" xmlns:mods="http://www.loc.gov/mods/v3" + xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="#all"> @@ -20,4 +21,12 @@ + + + + + + + + diff --git a/mir-module/src/main/resources/xslt/mir/guidance-panel/functions/mirguidancepanel.xsl b/mir-module/src/main/resources/xslt/mir/guidance-panel/functions/mirguidancepanel.xsl new file mode 100644 index 0000000000..7ff89cf3ea --- /dev/null +++ b/mir-module/src/main/resources/xslt/mir/guidance-panel/functions/mirguidancepanel.xsl @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mir-module/src/main/resources/xslt/mir/guidance-panel/render.xsl b/mir-module/src/main/resources/xslt/mir/guidance-panel/render.xsl new file mode 100644 index 0000000000..b50a0fe5e5 --- /dev/null +++ b/mir-module/src/main/resources/xslt/mir/guidance-panel/render.xsl @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + +
+

+ +

+
+
+
    + + + + + + + + + + +
+
+ +
+
+
+
+ + + + + + + {$title} + + + + + + + + + + +
+ + +
+ + +
+ +
+ + + +
  • + + + RSS 2.0 Feed + +
  • +
    + + + +
  • + + + +
  • +
    + +
    diff --git a/mir-module/src/main/resources/xslt/mir/guidance-panel/webpage.xsl b/mir-module/src/main/resources/xslt/mir/guidance-panel/webpage.xsl new file mode 100644 index 0000000000..14d79f11c3 --- /dev/null +++ b/mir-module/src/main/resources/xslt/mir/guidance-panel/webpage.xsl @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + +
    +
    + +
    +
    + +
    +
    +
    + + + +
    +
    + + + + + + + + + + +
    diff --git a/mir-module/src/main/resources/xslt/mir/object-page/boxes/guidance-panel.xsl b/mir-module/src/main/resources/xslt/mir/object-page/boxes/guidance-panel.xsl new file mode 100644 index 0000000000..0d22c8e98c --- /dev/null +++ b/mir-module/src/main/resources/xslt/mir/object-page/boxes/guidance-panel.xsl @@ -0,0 +1,27 @@ + + + + + + + + + +
    + + + + + +
    +
    + +
    + +
    diff --git a/mir-module/src/main/resources/xslt/mir/solr/indexing/fields.xsl b/mir-module/src/main/resources/xslt/mir/solr/indexing/fields.xsl index 04588675d1..98c54d7b19 100644 --- a/mir-module/src/main/resources/xslt/mir/solr/indexing/fields.xsl +++ b/mir-module/src/main/resources/xslt/mir/solr/indexing/fields.xsl @@ -5,12 +5,14 @@ xmlns:mcrmods="http://www.mycore.de/xslt/mods" xmlns:mcrproperty="http://www.mycore.de/xslt/property" xmlns:mcrstringutils="http://www.mycore.de/xslt/stringutils" + xmlns:mirmods="http://www.mycore.de/xslt/mirmods" xmlns:mods="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="mods xlink"> + @@ -34,6 +36,11 @@ + + + + + diff --git a/mir-module/src/main/resources/xslt/mir/solr/response/results.xsl b/mir-module/src/main/resources/xslt/mir/solr/response/results.xsl index 4cdb00f15b..5957b21ced 100644 --- a/mir-module/src/main/resources/xslt/mir/solr/response/results.xsl +++ b/mir-module/src/main/resources/xslt/mir/solr/response/results.xsl @@ -7,10 +7,12 @@ xmlns:mcrlayoututils="http://www.mycore.de/xslt/layoututils" xmlns:mcrurl="http://www.mycore.de/xslt/url" xmlns:mirorcidutil="http://www.mycore.de/xslt/mirorcidutil" + xmlns:mirguidancepanel="http://www.mycore.de/xslt/mirguidancepanel" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="#all"> + @@ -450,6 +452,16 @@ + + + + + + + + +