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

(-)a/C4/XSLT.pm (-1 / +2 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 OPACShowMusicalInscripts OPACPlayMusicalInscripts / )
176
                              OpenURLText OPACShowMusicalInscripts OPACPlayMusicalInscripts
177
                              BiblioItemtypeImage / )
177
    {
178
    {
178
        my $sp = C4::Context->preference( $syspref );
179
        my $sp = C4::Context->preference( $syspref );
179
        next unless defined($sp);
180
        next unless defined($sp);
(-)a/catalogue/detail.pl (-1 / +1 lines)
Lines 523-529 if ( (C4::Context->preference("HTML5MediaEnabled") eq 'both') or (C4::Context->p Link Here
523
}
523
}
524
524
525
# Displaying tags
525
# Displaying tags
526
527
my $tag_quantity;
526
my $tag_quantity;
528
if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->preference('TagsShowOnDetail')) {
527
if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->preference('TagsShowOnDetail')) {
529
    $template->param(
528
    $template->param(
Lines 589-593 $template->param (countdeletedorders => $count_deletedorders_using_biblio); Link Here
589
588
590
$template->param (basketsorders => \@baskets_orders);
589
$template->param (basketsorders => \@baskets_orders);
591
$template->param (basketsdeletedorders => \@baskets_deletedorders);
590
$template->param (basketsdeletedorders => \@baskets_deletedorders);
591
$template->{VARS}->{'BiblioItemtypeImage'} = C4::Context->preference('BiblioItemtypeImage');
592
592
593
output_html_with_http_headers $query, $cookie, $template->output;
593
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 96-101 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
96
('BatchCheckoutsValidCategories','',NULL,'Patron categories allowed to checkout in a batch','Free'),
96
('BatchCheckoutsValidCategories','',NULL,'Patron categories allowed to checkout in a batch','Free'),
97
('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'),
97
('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'),
98
('BiblioDefaultView','normal','normal|marc|isbd','Choose the default detail view in the catalog; choose between normal, marc or isbd','Choice'),
98
('BiblioDefaultView','normal','normal|marc|isbd','Choose the default detail view in the catalog; choose between normal, marc or isbd','Choice'),
99
('BiblioItemtypeImage','Control','Control which itemtype info displays for biblio level itemtypes','Control|Koha','Choice'),
99
('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'),
100
('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'),
100
('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'),
101
('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'),
101
('BlockReturnOfLostItems','0','0','If enabled, items that are marked as lost cannot be returned.','YesNo'),
102
('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 (+7 lines)
Lines 270-272 Searching: Link Here
270
            - LIBRIS base URL
270
            - LIBRIS base URL
271
            - pref: LibrisURL
271
            - pref: LibrisURL
272
            - "Please only change this if you are sure it needs changing."
272
            - "Please only change this if you are sure it needs changing."
273
        -
274
            - "Display itemtype information from the "
275
            - pref: BiblioItemtypeImage
276
              choices:
277
                  Control: "MARC control fields"
278
                  Koha: "Koha biblio level itemtype"
279
            - "This preference only affects MARC21 XSLT views.
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (+12 lines)
Lines 113-118 Link Here
113
                    </span>
113
                    </span>
114
        [% END %]
114
        [% END %]
115
        <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>
115
        <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>
116
        [% IF !item_level_itypes ||  BiblioItemtypeImage == 'Koha' %]
117
           <span class="results_summary itemtype"><span class="label">Itemtype:</span>
118
          [% IF ( imageurl ) %]
119
              <img src="[% imageurl | html %]" alt="" />
120
          [% END %]
121
          [% IF ( description ) %]
122
            [% description | html %]
123
          [% ELSE %]
124
            [% itemtype | html %]
125
          [% END %]
126
          </span>
127
        [% END %]
116
128
117
        [% IF ( holdcount ) %]
129
        [% IF ( holdcount ) %]
118
            <span class="results_summary">
130
            <span class="results_summary">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-1 / +1 lines)
Lines 463-469 Link Here
463
                                            </td>
463
                                            </td>
464
464
465
                                            <td>
465
                                            <td>
466
                                                [% UNLESS ( item_level_itypes ) %]
466
                                                [% IF ( !item_level_itypes ) || Koha.Preference('BiblioItemtypeImage') == 'Koha' %]
467
                                                    <div class="result-biblio-itemtype">
467
                                                    <div class="result-biblio-itemtype">
468
                                                        [% IF !noItemTypeImages && SEARCH_RESULT.imageurl %]
468
                                                        [% IF !noItemTypeImages && SEARCH_RESULT.imageurl %]
469
                                                            <img src="[% SEARCH_RESULT.imageurl | html %]" alt="[%  SEARCH_RESULT.description | html %]" />
469
                                                            <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 28-33 Link Here
28
        <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
28
        <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
29
        <xsl:variable name="DisplayIconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/>
29
        <xsl:variable name="DisplayIconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/>
30
        <xsl:variable name="OpacSuppression" select="marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
30
        <xsl:variable name="OpacSuppression" select="marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
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 170-185 Link Here
170
            <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
171
            <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
171
        </xsl:call-template>
172
        </xsl:call-template>
172
173
173
    <xsl:if test="$DisplayIconsXSLT!='0' and $materialTypeCode!=''">
174
        <xsl:if test="$BiblioItemtypeImage='Control'">
175
        <xsl:if test="$DisplayIconsXSLT!='0' and $materialTypeCode!=''">
174
        <span class="results_summary type"><span class="label">Material type: </span>
176
        <span class="results_summary type"><span class="label">Material type: </span>
175
    <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>
177
    <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>
176
        <xsl:text> </xsl:text>
178
        <xsl:text> </xsl:text>
177
        <xsl:value-of select="$materialTypeLabel"/>
179
        <xsl:value-of select="$materialTypeLabel"/>
178
        </span>
180
        </span>
179
    </xsl:if>
180
181
181
    <xsl:call-template name="show-lang-041"/>
182
    <xsl:call-template name="show-lang-041"/>
182
183
184
   </xsl:if>
185
   </xsl:if>
183
        <!--Series: Alternate Graphic Representation (MARC 880) -->
186
        <!--Series: Alternate Graphic Representation (MARC 880) -->
184
        <xsl:if test="$display880">
187
        <xsl:if test="$display880">
185
            <xsl:call-template name="m880Select">
188
            <xsl:call-template name="m880Select">
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-2 / +5 lines)
Lines 26-31 Link Here
26
        <xsl:variable name="DisplayIconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/>
26
        <xsl:variable name="DisplayIconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayIconsXSLT']"/>
27
        <xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/>
27
        <xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/>
28
        <xsl:variable name="OpacSuppression" select="marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
28
        <xsl:variable name="OpacSuppression" select="marc:sysprefs/marc:syspref[@name='OpacSuppression']"/>
29
        <xsl:variable name="BiblioItemtypeImage" select="marc:sysprefs/marc:syspref[@name='BiblioItemtypeImage']"/>
29
        <xsl:variable name="leader" select="marc:leader"/>
30
        <xsl:variable name="leader" select="marc:leader"/>
30
        <xsl:variable name="leader6" select="substring($leader,7,1)"/>
31
        <xsl:variable name="leader6" select="substring($leader,7,1)"/>
31
        <xsl:variable name="leader7" select="substring($leader,8,1)"/>
32
        <xsl:variable name="leader7" select="substring($leader,8,1)"/>
Lines 482-487 Link Here
482
483
483
<xsl:if test="$DisplayIconsXSLT!='0'">
484
<xsl:if test="$DisplayIconsXSLT!='0'">
484
    <span class="results_summary">
485
    <span class="results_summary">
486
    <xsl:if test="$BiblioItemtypeImage='Control'">
485
    <xsl:if test="$typeOf008!=''">
487
    <xsl:if test="$typeOf008!=''">
486
        <span class="results_material_type">
488
        <span class="results_material_type">
487
        <span class="label">Material type: </span>
489
        <span class="label">Material type: </span>
Lines 506-517 Link Here
506
                <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>
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>
507
                <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>
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>
508
            </xsl:choose>
510
            </xsl:choose>
509
        </span>
511
         ; </span>
512
    </xsl:if>
510
    </xsl:if>
513
    </xsl:if>
511
514
512
    <xsl:if test="string-length(normalize-space($physicalDescription))">
515
    <xsl:if test="string-length(normalize-space($physicalDescription))">
513
        <span class="results_format">
516
        <span class="results_format">
514
            <span class="label">; Format: </span><xsl:copy-of select="$physicalDescription"></xsl:copy-of>
517
            <span class="label">Format: </span><xsl:copy-of select="$physicalDescription"></xsl:copy-of>
515
        </span>
518
        </span>
516
    </xsl:if>
519
    </xsl:if>
517
520
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-23 / +13 lines)
Lines 127-142 Link Here
127
                        <h1 class="title">[% INCLUDE 'biblio-title.inc' %]</h1>
127
                        <h1 class="title">[% INCLUDE 'biblio-title.inc' %]</h1>
128
                        [% IF ( author ) %]<h5 class="author">by <a class="contributors" href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author | html %]</a></h5>[% END %]
128
                        [% IF ( author ) %]<h5 class="author">by <a class="contributors" href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author | html %]</a></h5>[% END %]
