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

(-)a/catalogue/detail.pl (-1 lines)
Lines 524-530 if ( (C4::Context->preference("HTML5MediaEnabled") eq 'both') or (C4::Context->p Link Here
524
}
524
}
525
525
526
# Displaying tags
526
# Displaying tags
527
528
my $tag_quantity;
527
my $tag_quantity;
529
if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->preference('TagsShowOnDetail')) {
528
if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->preference('TagsShowOnDetail')) {
530
    $template->param(
529
    $template->param(
(-)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
('BiblioItemtypeInfo','0','0','Control which itemtype info displays for biblio level itemtypes','YesNo'),
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 (+6 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
            - pref: BiblioItemtypeInfo
275
              choices:
276
                  yes: "Display"
277
                  no: "Don't display"
278
            - " Koha record level itemtype info on detail and result pages in the opac. This info also displays if item-level_itypes is set to bibliographic record."
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +13 lines)
Lines 114-119 Link Here
114
                    </span>
114
                    </span>
115
        [% END %]
115
        [% END %]
116
        <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
        <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>
117
        [% IF !item_level_itypes ||  Koha.Preference("BiblioItemtypeInfo") %]
118
           <span class="results_summary itemtype"><span class="label">Itemtype:</span>
119
          [% IF ( !noItemTypeImages && imageurl ) %]
120
              <img src="[% imageurl | html %]" alt="" />
121
          [% END %]
122
          [% IF ( description ) %]
123
            [% description | html %]
124
          [% ELSE %]
125
            [% itemtype | html %]
126
          [% END %]
127
          </span>
128
        [% END %]
117
129
118
        [% IF ( holdcount ) %]
130
        [% IF ( holdcount ) %]
119
            <span class="results_summary">
131
            <span class="results_summary">
Lines 823-829 Note that permanent location is a code, and location may be an authval. Link Here
823
<div id="editions"><h4>Editions</h4>
835
<div id="editions"><h4>Editions</h4>
824
<table>
836
<table>
825
[% FOREACH XISBN IN XISBNS %]<tr>[% IF ( AmazonCoverImages ) %]<td><a href="http://www.amazon.com/gp/reader/[% XISBN.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" /></a></td>[% END %]
837
[% FOREACH XISBN IN XISBNS %]<tr>[% IF ( AmazonCoverImages ) %]<td><a href="http://www.amazon.com/gp/reader/[% XISBN.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" /></a></td>[% END %]
826
[% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description | html %][% ELSE %]<img src="[% XISBN.imageurl | html %]" alt="[% XISBN.description | html %]" title="[% XISBN.description | html %]">[% END %]</td>[% END %]
838
[% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description | html %][% ELSE %]<img src="[% XISBN.imageurl | html %]" alt="[% XISBN.description | html %]" title="[% XISBN.description | html %]">[% END %]</td>[% END %]
827
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] &copy;[% XISBN.copyrightdate | html %]
839
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] &copy;[% XISBN.copyrightdate | html %]
828
  [% IF ( XISBN.publishercode ) %]
840
  [% IF ( XISBN.publishercode ) %]
829
[% XISBN.publishercode | html %] [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %] [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear | html %][% END %] [% IF ( XISBN.editionstatement ) %][% XISBN.editionstatement | html %][% END %] [% IF ( XISBN.editionresponsibility ) %][% XISBN.editionresponsibility | html %][% END %]
841
[% XISBN.publishercode | html %] [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %] [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear | html %][% END %] [% IF ( XISBN.editionstatement ) %][% XISBN.editionstatement | html %][% END %] [% IF ( XISBN.editionresponsibility ) %][% XISBN.editionresponsibility | html %][% END %]
(-)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('BiblioItemtypeInfo') %]
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/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-14 / +8 lines)
Lines 133-148 Link Here
133
                        <h2 class="title">[% INCLUDE 'biblio-title.inc' %]</h2>
133
                        <h2 class="title">[% INCLUDE 'biblio-title.inc' %]</h2>
