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

(-)a/C4/XSLT.pm (-1 / +1 lines)
Lines 190-196 sub XSLTParse4Display { Link Here
190
                              UseControlNumber IntranetBiblioDefaultView BiblioDefaultView
190
                              UseControlNumber IntranetBiblioDefaultView BiblioDefaultView
191
                              singleBranchMode OPACItemLocation
191
                              singleBranchMode OPACItemLocation
192
                              AlternateHoldingsField AlternateHoldingsSeparator
192
                              AlternateHoldingsField AlternateHoldingsSeparator
193
                              TrackClicks / )
193
                              TrackClicks BiblioItemtypeImage/ )
194
    {
194
    {
195
        my $sp = C4::Context->preference( $syspref );
195
        my $sp = C4::Context->preference( $syspref );
196
        next unless defined($sp);
196
        next unless defined($sp);
(-)a/catalogue/detail.pl (-1 / +1 lines)
Lines 384-390 if (C4::Context->preference('OPACBaseURL')){ Link Here
384
}
384
}
385
385
386
# Displaying tags
386
# Displaying tags
387
388
my $tag_quantity;
387
my $tag_quantity;
389
if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->preference('TagsShowOnDetail')) {
388
if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->preference('TagsShowOnDetail')) {
390
    $template->param(
389
    $template->param(
Lines 397-401 if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->pref Link Here
397
396
398
my ( $holdcount, $holds ) = C4::Reserves::GetReservesFromBiblionumber($biblionumber,1);
397
my ( $holdcount, $holds ) = C4::Reserves::GetReservesFromBiblionumber($biblionumber,1);
399
$template->param( holdcount => $holdcount, holds => $holds );
398
$template->param( holdcount => $holdcount, holds => $holds );
399
$template->{VARS}->{'BiblioItemtypeImage'} = C4::Context->preference('BiblioItemtypeImage');
400
400
401
output_html_with_http_headers $query, $cookie, $template->output;
401
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 418-420 INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) V Link Here
418
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('UseQueryParser', '0', 'If enabled, try to use QueryParser for queries.', NULL, 'YesNo');
418
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('UseQueryParser', '0', 'If enabled, try to use QueryParser for queries.', NULL, 'YesNo');
419
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('FinesIncludeGracePeriod','1','If enabled, fines calculations will include the grace period.',NULL,'YesNo');
419
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('FinesIncludeGracePeriod','1','If enabled, fines calculations will include the grace period.',NULL,'YesNo');
420
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('UNIMARCAuthorsFacetsSeparator',', ', 'UNIMARC authors facets separator', NULL, 'short');
420
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('UNIMARCAuthorsFacetsSeparator',', ', 'UNIMARC authors facets separator', NULL, 'short');
421
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('BiblioItemtypeImage','Control','Control which itemtype info displays for biblio level itemtypes','Control|Koha','Choice');
(-)a/installer/data/mysql/updatedatabase.pl (+10 lines)
Lines 6557-6562 if ( CheckVersion($DBversion) ) { Link Here
6557
    SetVersion($DBversion);
6557
    SetVersion($DBversion);
6558
}
6558
}
6559
6559
6560
$DBversion = "XXX";
6561
if ( CheckVersion($DBversion) ) {
6562
    $dbh->do(
6563
"INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('BiblioItemtypeImage', 'Control','Control what biblio level itemtype image displays','Control|Koha','Choice')"
6564
    );
6565
    print
6566
"Upgrade to $DBversion done (Add new BiblioItemtypeImage to system preferences)";
6567
    SetVersion($DBversion);
6568
}
6569
6560
=head1 FUNCTIONS
6570
=head1 FUNCTIONS
6561
6571
6562
=head2 TableExists($table)
6572
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (+6 lines)
Lines 187-189 Searching: Link Here
187
            - Use the following text as separator for UNIMARC authors facets
187
            - Use the following text as separator for UNIMARC authors facets
188
            - pref: UNIMARCAuthorsFacetsSeparator
188
            - pref: UNIMARCAuthorsFacetsSeparator
189
              class: short
189
              class: short
190
        -
191
            - "Display "
192
            - pref: BiblioItemtypeImage
193
              choices:
194
                  Control: "Itemtype information from the MARC control fields"
195
                  Koha: "Itemtype information from the Koha biblio level itemtype"
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-3 / +25 lines)
Lines 192-201 function verify_images() { Link Here
192
                    </span>
192
                    </span>
193
        [% END %]
193
        [% END %]
194
        <span id="catalogue_detail_marc_preview" class="results_summary"><span class="label">MARC Preview:</span> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Show</a></span>
194
        <span id="catalogue_detail_marc_preview" class="results_summary"><span class="label">MARC Preview:</span> <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Show</a></span>
195
	[% IF !item_level_itypes ||  BiblioItemtypeImage == 'Koha' %]
196
           <span class="results_summary itemtype">Itemtype:
197
          [% IF ( description ) %]
198
            [% description %]
199
          [% ELSE %]
200
            [% itemtype %]
201
          [% END %]
202
          </span>
203
        [% END %] 
195
        [% IF ( holdcount ) %]<span class="results_summary"><span class="label">Holds:</span> <span class="holdcount"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">[% holdcount %]</a></span></span>[% ELSE %][% END %]
204
        [% IF ( holdcount ) %]<span class="results_summary"><span class="label">Holds:</span> <span class="holdcount"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">[% holdcount %]</a></span></span>[% ELSE %][% END %]
196
205
197
        [% IF ( AmazonCoverImages ) %]</div><div class="yui-u" id="bookcoverimg">
206
        [% IF ( AmazonCoverImages ) %]</div><div class="yui-u" id="bookcoverimg">
198
        <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" /></a>[% END %]
207
        <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="" /></a>
208
	[% END %]
209
210
199
    [% ELSE %]
211
    [% ELSE %]
200
212
201
    <h3>[% title |html %]</h3>
213
    <h3>[% title |html %]</h3>
Lines 328-336 function verify_images() { Link Here
328
                    [% END %]
340
                    [% END %]
329
                    </ul></li>
341
                    </ul></li>
330
        [% END %]
342
        [% END %]
331
            [% IF ( holdcount ) %]<li><strong>Holds:</strong> <span class="holdcount"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">[% holdcount %]</a></span></li>[% ELSE %][% END %]
343
	[% IF ( holdcount ) %]<li><strong>Holds:</strong> <span class="holdcount"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]">[% holdcount %]</a></span></li>[% ELSE %][% END %]
344
	[% IF !item_level_itypes ||  BiblioItemtypeImage == 'Koha' %]
345
          <li><strong>Itemtype: </strong>
346
          [% IF ( description ) %]
347
            [% description %]
348
          [% ELSE %]
349
            [% itemtype %]
350
          [% END %]
351
          </li>
352
        [% END %] 
332
        </ul>
353
        </ul>
333
		[% END %]
354
   [% END %]
355
334
356
335
</div>
357
</div>
336
</div>
358
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-2 / +3 lines)
Lines 25-30 Link Here
25
        <xsl:variable name="UseAuthoritiesForTracings" select="marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/>