129
129
130
                        <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
131
                            [
132
                            [% IF ( description ) %]
133
                                [% description | html %]
134
                            [% ELSE %]
135
                                [% itemtype | html %]
136
                            [% END %]
137
                            ] [% END %]
138
                            [% IF ( unititle ) %], [% unititle | html %][% END %]
139
                        </span>
140
130
141
                        [% IF ( MARCAUTHORS ) %]
131
                        [% IF ( MARCAUTHORS ) %]
142
                            <div class="results_summary">
132
                            <div class="results_summary">
Lines 246-264 Link Here
246
                            <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate | html %]</span>
236
                            <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate | html %]</span>
247
                        [% END %]
237
                        [% END %]
248
238
249
                        [% UNLESS ( item_level_itypes ) %]
250
                            [% IF ( imgeurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
251
                                <img src="[% imageurl | html %]" alt="" />
252
                            [% END %]
253
                            <span class="results_summary itemtype"><span class="label">Item type: </span>
254
                                [% IF ( description ) %]
255
                                    [% description | html %]
256
                                [% ELSE %]
257
                                    [% itemtype | html %]
258
                                [% END %]
259
                            </span>
260
                        [% END %]
261
262
                        [% IF ( MARCURLS ) %]
239
                        [% IF ( MARCURLS ) %]
263
                            <div class="results_summary online_resources"><span class="label">Online resources:</span>
240
                            <div class="results_summary online_resources"><span class="label">Online resources:</span>
264
                                <ul>
241
                                <ul>
Lines 293-298 Link Here
293
                        [% END # / IF MARCURLS %]
270
                        [% END # / IF MARCURLS %]
294
                    [% END # / IF OPACXSLTDetailsDisplay %]
271
                    [% END # / IF OPACXSLTDetailsDisplay %]
295
272
273
                    [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeImage') == 'Koha' ) && !Koha.Preference('OpacNoItemTypeImages') %]
274
                        <span class="results_summary itemtype"><span class="label">Item type: </span>
275
                            [% IF ( imageurl ) %]
276
                                <img src="[% imageurl | html %]" alt="" />
277
                            [% END %]
278
                            [% IF ( description ) %]
279
                                [% description | html %]
280
                            [% ELSE %]
281
                                [% itemtype | html %]
282
                            [% END %]
283
                        </span>
284
                    [% END %]
285
296
                    <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
286
                    <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
297
                    [% IF ( LibraryThingForLibrariesID ) %]
287
                    [% IF ( LibraryThingForLibrariesID ) %]
298
                        [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
288
                        [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-2 / +1 lines)
Lines 252-259 Link Here
252
                                                    [% SEARCH_RESULT.result_number | html %].
252
                                                    [% SEARCH_RESULT.result_number | html %].
253
                                                [% END %]
253
                                                [% END %]
254
                                            </td>
254
                                            </td>
255
255
                                            [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeImage') == 'Koha' ) && !Koha.Preference('OpacNoItemTypeImages') %]
256
                                            [% IF ( !item_level_itypes && !Koha.Preference('OpacNoItemTypeImages') ) %]
257
                                                [% # Cell 3: Show item type image %]
256
                                                [% # Cell 3: Show item type image %]
258
                                                <td class="itypecol">
257
                                                <td class="itypecol">
259
                                                    [% IF ( SEARCH_RESULT.imageurl ) %]
258
                                                    [% IF ( SEARCH_RESULT.imageurl ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (+3 lines)
Lines 31-36 Link Here
31
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
31
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
32
    <xsl:variable name="theme" select="marc:sysprefs/marc:syspref[@name='opacthemes']"/>
32
    <xsl:variable name="theme" select="marc:sysprefs/marc:syspref[@name='opacthemes']"/>
33
    <xsl:variable name="biblionumber" select="marc:datafield[@tag=999]/marc:subfield[@code='c']"/>
33
    <xsl:variable name="biblionumber" select="marc:datafield[@tag=999]/marc:subfield[@code='c']"/>
34
    <xsl:variable name="BiblioItemtypeImage" select="marc:sysprefs/marc:syspref[@name='BiblioItemtypeImage']"/>
34
    <xsl:variable name="TracingQuotesLeft">
35
    <xsl:variable name="TracingQuotesLeft">
35
      <xsl:choose>
36
      <xsl:choose>
36
        <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICU']='1'">{</xsl:when>
37
        <xsl:when test="marc:sysprefs/marc:syspref[@name='UseICU']='1'">{</xsl:when>
Lines 187-192 Link Here
187
        </xsl:call-template>
188
        </xsl:call-template>
188
189
189
   <xsl:if test="$DisplayOPACiconsXSLT!='0'">
190
   <xsl:if test="$DisplayOPACiconsXSLT!='0'">
191
        <xsl:if test="$BiblioItemtypeImage='Control'">
190
        <xsl:if test="$materialTypeCode!=''">
192
        <xsl:if test="$materialTypeCode!=''">
191
        <span class="results_summary type"><span class="label">Material type: </span>
193
        <span class="results_summary type"><span class="label">Material type: </span>
192
        <xsl:element name="img">
194
        <xsl:element name="img">
Lines 197-202 Link Here
197
        <xsl:value-of select="$materialTypeLabel"/>
199
        <xsl:value-of select="$materialTypeLabel"/>
198
        </span>
200
        </span>
199
        </xsl:if>
201
        </xsl:if>
202
	</xsl:if>
200
   </xsl:if>
203
   </xsl:if>
201
204
202
    <xsl:call-template name="show-lang-041"/>
205
    <xsl:call-template name="show-lang-041"/>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-2 / +7 lines)
Lines 19-26 Link Here
19
    </xsl:template>
19
    </xsl:template>
20
    <xsl:template match="marc:record">
20
    <xsl:template match="marc:record">
21
21
22
        <!-- Option: Display Alternate Graphic Representation (MARC 880)  -->
22
    <!-- Option: Display Alternate Graphic Representation (MARC 880)  -->
23
        <xsl:variable name="display880" select="boolean(marc:datafield[@tag=880])"/>
23
    <xsl:variable name="display880" select="boolean(marc:datafield[@tag=880])"/>
24
24
25
    <xsl:variable name="OPACResultsLibrary" select="marc:sysprefs/marc:syspref[@name='OPACResultsLibrary']"/>
25
    <xsl:variable name="OPACResultsLibrary" select="marc:sysprefs/marc:syspref[@name='OPACResultsLibrary']"/>
26
    <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
26
    <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
Lines 35-40 Link Here
35
    <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
35
    <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
36
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
36
    <xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/>
37
    <xsl:variable name="BiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='BiblioDefaultView']"/>
37
    <xsl:variable name="BiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='BiblioDefaultView']"/>
38
    <xsl:variable name="BiblioItemtypeImage" select="marc:sysprefs/marc:syspref[@name='BiblioItemtypeImage']"/>
38
        <xsl:variable name="leader" select="marc:leader"/>
39
        <xsl:variable name="leader" select="marc:leader"/>
39
        <xsl:variable name="leader6" select="substring($leader,7,1)"/>
40
        <xsl:variable name="leader6" select="substring($leader,7,1)"/>
40
        <xsl:variable name="leader7" select="substring($leader,8,1)"/>
41
        <xsl:variable name="leader7" select="substring($leader,8,1)"/>
Lines 659-664 Link Here
659
660
660
<xsl:if test="$DisplayOPACiconsXSLT!='0'">
661
<xsl:if test="$DisplayOPACiconsXSLT!='0'">
661
    <span class="results_summary type">
662
    <span class="results_summary type">
663
664
    <xsl:if test="$BiblioItemtypeImage='Control'">
665
662
    <xsl:if test="$typeOf008!=''">
666
    <xsl:if test="$typeOf008!=''">
663
    <span class="results_material_type">
667
    <span class="results_material_type">
664
        <span class="label">Material type: </span>
668
        <span class="label">Material type: </span>
Lines 1018-1023 Link Here
1018
        </xsl:choose>
1022
        </xsl:choose>
1019
        </span>
1023
        </span>
1020
    </xsl:if>
1024
    </xsl:if>
1025
    </xsl:if>
1021
<xsl:text> </xsl:text> <!-- added blank space to fix font display problem, see Bug 3671 -->
1026
<xsl:text> </xsl:text> <!-- added blank space to fix font display problem, see Bug 3671 -->
1022
	</span>
1027
	</span>
1023
</xsl:if>
1028
</xsl:if>
(-)a/opac/opac-detail.pl (+1 lines)
Lines 1189-1194 my $defaulttab = Link Here
1189
    @serialcollections > 0 
1189
    @serialcollections > 0 
1190
        ? 'serialcollection' : 'subscriptions';
1190
        ? 'serialcollection' : 'subscriptions';
1191
$template->param('defaulttab' => $defaulttab);
1191
$template->param('defaulttab' => $defaulttab);
1192
$template->{VARS}->{'BiblioItemtypeImage'} = C4::Context->preference('BiblioItemtypeImage');
1192
1193
1193
if (C4::Context->preference('OPACLocalCoverImages') == 1) {
1194
if (C4::Context->preference('OPACLocalCoverImages') == 1) {
1194
    my @images = ListImagesForBiblio($biblionumber);
1195
    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 1023-1028 if (C4::Context->preference('GoogleIndicTransliteration')) { Link Here
1023
$template->{VARS}->{DidYouMean} =
1024
$template->{VARS}->{DidYouMean} =
1024
  ( defined C4::Context->preference('OPACdidyoumean')
1025
  ( defined C4::Context->preference('OPACdidyoumean')
1025
      && C4::Context->preference('OPACdidyoumean') =~ m/enable/ );
1026
      && C4::Context->preference('OPACdidyoumean') =~ m/enable/ );
1027
$template->{VARS}->{'BiblioItemtypeImage'} = C4::Context->preference('BiblioItemtypeImage');
1026
1028
1027
if ($offset == 0) {
1029
if ($offset == 0) {
1028
    $template->param(firstPage => 1);
1030
    $template->param(firstPage => 1);
1029
- 

Return to bug 8732