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

(-)a/C4/XSLT.pm (-1 / +4 lines)
Lines 128-134 sub XSLTParse4Display { Link Here
128
    my $itemsxml  = buildKohaItemsNamespace($biblionumber);
128
    my $itemsxml  = buildKohaItemsNamespace($biblionumber);
129
    my $xmlrecord = $record->as_xml(C4::Context->preference('marcflavour'));
129
    my $xmlrecord = $record->as_xml(C4::Context->preference('marcflavour'));
130
    my $sysxml = "<sysprefs>\n";
130
    my $sysxml = "<sysprefs>\n";
131
    foreach my $syspref ( qw/OPACURLOpenInNewWindow DisplayOPACiconsXSLT URLLinkText viewISBD OPACBaseURL/ ) {
131
    foreach my $syspref ( qw/ hidelostitems OPACURLOpenInNewWindow
132
                              DisplayOPACiconsXSLT URLLinkText viewISBD
133
                              OPACBaseURL / )
134
    {
132
        my $sp = C4::Context->preference( $syspref );
135
        my $sp = C4::Context->preference( $syspref );
133
        next unless defined($sp);
136
        next unless defined($sp);
134
        $sysxml .= "<syspref name=\"$syspref\">$sp</syspref>\n";
137
        $sysxml .= "<syspref name=\"$syspref\">$sp</syspref>\n";
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl (-1 / +2 lines)
Lines 19-24 Link Here
19
        <!-- Option: Display Alternate Graphic Representation (MARC 880)  -->
19
        <!-- Option: Display Alternate Graphic Representation (MARC 880)  -->
20
        <xsl:variable name="display880" select="boolean(marc:datafield[@tag=880])"/>
20
        <xsl:variable name="display880" select="boolean(marc:datafield[@tag=880])"/>
21
21
22
    <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
22
    <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
23
    <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
23
    <xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
24
    <xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
24
    <xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
25
    <xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
Lines 1005-1011 Link Here
1005
                       <xsl:value-of select="count(key('item-by-status', 'Withdrawn'))"/>
1006
                       <xsl:value-of select="count(key('item-by-status', 'Withdrawn'))"/>
1006
                       <xsl:text>). </xsl:text>                   </span>
1007
                       <xsl:text>). </xsl:text>                   </span>
1007
				   </xsl:if>
1008
				   </xsl:if>
1008
                    <xsl:if test="count(key('item-by-status', 'Lost'))>0">
1009
                    <xsl:if test="$hidelostitems='0' and count(key('item-by-status', 'Lost'))>0">
1009
                   <span class="unavailable">
1010
                   <span class="unavailable">
1010
                       <xsl:text>Lost (</xsl:text>
1011
                       <xsl:text>Lost (</xsl:text>
1011
                       <xsl:value-of select="count(key('item-by-status', 'Lost'))"/>
1012
                       <xsl:value-of select="count(key('item-by-status', 'Lost'))"/>
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACResults.xsl (-2 / +3 lines)
Lines 26-31 Link Here
26
  <xsl:variable name="isbn"
26
  <xsl:variable name="isbn"
27
   select="marc:datafield[@tag=010]/marc:subfield[@code='a']"/>
27
   select="marc:datafield[@tag=010]/marc:subfield[@code='a']"/>
28
28
29
  <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
30
29
  <xsl:if test="marc:datafield[@tag=200]">
31
  <xsl:if test="marc:datafield[@tag=200]">
30
    <xsl:for-each select="marc:datafield[@tag=200]">
32
    <xsl:for-each select="marc:datafield[@tag=200]">
31
      <xsl:variable name="title" select="marc:subfield[@code='a']"/>
33
      <xsl:variable name="title" select="marc:subfield[@code='a']"/>
Lines 163-169 Link Here
163
        <xsl:text>). </xsl:text>
165
        <xsl:text>). </xsl:text>
164
      </span>
166
      </span>
165
    </xsl:if>
167
    </xsl:if>
166
    <xsl:if test="count(key('item-by-status', 'Lost'))>0">
168
    <xsl:if test="$hidelostitems='0' and count(key('item-by-status', 'Lost'))>0">
167
      <span class="unavailable">
169
      <span class="unavailable">
168
        <xsl:text>Lost (</xsl:text>
170
        <xsl:text>Lost (</xsl:text>
169
        <xsl:value-of select="count(key('item-by-status', 'Lost'))"/>
171
        <xsl:value-of select="count(key('item-by-status', 'Lost'))"/>
170
- 

Return to bug 4072