25
        <xsl:variable name="UseAuthoritiesForTracings" select="marc:sysprefs/marc:syspref[@name='UseAuthoritiesForTracings']"/>
26
        <xsl:variable name="TraceSubjectSubdivisions" select="marc:sysprefs/marc:syspref[@name='TraceSubjectSubdivisions']"/>
26
        <xsl:variable name="TraceSubjectSubdivisions" select="marc:sysprefs/marc:syspref[@name='TraceSubjectSubdivisions']"/>
27
        <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
27
        <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
28
	 <xsl:variable name="BiblioItemtypeImage" select="marc:sysprefs/marc:syspref[@name='BiblioItemtypeImage']"/>
28
        <xsl:variable name="TracingQuotesLeft">
29
        <xsl:variable name="TracingQuotesLeft">
29
           <xsl:choose>
30
           <xsl:choose>
30
             <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICU']='1'">{</xsl:when>
31
             <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICU']='1'">{</xsl:when>
Lines 141-147 Link Here
141
        <!-- Author Statement -->
142
        <!-- Author Statement -->
142
        <xsl:call-template name="showAuthor"><xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111]"/><xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/></xsl:call-template>
143
        <xsl:call-template name="showAuthor"><xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111]"/><xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/></xsl:call-template>
143
        <xsl:call-template name="showAuthor"><xsl:with-param name="authorfield" select="marc:datafield[@tag=700 or @tag=710 or @tag=711]"/><xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/></xsl:call-template>
144
        <xsl:call-template name="showAuthor"><xsl:with-param name="authorfield" select="marc:datafield[@tag=700 or @tag=710 or @tag=711]"/><xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/></xsl:call-template>
