}
# Displaying tags
-
my $tag_quantity;
if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->preference('TagsShowOnDetail')) {
$template->param(
('BatchCheckoutsValidCategories','',NULL,'Patron categories allowed to checkout in a batch','Free'),
('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'),
('BiblioDefaultView','normal','normal|marc|isbd','Choose the default detail view in the catalog; choose between normal, marc or isbd','Choice'),
+('BiblioItemtypeInfo','0','0','Control which itemtype info displays for biblio level itemtypes','YesNo'),
('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'),
('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'),
('BlockReturnOfLostItems','0','0','If enabled, items that are marked as lost cannot be returned.','YesNo'),
- LIBRIS base URL
- pref: LibrisURL
- "Please only change this if you are sure it needs changing."
+ -
+ - pref: BiblioItemtypeInfo
+ choices:
+ yes: "Display"
+ no: "Don't display"
+ - " 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."
</span>
[% END %]
<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 %]&viewas=html" title="MARC" class="previewMARC">Show</a></span>
+ [% IF !item_level_itypes || Koha.Preference("BiblioItemtypeInfo") %]
+ <span class="results_summary itemtype"><span class="label">Itemtype:</span>
+ [% IF ( !noItemTypeImages && imageurl ) %]
+ <img src="[% imageurl | html %]" alt="" />
+ [% END %]
+ [% IF ( description ) %]
+ [% description | html %]
+ [% ELSE %]
+ [% itemtype | html %]
+ [% END %]
+ </span>
+ [% END %]
[% IF ( holdcount ) %]
<span class="results_summary">
<div id="editions"><h4>Editions</h4>
<table>
[% 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 %]
-[% 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 %]
+[% 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 %]
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %]
[% IF ( XISBN.publishercode ) %]
[% 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 %]
</td>
<td>
- [% UNLESS ( item_level_itypes ) %]
+ [% IF ( !item_level_itypes ) || Koha.Preference('BiblioItemtypeInfo') %]
<div class="result-biblio-itemtype">
[% IF !noItemTypeImages && SEARCH_RESULT.imageurl %]
<img src="[% SEARCH_RESULT.imageurl | html %]" alt="[% SEARCH_RESULT.description | html %]" />
<h2 class="title">[% INCLUDE 'biblio-title.inc' %]</h2>
[% 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 %]
- <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
- [
- [% IF ( description ) %]
- [% description | html %]
- [% ELSE %]
- [% itemtype | html %]
- [% END %]
- ] [% END %]
- [% IF ( unititle ) %], [% unititle | html %][% END %]
- </span>
+ <span class="results_summary">
+ [% IF ( unititle ) %], [% unititle | html %][% END %]
+ </span>
+
[% IF ( MARCAUTHORS ) %]
<div class="results_summary">
<span class="results_summary year"><span class="label">Year: </span>[% copyrightdate | html %]</span>
[% END %]
- [% UNLESS ( item_level_itypes ) %]
- [% IF ( imgeurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
- <img src="[% imageurl | html %]" alt="" />
- [% END %]
+ [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %]
<span class="results_summary itemtype"><span class="label">Item type: </span>
+ [% IF ( imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
+ <img src="[% imageurl | html %]" alt="" />
+ [% END %]
[% IF ( description ) %]
[% description | html %]
[% ELSE %]
[% SEARCH_RESULT.result_number | html %].
[% END %]
</td>
-
- [% IF ( !item_level_itypes && !Koha.Preference('OpacNoItemTypeImages') ) %]
+ [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) && !Koha.Preference('OpacNoItemTypeImages') %]
[% # Cell 3: Show item type image %]
<td class="itypecol">
[% IF ( SEARCH_RESULT.imageurl ) %]
<xsl:if test="$DisplayOPACiconsXSLT!='0'">
<span class="results_summary type">
+
<xsl:if test="$typeOf008!=''">
<span class="results_material_type">
<span class="label">Material type: </span>
<xsl:variable name="leader6" select="substring($leader,7,1)"/>
<xsl:variable name="leader7" select="substring($leader,8,1)"/>
<xsl:variable name="biblionumber" select="marc:controlfield[@tag=001]"/>
- <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
<xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
<xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>