View | Details | Raw Unified | Return to bug 39860
Collapse All | Expand All

(-)a/C4/XSLT.pm (-1 / +10 lines)
Lines 32-37 use Koha::RecordProcessor; Link Here
32
use Koha::XSLT::Base;
32
use Koha::XSLT::Base;
33
use Koha::Libraries;
33
use Koha::Libraries;
34
use Koha::Recalls;
34
use Koha::Recalls;
35
use Koha::TemplateUtils qw( process_tt );
35
36
36
my $engine;    #XSLT Handler object
37
my $engine;    #XSLT Handler object
37
38
Lines 238-243 sub XSLTParse4Display { Link Here
238
            $variables->{OpenURLResolverURL} = $biblio->get_openurl;
239
            $variables->{OpenURLResolverURL} = $biblio->get_openurl;
239
        }
240
        }
240
    }
241
    }
242
    my $extracontentxml = '';
243
244
    # Check if we should add extra content based on system preference
245
    if ( C4::Context->preference('ExtraContentForXSLTDisplay') ) {
246
        my $extracontentvalue      = C4::Context->preference('ExtraContentForXSLTDisplay');
247
        my $extracontentproccessed = process_tt( $extracontentvalue, { record => $record } );
248
        $extracontentxml = "<extracontent><content>" . $extracontentproccessed . "</content></extracontent>";
249
    }
241
250
242
    # embed variables
251
    # embed variables
243
    my $varxml = "<variables>\n";
252
    my $varxml = "<variables>\n";
Lines 248-254 sub XSLTParse4Display { Link Here
248
    $varxml .= "</variables>\n";
257
    $varxml .= "</variables>\n";
249
258
250
    my $sysxml = get_xslt_sysprefs();
259
    my $sysxml = get_xslt_sysprefs();
251
    $xmlrecord =~ s/\<\/record\>/$itemsxml$sysxml$varxml\<\/record\>/;
260
    $xmlrecord =~ s/\<\/record\>/$itemsxml$extracontentxml$sysxml$varxml\<\/record\>/;
252
    if ($fixamps) {    # We need to correct the ampersand entities that Zebra outputs
261
    if ($fixamps) {    # We need to correct the ampersand entities that Zebra outputs
253
        $xmlrecord =~ s/\&amp;amp;/\&amp;/g;
262
        $xmlrecord =~ s/\&amp;amp;/\&amp;/g;
254
        $xmlrecord =~ s/\&amp\;lt\;/\&lt\;/g;
263
        $xmlrecord =~ s/\&amp\;lt\;/\&lt\;/g;
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (+4 lines)
Lines 1568-1573 Link Here
1568
        </xsl:for-each>
1568
        </xsl:for-each>
1569
        </span>
1569
        </span>
1570
        </xsl:if>
1570
        </xsl:if>
1571
        <xsl:if test="marc:extracontent and normalize-space(string(marc:extracontent/marc:content)) != ''">
1572
            <xsl:copy-of select="marc:extracontent/marc:content/node()"/>
1573
        </xsl:if>
1574
1571
1575
1572
        <!-- Indicate if record is suppressed in OPAC -->
1576
        <!-- Indicate if record is suppressed in OPAC -->
1573
        <xsl:choose>
1577
        <xsl:choose>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-1 / +3 lines)
Lines 1021-1026 Link Here
1021
        </span>
1021
        </span>
1022
        </xsl:if>
1022
        </xsl:if>
1023
    </xsl:if>
1023
    </xsl:if>
1024
    <xsl:if test="marc:extracontent and normalize-space(string(marc:extracontent/marc:content)) != ''">
1025
        <xsl:copy-of select="marc:extracontent/marc:content/node()"/>
1026
    </xsl:if>
1024
1027
1025
    <!-- Content Warning -->
1028
    <!-- Content Warning -->
1026
    <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
1029
    <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
1027
- 

Return to bug 39860