144
145
   <xsl:if test="$BiblioItemtypeImage='Control'">
145
   <xsl:if test="$materialTypeCode!=''">
146
   <xsl:if test="$materialTypeCode!=''">
146
        <span class="results_summary type"><span class="label">Type: </span>
147
        <span class="results_summary type"><span class="label">Type: </span>
147
        <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute><xsl:attribute name="alt"></xsl:attribute></xsl:element>
148
        <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute><xsl:attribute name="alt"></xsl:attribute></xsl:element>
Lines 149-155 Link Here
149
        <xsl:value-of select="$materialTypeLabel"/>
150
        <xsl:value-of select="$materialTypeLabel"/>
150
        </span>
151
        </span>
151
   </xsl:if>
152
   </xsl:if>
152
153
   </xsl:if>
153
        <!--Series: Alternate Graphic Representation (MARC 880) -->
154
        <!--Series: Alternate Graphic Representation (MARC 880) -->
154
        <xsl:if test="$display880">
155
        <xsl:if test="$display880">
155
            <xsl:call-template name="m880Select">
156
            <xsl:call-template name="m880Select">
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt (-4 / +14 lines)
Lines 527-541 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
527
    <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
527
    <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
528
    [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %] 
528
    [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %] 
529
529
530
    <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
530
    <span class="results_summary">
531
        [
531
     [% IF !item_level_itypes ||  BiblioItemtypeImage == 'Koha' %]
532
        [% IF ( description ) %]
532
        [% IF ( description ) %]
533
            [% description %]
533
            [% description %]
534
        [% ELSE %]
534
        [% ELSE %]
535
            [% itemtype %]
535
            [% itemtype %]
536
        [% END %]
536
        [% END %]
537
        ] [% END %]
537
     [% END %]
538
        [% IF ( unititle ) %], [% unititle %][% END %]
538
     [% IF ( unititle ) %], [% unititle %][% END %]
539
    </span>
539
    </span>
540
540
541
    [% IF ( MARCAUTHORS ) %]
541
    [% IF ( MARCAUTHORS ) %]
Lines 746-751 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
746
        [% END %]
746
        [% END %]
747
        [% END %]
747
        [% END %]
748
748
749
        [% IF !item_level_itypes ||  BiblioItemtypeImage == 'Koha' %]
750
          <div class="results_summary">Itemtype:
751
          [% IF ( description ) %]
752
            [% description %]
753
          [% ELSE %]
754
            [% itemtype %]
755
	  [% END %]
756
	  </div>
757
	[% END %]
