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

(-)a/C4/XSLT.pm (-1 / +1 lines)
Lines 173-179 sub get_xslt_sysprefs { Link Here
173
                              TrackClicks opacthemes IdRef OpacSuppression
173
                              TrackClicks opacthemes IdRef OpacSuppression
174
                              OPACResultsLibrary OPACShowOpenURL
174
                              OPACResultsLibrary OPACShowOpenURL
175
                              OpenURLResolverURL OpenURLImageLocation
175
                              OpenURLResolverURL OpenURLImageLocation
176
                              OpenURLText / )
176
                              OpenURLText BiblioItemtypeImage / )
177
    {
177
    {
178
        my $sp = C4::Context->preference( $syspref );
178
        my $sp = C4::Context->preference( $syspref );
179
        next unless defined($sp);
179
        next unless defined($sp);
(-)a/catalogue/detail.pl (-1 / +1 lines)
Lines 478-484 if ( (C4::Context->preference("HTML5MediaEnabled") eq 'both') or (C4::Context->p Link Here
478
}
478
}
479
479
480
# Displaying tags
480
# Displaying tags
481
482
my $tag_quantity;
481
my $tag_quantity;
483
if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->preference('TagsShowOnDetail')) {
482
if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->preference('TagsShowOnDetail')) {
484
    $template->param(
483
    $template->param(
Lines 542-546 $template->param (countdeletedorders => $count_deletedorders_using_biblio); Link Here
542
541
543
$template->param (basketsorders => \@baskets_orders);
542
$template->param (basketsorders => \@baskets_orders);
544
$template->param (basketsdeletedorders => \@baskets_deletedorders);
543
$template->param (basketsdeletedorders => \@baskets_deletedorders);
544
$template->{VARS}->{'BiblioItemtypeImage'} = C4::Context->preference('BiblioItemtypeImage');
545
545
546
output_html_with_http_headers $query, $cookie, $template->output;
546
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/installer/data/mysql/atomicupdate/bug_8732_add_BiblioItemtypeImage_system_preference.perl (+7 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do( "INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('BiblioItemtypeImage', 'Control','Control what biblio level itemtype image displays','Control|Koha','Choice')" );
4
5
    SetVersion( $DBversion );
6
    print "Upgrade to $DBversion done (Bug 8732: Add new BiblioItemtypeImage to system preferences)\n";
7
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 90-95 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
90
('BatchCheckoutsValidCategories','',NULL,'Patron categories allowed to checkout in a batch','Free'),
90
('BatchCheckoutsValidCategories','',NULL,'Patron categories allowed to checkout in a batch','Free'),
91
('BiblioAddsAuthorities','0',NULL,'If ON, adding a new biblio will check for an existing authority record and create one on the fly if one doesn\'t exist','YesNo'),
91
('BiblioAddsAuthorities','0',NULL,'If ON, adding a new biblio will check for an existing authority record and create one on the fly if one doesn\'t exist','YesNo'),
92
('BiblioDefaultView','normal','normal|marc|isbd','Choose the default detail view in the catalog; choose between normal, marc or isbd','Choice'),
92
('BiblioDefaultView','normal','normal|marc|isbd','Choose the default detail view in the catalog; choose between normal, marc or isbd','Choice'),
93
('BiblioItemtypeImage','Control','Control which itemtype info displays for biblio level itemtypes','Control|Koha','Choice'),
93
('BibtexExportAdditionalFields',  '', NULL ,  'Define additional BibTex tags to export from MARC records in YAML format as an associative array with either a marc tag/subfield combination as the value, or a list of tag/subfield combinations.',  'textarea'),
94
('BibtexExportAdditionalFields',  '', NULL ,  'Define additional BibTex tags to export from MARC records in YAML format as an associative array with either a marc tag/subfield combination as the value, or a list of tag/subfield combinations.',  'textarea'),
94
('BlockExpiredPatronOpacActions','1',NULL,'Set whether an expired patron can perform opac actions such as placing holds or renew books, can be overridden on a per patron-type basis','YesNo'),
95
('BlockExpiredPatronOpacActions','1',NULL,'Set whether an expired patron can perform opac actions such as placing holds or renew books, can be overridden on a per patron-type basis','YesNo'),
95
('BlockReturnOfLostItems','0','0','If enabled, items that are marked as lost cannot be returned.','YesNo'),
96
('BlockReturnOfLostItems','0','0','If enabled, items that are marked as lost cannot be returned.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (+6 lines)
Lines 253-255 Searching: Link Here
253
            - LIBRIS base URL
253
            - LIBRIS base URL
254
            - pref: LibrisURL
254
            - pref: LibrisURL
255
            - "Please only change this if you are sure it needs changing."
255
            - "Please only change this if you are sure it needs changing."
256
        -
257
            - "Display "
258
            - pref: BiblioItemtypeImage
259
              choices:
260
                  Control: "Itemtype information from the MARC control fields"
261
                  Koha: "Itemtype information from the Koha biblio level itemtype"
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (+12 lines)
Lines 98-103 Link Here
98
                    </span>
98
                    </span>
99
        [% END %]
99
        [% END %]
100
        <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 | uri %]&amp;viewas=html" title="MARC" class="previewMARC">Show</a></span>
100
        <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 | uri %]&amp;viewas=html" title="MARC" class="previewMARC">Show</a></span>
101
        [% IF !item_level_itypes ||  BiblioItemtypeImage == 'Koha' %]
102
           <span class="results_summary itemtype"><span class="label">Itemtype:</span>
103
          [% IF ( imageurl ) %]
104
              <img src="[% imageurl | html %]" alt="" />
105
          [% END %]
106
          [% IF ( description ) %]
107
            [% description %]
108
          [% ELSE %]
109
            [% itemtype %]
110
          [% END %]
111
          </span>
112
        [% END %]
101
113
102
        [% IF ( holdcount ) %]
114
        [% IF ( holdcount ) %]
103
            <span class="results_summary">
115
            <span class="results_summary">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-1 / +1 lines)
Lines 403-409 Link Here
403
                                            </td>
403
                                            </td>
404
404
405
                                            <td>
405
                                            <td>
406
                                                [% UNLESS ( item_level_itypes ) %]
406
                                                [% IF ( !item_level_itypes ) || Koha.Preference('BiblioItemtypeImage') == 'Koha' %]
407
                                                    <div class="result-biblio-itemtype">
407
                                                    <div class="result-biblio-itemtype">
408
                                                        [% IF !noItemTypeImages && SEARCH_RESULT.imageurl %]
408
                                                        [% IF !noItemTypeImages && SEARCH_RESULT.imageurl %]
409
                                                            <img src="[% SEARCH_RESULT.imageurl | html %]" alt="[%  SEARCH_RESULT.description | html %]" />
409
                                                            <img src="[% SEARCH_RESULT.imageurl | html %]" alt="[%  SEARCH_RESULT.description | html %]" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-2 / +5 lines)
Lines 29-34 Link Here
29
        <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
29
        <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
30
        <xsl:variable name="DisplayIconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/>
30
        <xsl:variable name="DisplayIconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/>
31
        <xsl:variable name="OpacSuppression" select="marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
31
        <xsl:variable name="OpacSuppression" select="marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
32
	    <xsl:variable name="BiblioItemtypeImage" select="marc:sysprefs/marc:syspref[@name='BiblioItemtypeImage']"/>
32
        <xsl:variable name="TracingQuotesLeft">
33
        <xsl:variable name="TracingQuotesLeft">
33
           <xsl:choose>
34
           <xsl:choose>
34
             <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICU']='1'">{</xsl:when>
35
             <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICU']='1'">{</xsl:when>
Lines 166-181 Link Here
166
            <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
167
            <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
167
        </xsl:call-template>
168
        </xsl:call-template>
168
169
169
    <xsl:if test="$DisplayIconsXSLT!='0' and $materialTypeCode!=''">
170
        <xsl:if test="$BiblioItemtypeImage='Control'">
171
        <xsl:if test="$DisplayIconsXSLT!='0' and $materialTypeCode!=''">
170
        <span class="results_summary type"><span class="label">Material type: </span>
172
        <span class="results_summary type"><span class="label">Material type: </span>
171
    <xsl:element name="img"><xsl:attribute name="class">materialtype mt_icon_<xsl:value-of select="$materialTypeCode"/></xsl:attribute><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>
173
    <xsl:element name="img"><xsl:attribute name="class">materialtype mt_icon_<xsl:value-of select="$materialTypeCode"/></xsl:attribute><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>
172
        <xsl:text> </xsl:text>
174
        <xsl:text> </xsl:text>
173
        <xsl:value-of select="$materialTypeLabel"/>
175
        <xsl:value-of select="$materialTypeLabel"/>
174
        </span>
176
        </span>
175
    </xsl:if>
176
177
177
    <xsl:call-template name="show-lang-041"/>
178
    <xsl:call-template name="show-lang-041"/>
178
179
180
   </xsl:if>
181
   </xsl:if>
179
        <!--Series: Alternate Graphic Representation (MARC 880) -->
182
        <!--Series: Alternate Graphic Representation (MARC 880) -->
180
        <xsl:if test="$display880">
183
        <xsl:if test="$display880">
181
            <xsl:call-template name="m880Select">
184
            <xsl:call-template name="m880Select">
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-2 / +5 lines)
Lines 30-35 Link Here
30
        <xsl:variable name="DisplayIconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/>
30
        <xsl:variable name="DisplayIconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/>
31
        <xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/>
31
        <xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/>
32
        <xsl:variable name="OpacSuppression" select="marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
32
        <xsl:variable name="OpacSuppression" select="marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
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 486-491 Link Here
486
487
487
<xsl:if test="$DisplayIconsXSLT!='0'">
488
<xsl:if test="$DisplayIconsXSLT!='0'">
488
    <span class="results_summary">
489
    <span class="results_summary">
490
    <xsl:if test="$BiblioItemtypeImage='Control'">
489
    <xsl:if test="$typeOf008!=''">
491
    <xsl:if test="$typeOf008!=''">
490
        <span class="results_material_type">
492
        <span class="results_material_type">
491
        <span class="label">Material type: </span>
493
        <span class="label">Material type: </span>
Lines 508-519 Link Here
508
                <xsl:when test="$leader6='i'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/sound.png" alt="sound" title="sound" class="materialtype mt_icon_MU"/> Sound</xsl:when>
510
                <xsl:when test="$leader6='i'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/sound.png" alt="sound" title="sound" class="materialtype mt_icon_MU"/> Sound</xsl:when>
509
                <xsl:when test="$leader6='j'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/sound.png" alt="music" title="music" class="materialtype mt_icon_MU"/> Music</xsl:when>
511
                <xsl:when test="$leader6='j'"><img src="/intranet-tmpl/prog/img/famfamfam/silk/sound.png" alt="music" title="music" class="materialtype mt_icon_MU"/> Music</xsl:when>
510
            </xsl:choose>
512
            </xsl:choose>
511
        </span>
513
         ; </span>
514
    </xsl:if>
512
    </xsl:if>
515
    </xsl:if>
513
516
514
    <xsl:if test="string-length(normalize-space($physicalDescription))">
517
    <xsl:if test="string-length(normalize-space($physicalDescription))">
515
        <span class="results_format">
518
        <span class="results_format">
516
            <span class="label">; Format: </span><xsl:copy-of select="$physicalDescription"></xsl:copy-of>
519
            <span class="label">Format: </span><xsl:copy-of select="$physicalDescription"></xsl:copy-of>
517
        </span>
520
        </span>
518
    </xsl:if>
521
    </xsl:if>
519
522
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-23 / +13 lines)
Lines 115-130 Link Here
115
                        <h1 class="title">[% title | html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield | html %] [% END %]</span>[% END %]</h1>
