File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed
Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,27 @@ Example MyCoReWebPage with panel and layout:
9999</MyCoReWebPage >
100100```
101101
102+ #### Extended MyCoReWebPage support
103+
104+ MyCoReWebPage support can be extended with ` series-panel-enricher.xsl ` . By setting ` render-series-panel="true" ` in a
105+ MyCoReWebPage, a series panel with layout is automatically generated, using the section’s content.
106+ To activate it, add the stylesheet alongside ` series-panel-adapter.xsl ` as follows:
107+
108+ ``` text
109+ # Add 'series-panel-adapter.xsl' to enable series panel rendering in MyCoReWebPage
110+ MCR.URIResolver.xslIncludes.MyCoReWebPage=%MCR.URIResolver.xslIncludes.MyCoReWebPage%,series-panel-enricher.xsl,series-panel-adapter.xsl
111+ ```
112+
113+ Example MyCoReWebPage with automatic panel and layout using ` render-series-panel ` :
114+
115+ ``` xml
116+ <MyCoReWebPage render-series-panel =" true" >
117+ <section xml : lang =" en" title =" Title" >
118+ <p >Hello world</p >
119+ </section >
120+ </MyCoReWebPage >
121+ ```
122+
102123### Reload and rebuild Solr
103124
104125The plugin leverages enhanced Solr handling for parent documents.
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <xsl : stylesheet version =" 1.0"
3+ xmlns : xsl =" http://www.w3.org/1999/XSL/Transform"
4+ xmlns : exslt =" http://exslt.org/common"
5+ extension-element-prefixes =" exslt" >
6+
7+ <xsl : template match =" /MyCoReWebPage[@render-series-panel='true']/section" priority =" 10" >
8+ <xsl : variable name =" enriched-section" >
9+ <div class =" row detail_row" >
10+ <div class =" col-xs-12 col-sm-8" id =" main_col" >
11+ <xsl : apply-templates select =" node()[not(self::head)]" />
12+ </div >
13+ <div class =" col-xs-12 col-sm-4" id =" aux_col" >
14+ <series-panel />
15+ </div >
16+ </div >
17+ </xsl : variable >
18+
19+ <section >
20+ <xsl : copy-of select =" @*" />
21+ <xsl : apply-templates select =" head/node()" />
22+ <xsl : apply-templates select =" exslt:node-set($enriched-section)/node()" />
23+ </section >
24+ </xsl : template >
25+
26+ </xsl : stylesheet >
You can’t perform that action at this time.
0 commit comments