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

(-)a/catalogue/cardview.pl (-1 / +2 lines)
Lines 32-38 $template->param(biblionumber => $biblionumber); Link Here
32
my $xmlrecord = GetXmlBiblio($biblionumber);
32
my $xmlrecord = GetXmlBiblio($biblionumber);
33
#my $xslfile = "/home/kohacat/etc/xslt/MARC21slim2HTML.xsl";
33
#my $xslfile = "/home/kohacat/etc/xslt/MARC21slim2HTML.xsl";
34
#my $xslfile = "/home/kohacat/etc/xslt/MARC21slim2English.xsl";
34
#my $xslfile = "/home/kohacat/etc/xslt/MARC21slim2English.xsl";
35
my $xslfile = C4::Context->config('intranetdir')."/koha-tmpl/intranet-tmpl/prog/en/xslt/compact.xsl";
35
my $filename=(C4::Context->preference('marcflavour') ne "MARC21"?C4::Context->preference('marcflavour')."_":"").'compact.xsl';
36
my $xslfile = C4::Context->config('intranetdir')."/koha-tmpl/intranet-tmpl/prog/en/xslt/$filename";
36
my $parser = XML::LibXML->new();
37
my $parser = XML::LibXML->new();
37
my $xslt = XML::LibXSLT->new();
38
my $xslt = XML::LibXSLT->new();
38
my $source = $parser->parse_string($xmlrecord);
39
my $source = $parser->parse_string($xmlrecord);
(-)a/catalogue/showmarc.pl (-1 / +2 lines)
Lines 69-75 if($importid) { Link Here
69
if($view eq 'card') {
69
if($view eq 'card') {
70
$xmlrecord = GetXmlBiblio($biblionumber) unless $xmlrecord;
70
$xmlrecord = GetXmlBiblio($biblionumber) unless $xmlrecord;
71
71
72
my $xslfile = C4::Context->config('intrahtdocs')."/prog/en/xslt/compact.xsl";
72
my $filename=(C4::Context->preference('marcflavour') ne "MARC21"?C4::Context->preference('marcflavour')."_":"").'compact.xsl';
73
my $xslfile = C4::Context->config('intrahtdocs')."/prog/en/xslt/$filename";
73
my $parser = XML::LibXML->new();
74
my $parser = XML::LibXML->new();
74
my $xslt = XML::LibXSLT->new();
75
my $xslt = XML::LibXSLT->new();
75
my $source = $parser->parse_string($xmlrecord);
76
my $source = $parser->parse_string($xmlrecord);
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARC_compact.xsl (-14 / +6 lines)
Lines 34-61 Link Here
34
      
34
      
35
      <xsl:template match="marc:datafield">
35
      <xsl:template match="marc:datafield">
36
        <xsl:if test="starts-with(@tag, '7')">
36
        <xsl:if test="starts-with(@tag, '7')">
37
          <p class="mainheading"><xsl:value-of select="."/></p>
37
          <p class="mainheading"> <xsl:apply-templates select="marc:subfield"/></p>
38
        </xsl:if>
38
        </xsl:if>
39
        <xsl:if test="@tag='200'">
39
        <xsl:if test="@tag='200'">
40
          <span class="title"><xsl:value-of select="."/></span>
40
          <span class="title"><xsl:value-of select="."/></span>
41
        </xsl:if>
41
        </xsl:if>
42
        <xsl:if test="@tag='200'">
43
          <span class="titlemain"><xsl:value-of select="."/></span><br/>
44
        </xsl:if>
45
        <xsl:if test="@tag='205'">
42
        <xsl:if test="@tag='205'">
46
          <xsl:value-of select="."/>
43
          <xsl:value-of select="."/>
47
        </xsl:if>
44
        </xsl:if>
48
        <xsl:if test="@tag='215'">
45
        <xsl:if test="@tag='215'">
49
          <p class="extent"><xsl:value-of select="."/></p>
46
          <p class="extent"><xsl:value-of select="."/></p>
50
        </xsl:if>
47
        </xsl:if>
51
        <xsl:if test="starts-with(@tag, '3')">
48
        <xsl:if test="substring(@tag,1,1)='6' and @tag!='680' and @tag!='676'">
52
          <p class="note"><xsl:value-of select="."/></p>
49
        <p> 
53
        </xsl:if>
50
          <span class='counter'><xsl:number count="marc:datafield[substring(@tag,1,1)='6']"/>.</span> <xsl:apply-templates select="marc:subfield"/>
54
        <xsl:if test="@tag='606'">
51
        </p>
55
          <span class='counter'><xsl:number count="marc:datafield[@tag='606']"/>.</span> <xsl:apply-templates select="marc:subfield"/>
56
        </xsl:if>
57
        <xsl:if test="@tag='610'">
58
          <span class="counter"><xsl:number format="i" count="marc:datafield[@tag='610']"/>.</span> <xsl:apply-templates select="marc:subfield"/>
59
        </xsl:if>
52
        </xsl:if>
60
        <xsl:if test="@tag='680'">
53
        <xsl:if test="@tag='680'">
61
          <xsl:variable name="LCCN.nospace" select="translate(marc:subfield[@code='a'], ' ', '')"/>
54
          <xsl:variable name="LCCN.nospace" select="translate(marc:subfield[@code='a'], ' ', '')"/>
Lines 78-84 Link Here
78
        </xsl:if>
71
        </xsl:if>
79
      </xsl:template>
72
      </xsl:template>
80
      <xsl:template match="marc:subfield">
73
      <xsl:template match="marc:subfield">
81
        <xsl:if test="@code!='2'">    
74
        <xsl:if test="@code!='0' and @code!='1' and @code!='2' and @code!='3' and @code!='5' and @code!='6' and @code!='7' and @code!='8' and @code!='9'">    
82
        <xsl:if test="@code!='a'">--</xsl:if>
75
        <xsl:if test="@code!='a'">--</xsl:if>
83
        <xsl:value-of select="."/>
76
        <xsl:value-of select="."/>
84
      </xsl:if>
77
      </xsl:if>
85
- 

Return to bug 5772