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

(-)a/C4/XSLT.pm (-2 / +18 lines)
Lines 85-92 sub transformMARCXML4XSLT { Link Here
85
                    $value = GetAuthorisedValueDesc( $tag, $letter, $value, '', $tagslib )
85
                    $value = GetAuthorisedValueDesc( $tag, $letter, $value, '', $tagslib )
86
                        if $av->{ $tag }->{ $letter };
86
                        if $av->{ $tag }->{ $letter };
87
                    push( @new_subfields, $letter, $value );
87
                    push( @new_subfields, $letter, $value );
88
                } 
88
                }
89
                $field ->replace_with( MARC::Field->new(
89
                $field->replace_with( MARC::Field->new(
90
                    $tag,
90
                    $tag,
91
                    $field->indicator(1),
91
                    $field->indicator(1),
92
                    $field->indicator(2),
92
                    $field->indicator(2),
Lines 212-218 sub XSLTParse4Display { Link Here
212
        next unless defined($sp);
212
        next unless defined($sp);
213
        $sysxml .= "<syspref name=\"$syspref\">$sp</syspref>\n";
213
        $sysxml .= "<syspref name=\"$syspref\">$sp</syspref>\n";
214
    }
214
    }
215
215
    $sysxml .= "</sysprefs>\n";
216
    $sysxml .= "</sysprefs>\n";
217
218
    ## Non-syspref variables that need to be computed
219
    $sysxml .= "<OtherVars>";
220
221
    # Fetch the authorised value description for 942$n ( supressed in opac ) for the value '1'
222
    # if 942$n is not mapped, the return value will be '1' which means even if the field is not
223
    # mapped in the framework, we will still get the correct value to compare against
224
    my $frameworkcode = GetFrameworkCode($biblionumber) || '';
225
    my $tagslib = &GetMarcStructure(1,$frameworkcode);
226
    my $value = GetAuthorisedValueDesc( '942', 'n', '1', '', $tagslib );
227
    $sysxml .= "<OtherVar name=\"Field942_1_True_Value\">$value</OtherVar>";
228
229
    $sysxml .= "</OtherVars>\n";
230
    ## End non-syspref variables that need to be computed
231
216
    $xmlrecord =~ s/\<\/record\>/$itemsxml$sysxml\<\/record\>/;
232
    $xmlrecord =~ s/\<\/record\>/$itemsxml$sysxml\<\/record\>/;
217
    if ($fixamps) { # We need to correct the HTML entities that Zebra outputs
233
    if ($fixamps) { # We need to correct the HTML entities that Zebra outputs
218
        $xmlrecord =~ s/\&amp;amp;/\&amp;/g;
234
        $xmlrecord =~ s/\&amp;amp;/\&amp;/g;
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-1 / +2 lines)
Lines 91-97 Link Here
91
        </xsl:variable>
91
        </xsl:variable>
92
92
93
        <!-- Indicate if record is suppressed in OPAC -->
93
        <!-- Indicate if record is suppressed in OPAC -->
94
        <xsl:if test="marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']">
94
        <xsl:variable name="Field942_1_True_Value" select="marc:OtherVars/marc:OtherVar[@name='Field942_1_True_Value']"/>
95
        <xsl:if test="marc:datafield[@tag=942][marc:subfield[@code='n'] = $Field942_1_True_Value]">
95
            <span class="results_summary suppressed_opac"><xsl:value-of select="concat('#',marc:datafield[@tag=999]/marc:subfield[@code='c'])"/> - Suppressed in OPAC</span>
96
            <span class="results_summary suppressed_opac"><xsl:value-of select="concat('#',marc:datafield[@tag=999]/marc:subfield[@code='c'])"/> - Suppressed in OPAC</span>
96
        </xsl:if>
97
        </xsl:if>
97
98
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-2 / +2 lines)
Lines 282-288 Link Here
282
        </xsl:variable>
282
        </xsl:variable>
283
283
284
        <!-- Indicate if record is suppressed in OPAC -->
284
        <!-- Indicate if record is suppressed in OPAC -->
285
        <xsl:if test="marc:datafield[@tag=942][marc:subfield[@code='n'] = '1']">
285
        <xsl:variable name="Field942_1_True_Value" select="marc:OtherVars/marc:OtherVar[@name='Field942_1_True_Value']"/>
286
        <xsl:if test="marc:datafield[@tag=942][marc:subfield[@code='n'] = $Field942_1_True_Value]">
286
            <span class="results_summary suppressed_opac"><xsl:value-of select="concat('#',marc:datafield[@tag=999]/marc:subfield[@code='c'])"/> - Suppressed in OPAC</span>
287
            <span class="results_summary suppressed_opac"><xsl:value-of select="concat('#',marc:datafield[@tag=999]/marc:subfield[@code='c'])"/> - Suppressed in OPAC</span>
287
        </xsl:if>
288
        </xsl:if>
288
289
289
- 

Return to bug 14377