134
                        [% IF ( author ) %]<span class="results_summary author h3">by <a class="contributors" href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author | html %]</a></span>[% END %]
134
                        [% IF ( author ) %]<span class="results_summary author h3">by <a class="contributors" href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author | html %]</a></span>[% END %]
135
135
136
                        <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
136
                         <span class="results_summary">
137
                            [
137
                             [% IF ( unititle ) %], [% unititle | html %][% END %]
138
                            [% IF ( description ) %]
138
                         </span>
139
                                [% description | html %]
139
140
                            [% ELSE %]
141
                                [% itemtype | html %]
142
                            [% END %]
143
                            ] [% END %]
144
                            [% IF ( unititle ) %], [% unititle | html %][% END %]
145
                        </span>
146
140
147
                        [% IF ( MARCAUTHORS ) %]
141
                        [% IF ( MARCAUTHORS ) %]
148
                            <div class="results_summary">
142
                            <div class="results_summary">
Lines 252-262 Link Here
252
                            <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate | html %]</span>
246
                            <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate | html %]</span>
253
                        [% END %]
247
                        [% END %]
254
248
255
                        [% UNLESS ( item_level_itypes ) %]
249
                        [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %]
256
                            [% IF ( imgeurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
257
                                <img src="[% imageurl | html %]" alt="" />
258
                            [% END %]
259
                            <span class="results_summary itemtype"><span class="label">Item type: </span>
250
                            <span class="results_summary itemtype"><span class="label">Item type: </span>
251
                                [% IF ( imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
252
                                    <img src="[% imageurl | html %]" alt="" />
253
                                [% END %]
260
                                [% IF ( description ) %]
254
                                [% IF ( description ) %]
261
                                    [% description | html %]
255
                                    [% description | html %]
262
                                [% ELSE %]
256
                                [% ELSE %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-2 / +1 lines)
Lines 266-273 Link Here
266
                                                    [% SEARCH_RESULT.result_number | html %].
266
                                                    [% SEARCH_RESULT.result_number | html %].
267
                                                [% END %]
267
                                                [% END %]
268
                                            </td>
268
                                            </td>
269
269
                                            [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) && !Koha.Preference('OpacNoItemTypeImages') %]
270
                                            [% IF ( !item_level_itypes && !Koha.Preference('OpacNoItemTypeImages') ) %]
271
                                                [% # Cell 3: Show item type image %]
270
                                                [% # Cell 3: Show item type image %]
272
                                                <td class="itypecol">
271
                                                <td class="itypecol">
273
                                                    [% IF ( SEARCH_RESULT.imageurl ) %]
272
                                                    [% IF ( SEARCH_RESULT.imageurl ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (+1 lines)
Lines 662-667 Link Here
662
662
663
<xsl:if test="$DisplayOPACiconsXSLT!='0'">
663
<xsl:if test="$DisplayOPACiconsXSLT!='0'">
664
    <span class="results_summary type">
664
    <span class="results_summary type">
665
665
    <xsl:if test="$typeOf008!=''">
666
    <xsl:if test="$typeOf008!=''">
666
    <span class="results_material_type">
667
    <span class="results_material_type">
667
        <span class="label">Material type: </span>
668
        <span class="label">Material type: </span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl (-2 lines)
Lines 19-25 Link Here
19
  <xsl:variable name="leader6" select="substring($leader,7,1)"/>
19
  <xsl:variable name="leader6" select="substring($leader,7,1)"/>
20
  <xsl:variable name="leader7" select="substring($leader,8,1)"/>
20
  <xsl:variable name="leader7" select="substring($leader,8,1)"/>
21
  <xsl:variable name="biblionumber" select="marc:controlfield[@tag=001]"/>
21
  <xsl:variable name="biblionumber" select="marc:controlfield[@tag=001]"/>
22
  <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
23
  <xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
22
  <xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
24
  <xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
23
  <xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
25
24
26
- 

Return to bug 8732