758
749
<!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
759
<!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
750
[% IF ( LibraryThingForLibrariesID ) %]
760
[% IF ( LibraryThingForLibrariesID ) %]
751
	[% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
761
	[% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt (-1 / +1 lines)
Lines 468-474 $(document).ready(function(){ Link Here
468
[% IF ( RequestOnOpac ) %][% UNLESS ( SEARCH_RESULT.norequests ) %][% IF ( opacuserlogin ) %]<input type="checkbox" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" /> <label for="bib[% SEARCH_RESULT.biblionumber %]"></label>[% END %][% END %][% END %][% END %][% END %]</td>
468
[% IF ( RequestOnOpac ) %][% UNLESS ( SEARCH_RESULT.norequests ) %][% IF ( opacuserlogin ) %]<input type="checkbox" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" /> <label for="bib[% SEARCH_RESULT.biblionumber %]"></label>[% END %][% END %][% END %][% END %][% END %]</td>
469
                <td class="select selectcol">[% UNLESS suppress_result_number %][% SEARCH_RESULT.result_number %].[% END %]</td>
469
                <td class="select selectcol">[% UNLESS suppress_result_number %][% SEARCH_RESULT.result_number %].[% END %]</td>
470
470
471
                [% UNLESS ( item_level_itypes ) %]
471
                [% IF !item_level_itypes ||  BiblioItemtypeImage == 'Koha' %]
472
                [% UNLESS ( noItemTypeImages ) %]
472
                [% UNLESS ( noItemTypeImages ) %]
473
473
474
                <td class="itypecol">
474
                <td class="itypecol">
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl (+3 lines)
Lines 28-33 Link Here
28
    <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='OPACDisplay856uAsImage']"/>
28
    <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='OPACDisplay856uAsImage']"/>
29
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
29
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
30
    <xsl:variable name="biblionumber" select="marc:datafield[@tag=999]/marc:subfield[@code='c']"/>
30
    <xsl:variable name="biblionumber" select="marc:datafield[@tag=999]/marc:subfield[@code='c']"/>
31
    <xsl:variable name="BiblioItemtypeImage" select="marc:sysprefs/marc:syspref[@name='BiblioItemtypeImage']"/>
31
    <xsl:variable name="TracingQuotesLeft">
32
    <xsl:variable name="TracingQuotesLeft">
32
      <xsl:choose>
33
      <xsl:choose>
33
        <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICU']='1'">{</xsl:when>
34
        <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICU']='1'">{</xsl:when>
Lines 151-162 Link Here
151
        </xsl:choose>
152
        </xsl:choose>
152
153
153
   <xsl:if test="$DisplayOPACiconsXSLT!='0'">
154
   <xsl:if test="$DisplayOPACiconsXSLT!='0'">
155
        <xsl:if test="$BiblioItemtypeImage='Control'">
154
        <xsl:if test="$materialTypeCode!=''">
156
        <xsl:if test="$materialTypeCode!=''">
155
        <span class="results_summary type"><span class="label">Type: </span>
157
        <span class="results_summary type"><span class="label">Type: </span>
156
        <xsl:element name="img"><xsl:attribute name="src">/opac-tmpl/lib/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute><xsl:attribute name="alt">materialTypeLabel</xsl:attribute><xsl:attribute name="class">materialtype</xsl:attribute></xsl:element>
158
        <xsl:element name="img"><xsl:attribute name="src">/opac-tmpl/lib/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute><xsl:attribute name="alt">materialTypeLabel</xsl:attribute><xsl:attribute name="class">materialtype</xsl:attribute></xsl:element>
157
        <xsl:value-of select="$materialTypeLabel"/>
159
        <xsl:value-of select="$materialTypeLabel"/>
158
        </span>
160
        </span>
159
        </xsl:if>
161
        </xsl:if>
162
	</xsl:if>
160
   </xsl:if>
163
   </xsl:if>
161
164
162
        <!--Series: Alternate Graphic Representation (MARC 880) -->
165
        <!--Series: Alternate Graphic Representation (MARC 880) -->
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl (-24 / +29 lines)
Lines 2-35 Link Here
2
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
2
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
3
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
3
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
4
<xsl:stylesheet version="1.0"
4
<xsl:stylesheet version="1.0"
5
  xmlns:marc="http://www.loc.gov/MARC21/slim"
5
xmlns:marc="http://www.loc.gov/MARC21/slim"
6
  xmlns:items="http://www.koha-community.org/items"
6
xmlns:items="http://www.koha-community.org/items"
7
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8
  exclude-result-prefixes="marc items">
8
exclude-result-prefixes="marc items">
9
    <xsl:import href="MARC21slimUtils.xsl"/>
9
<xsl:import href="MARC21slimUtils.xsl"/>
10
    <xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
10
<xsl:output method = "html" indent="yes" omit-xml-declaration = "yes" encoding="UTF-8"/>
11
    <xsl:key name="item-by-status" match="items:item" use="items:status"/>
11
<xsl:key name="item-by-status" match="items:item" use="items:status"/>
12
    <xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/>
12
<xsl:key name="item-by-status-and-branch" match="items:item" use="concat(items:status, ' ', items:homebranch)"/>
13
13
14
    <xsl:template match="/">
14
<xsl:template match="/">
15
            <xsl:apply-templates/>
15
        <xsl:apply-templates/>
16
    </xsl:template>
16
</xsl:template>
17
    <xsl:template match="marc:record">
17
<xsl:template match="marc:record">
18
18
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="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
23
    <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
23
<xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
24
    <xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
24
<xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
25
    <xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
25
<xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
26
    <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='OPACDisplay856uAsImage']"/>
26
<xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='OPACDisplay856uAsImage']"/>
27
    <xsl:variable name="AlternateHoldingsField" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 1, 3)"/>
27
<xsl:variable name="AlternateHoldingsField" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 1, 3)"/>
28
    <xsl:variable name="AlternateHoldingsSubfields" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 4)"/>
28
<xsl:variable name="AlternateHoldingsSubfields" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 4)"/>
29
    <xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/>
29
<xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/>
30
    <xsl:variable name="OPACItemLocation" select="marc:sysprefs/marc:syspref[@name='OPACItemLocation']"/>
30
<xsl:variable name="OPACItemLocation" select="marc:sysprefs/marc:syspref[@name='OPACItemLocation']"/>
31
    <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