115
                        <h1 class="title">[% title | html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield | html %] [% END %]</span>[% END %]</h1>
116
                        [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author | html %]</a></h5>[% END %]
116
                        [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author | html %]</a></h5>[% END %]
117
117
118
                        <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
119
                            [
120
                            [% IF ( description ) %]
121
                                [% description | html %]
122
                            [% ELSE %]
123
                                [% itemtype | html %]
124
                            [% END %]
125
                            ] [% END %]
126
                            [% IF ( unititle ) %], [% unititle | html %][% END %]
127
                        </span>
128
118
129
                        [% IF ( MARCAUTHORS ) %]
119
                        [% IF ( MARCAUTHORS ) %]
130
                            <div class="results_summary">
120
                            <div class="results_summary">
Lines 317-335 Link Here
317
                            <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate | html %]</span>
307
                            <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate | html %]</span>
318
                        [% END %]
308
                        [% END %]
319
309
320
                        [% UNLESS ( item_level_itypes ) %]
321
                            [% IF ( imgeurl ) %]
322
                                <img src="[% imageurl | html %]" alt="" />
323
                            [% END %]
324
                            <span class="results_summary itemtype"><span class="label">Item type: </span>
325
                                [% IF ( description ) %]
326
                                    [% description | html %]
327
                                [% ELSE %]