31
<xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
32
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
32
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
33
    <xsl:variable name="BiblioItemtypeImage" select="marc:sysprefs/marc:syspref[@name='BiblioItemtypeImage']"/>
33
        <xsl:variable name="leader" select="marc:leader"/>
34
        <xsl:variable name="leader" select="marc:leader"/>
34
        <xsl:variable name="leader6" select="substring($leader,7,1)"/>
35
        <xsl:variable name="leader6" select="substring($leader,7,1)"/>
35
        <xsl:variable name="leader7" select="substring($leader,8,1)"/>
36
        <xsl:variable name="leader7" select="substring($leader,8,1)"/>
Lines 532-537 Link Here
532
533
533
<xsl:if test="$DisplayOPACiconsXSLT!='0'">
534
<xsl:if test="$DisplayOPACiconsXSLT!='0'">
534
    <span class="results_summary">
535
    <span class="results_summary">
536
537
    <xsl:if test="$BiblioItemtypeImage='Control'">
538
535
    <xsl:if test="$typeOf008!=''">
539
    <xsl:if test="$typeOf008!=''">
536
        <span class="label">Type: </span>
540
        <span class="label">Type: </span>
537
            <xsl:choose>
541
            <xsl:choose>
Lines 872-877 Link Here
872
            </xsl:when>
876
            </xsl:when>
873
            </xsl:choose>
877
            </xsl:choose>
874
    </xsl:if>
878
    </xsl:if>
879
    </xsl:if>
875
<xsl:text> </xsl:text> <!-- added blank space to fix font display problem, see Bug 3671 -->
880
<xsl:text> </xsl:text> <!-- added blank space to fix font display problem, see Bug 3671 -->
876
	</span>
881
	</span>
877
</xsl:if>
882
</xsl:if>
(-)a/opac/opac-detail.pl (+1 lines)
Lines 992-997 my $defaulttab = Link Here
992
    @serialcollections > 0 
992
    @serialcollections > 0 
993
        ? 'serialcollection' : 'subscriptions';
993
        ? 'serialcollection' : 'subscriptions';
994
$template->param('defaulttab' => $defaulttab);
994
$template->param('defaulttab' => $defaulttab);
995
$template->{VARS}->{'BiblioItemtypeImage'} = C4::Context->preference('BiblioItemtypeImage');
995
996
996
if (C4::Context->preference('OPACLocalCoverImages') == 1) {
997
if (C4::Context->preference('OPACLocalCoverImages') == 1) {
997
    my @images = ListImagesForBiblio($biblionumber);
998
    my @images = ListImagesForBiblio($biblionumber);
(-)a/opac/opac-search.pl (-1 / +2 lines)
Lines 3-8 Link Here
3
# Copyright 2008 Garry Collum and the Koha Development team
3
# Copyright 2008 Garry Collum and the Koha Development team
4
# Copyright 2010 BibLibre
4
# Copyright 2010 BibLibre
5
# Copyright 2011 KohaAloha, NZ
5
# Copyright 2011 KohaAloha, NZ
6
# Copyright 2012 Catalyst IT, NZ
6
#
7
#
7
# This file is part of Koha.
8
# This file is part of Koha.
8
#
9
#
Lines 844-849 $template->{VARS}->{DidYouMean} = Link Here
844
$template->{VARS}->{IDreamBooksReviews} = C4::Context->preference('IDreamBooksReviews');
845
$template->{VARS}->{IDreamBooksReviews} = C4::Context->preference('IDreamBooksReviews');
845
$template->{VARS}->{IDreamBooksReadometer} = C4::Context->preference('IDreamBooksReadometer');
846
$template->{VARS}->{IDreamBooksReadometer} = C4::Context->preference('IDreamBooksReadometer');
846
$template->{VARS}->{IDreamBooksResults} = C4::Context->preference('IDreamBooksResults');
847
$template->{VARS}->{IDreamBooksResults} = C4::Context->preference('IDreamBooksResults');
848
$template->{VARS}->{'BiblioItemtypeImage'} = C4::Context->preference('BiblioItemtypeImage');
847
849
848
    $template->param( borrowernumber    => $borrowernumber);
850
    $template->param( borrowernumber    => $borrowernumber);
849
output_with_http_headers $cgi, $cookie, $template->output, $content_type;
851
output_with_http_headers $cgi, $cookie, $template->output, $content_type;
850
- 

Return to bug 8732