328
                                    [% itemtype | html %]
329
                                [% END %]
330
                            </span>
331
                        [% END %]
332
333
                        [% IF ( MARCURLS ) %]
310
                        [% IF ( MARCURLS ) %]
334
                            <div class="results_summary online_resources"><span class="label">Online resources:</span>
311
                            <div class="results_summary online_resources"><span class="label">Online resources:</span>
335
                                <ul>
312
                                <ul>
Lines 364-369 Link Here
364
                        [% END # / IF MARCURLS %]
341
                        [% END # / IF MARCURLS %]
365
                    [% END # / IF OPACXSLTDetailsDisplay %]
342
                    [% END # / IF OPACXSLTDetailsDisplay %]
366
343
344
                    [% IF ( !item_level_itypes ) || Koha.Preference('BiblioItemtypeImage') == 'Koha' %]
345
                        <span class="results_summary itemtype"><span class="label">Item type: </span>
346
                            [% IF ( imageurl ) %]
347
                                <img src="[% imageurl | html %]" alt="" />
348
                            [% END %]
349
                            [% IF ( description ) %]
350
                                [% description | html %]
351
                            [% ELSE %]
352
                                [% itemtype | html %]
353
                            [% END %]
354
                        </span>
355
                    [% END %]
356
367
                    <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
357
                    <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
368
                    [% IF ( LibraryThingForLibrariesID ) %]
358
                    [% IF ( LibraryThingForLibrariesID ) %]
369
                        [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
359
                        [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-2 / +1 lines)
Lines 233-240 Link Here
233
                                                    [% SEARCH_RESULT.result_number | html %].
233
                                                    [% SEARCH_RESULT.result_number | html %].
234
                                                [% END %]
234
                                                [% END %]
235
                                            </td>
235
                                            </td>
236
236
                                            [% IF ( !item_level_itypes && !noItemTypeImages ) || Koha.Preference('BiblioItemtypeImage') == 'Koha' %]
237
                                            [% IF ( !item_level_itypes && !noItemTypeImages ) %]
238
                                                [% # Cell 3: Show item type image %]
237
                                                [% # Cell 3: Show item type image %]
239
                                                <td class="itypecol">
238
                                                <td class="itypecol">
240
                                                    [% IF ( SEARCH_RESULT.imageurl ) %]
239
                                                    [% IF ( SEARCH_RESULT.imageurl ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (+3 lines)
Lines 32-37 Link Here
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="theme" select="marc:sysprefs/marc:syspref[@name='opacthemes']"/>
33
    <xsl:variable name="theme" select="marc:sysprefs/marc:syspref[@name='opacthemes']"/>
34
    <xsl:variable name="biblionumber" select="marc:datafield[@tag=999]/marc:subfield[@code='c']"/>
34
    <xsl:variable name="biblionumber" select="marc:datafield[@tag=999]/marc:subfield[@code='c']"/>
35
    <xsl:variable name="BiblioItemtypeImage" select="marc:sysprefs/marc:syspref[@name='BiblioItemtypeImage']"/>
35
    <xsl:variable name="TracingQuotesLeft">
36
    <xsl:variable name="TracingQuotesLeft">
36
      <xsl:choose>
37
      <xsl:choose>
37
        <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICU']='1'">{</xsl:when>
38
        <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICU']='1'">{</xsl:when>
Lines 188-193 Link Here
188
        </xsl:call-template>
189
        </xsl:call-template>
189
190
190
   <xsl:if test="$DisplayOPACiconsXSLT!='0'">
191
   <xsl:if test="$DisplayOPACiconsXSLT!='0'">
192
        <xsl:if test="$BiblioItemtypeImage='Control'">
191
        <xsl:if test="$materialTypeCode!=''">
193
        <xsl:if test="$materialTypeCode!=''">
192
        <span class="results_summary type"><span class="label">Material type: </span>
194
        <span class="results_summary type"><span class="label">Material type: </span>
193
        <xsl:element name="img">
195
        <xsl:element name="img">
Lines 198-203 Link Here
198
        <xsl:value-of select="$materialTypeLabel"/>
200
        <xsl:value-of select="$materialTypeLabel"/>
199
        </span>
201
        </span>
200
        </xsl:if>
202
        </xsl:if>
203
	</xsl:if>
201
   </xsl:if>
204
   </xsl:if>
202
205
203
        <!--Series: Alternate Graphic Representation (MARC 880) -->
206
        <!--Series: Alternate Graphic Representation (MARC 880) -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-2 / +7 lines)
Lines 18-25 Link Here
18
    </xsl:template>
18
    </xsl:template>
19
    <xsl:template match="marc:record">
19
    <xsl:template match="marc:record">
20
20
21
        <!-- Option: Display Alternate Graphic Representation (MARC 880)  -->
21
    <!-- Option: Display Alternate Graphic Representation (MARC 880)  -->
22
        <xsl:variable name="display880" select="boolean(marc:datafield[@tag=880])"/>
22
    <xsl:variable name="display880" select="boolean(marc:datafield[@tag=880])"/>
23
23
24
    <xsl:variable name="OPACResultsLibrary" select="marc:sysprefs/marc:syspref[@name='OPACResultsLibrary']"/>
24
    <xsl:variable name="OPACResultsLibrary" select="marc:sysprefs/marc:syspref[@name='OPACResultsLibrary']"/>
25
    <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
25
    <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
Lines 34-39 Link Here
34
    <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
34
    <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
35
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
35
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
36
    <xsl:variable name="BiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='BiblioDefaultView']"/>
36
    <xsl:variable name="BiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='BiblioDefaultView']"/>
37
    <xsl:variable name="BiblioItemtypeImage" select="marc:sysprefs/marc:syspref[@name='BiblioItemtypeImage']"/>
37
        <xsl:variable name="leader" select="marc:leader"/>
38
        <xsl:variable name="leader" select="marc:leader"/>
38
        <xsl:variable name="leader6" select="substring($leader,7,1)"/>
39
        <xsl:variable name="leader6" select="substring($leader,7,1)"/>
39
        <xsl:variable name="leader7" select="substring($leader,8,1)"/>
40
        <xsl:variable name="leader7" select="substring($leader,8,1)"/>
Lines 658-663 Link Here
658
659
659
<xsl:if test="$DisplayOPACiconsXSLT!='0'">
660
<xsl:if test="$DisplayOPACiconsXSLT!='0'">
660
    <span class="results_summary type">
661
    <span class="results_summary type">
662
663
    <xsl:if test="$BiblioItemtypeImage='Control'">
664
661
    <xsl:if test="$typeOf008!=''">
665
    <xsl:if test="$typeOf008!=''">
662
    <span class="results_material_type">
666
    <span class="results_material_type">
663
        <span class="label">Material type: </span>
667
        <span class="label">Material type: </span>
Lines 1017-1022 Link Here
1017
        </xsl:choose>
1021
        </xsl:choose>
1018
        </span>
1022
        </span>
1019
    </xsl:if>
1023
    </xsl:if>
1024
    </xsl:if>
1020
<xsl:text> </xsl:text> <!-- added blank space to fix font display problem, see Bug 3671 -->
1025
<xsl:text> </xsl:text> <!-- added blank space to fix font display problem, see Bug 3671 -->
1021
	</span>
1026
	</span>
1022
</xsl:if>
1027
</xsl:if>
(-)a/opac/opac-detail.pl (+1 lines)
Lines 1193-1198 my $defaulttab = Link Here
1193
    @serialcollections > 0 
1193
    @serialcollections > 0 
1194
        ? 'serialcollection' : 'subscriptions';
1194
        ? 'serialcollection' : 'subscriptions';
1195
$template->param('defaulttab' => $defaulttab);
1195
$template->param('defaulttab' => $defaulttab);
1196
$template->{VARS}->{'BiblioItemtypeImage'} = C4::Context->preference('BiblioItemtypeImage');
1196
1197
1197
if (C4::Context->preference('OPACLocalCoverImages') == 1) {
1198
if (C4::Context->preference('OPACLocalCoverImages') == 1) {
1198
    my @images = ListImagesForBiblio($biblionumber);
1199
    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 1021-1026 $template->{VARS}->{DidYouMean} = Link Here
1021
$template->{VARS}->{IDreamBooksReviews} = C4::Context->preference('IDreamBooksReviews');
1022
$template->{VARS}->{IDreamBooksReviews} = C4::Context->preference('IDreamBooksReviews');
1022
$template->{VARS}->{IDreamBooksReadometer} = C4::Context->preference('IDreamBooksReadometer');
1023
$template->{VARS}->{IDreamBooksReadometer} = C4::Context->preference('IDreamBooksReadometer');
1023
$template->{VARS}->{IDreamBooksResults} = C4::Context->preference('IDreamBooksResults');
1024
$template->{VARS}->{IDreamBooksResults} = C4::Context->preference('IDreamBooksResults');
1025
$template->{VARS}->{'BiblioItemtypeImage'} = C4::Context->preference('BiblioItemtypeImage');
1024
1026
1025
if ($offset == 0) {
1027
if ($offset == 0) {
1026
    $template->param(firstPage => 1);
1028
    $template->param(firstPage => 1);
1027
- 

Return to bug 8732