@@ -, +, @@
- Auth.pm put the noItemTypeImages preference under "intranet only."
Moved it to "OPAC or intranet."
- Added check for the preference on the OPAC advanced search page.
- Improved logic for displaying images on the reading history page.
---
C4/Auth.pm | 2 +-
.../opac-tmpl/prog/en/modules/opac-advsearch.tmpl | 2 +-
.../opac-tmpl/prog/en/modules/opac-detail.tmpl | 2 +-
.../prog/en/modules/opac-readingrecord.tmpl | 4 ++--
opac/opac-readingrecord.pl | 1 +
5 files changed, 6 insertions(+), 5 deletions(-)
--- a/C4/Auth.pm
+++ a/C4/Auth.pm
@@ -339,6 +339,7 @@ sub get_template_and_user {
XSLTResultsDisplay => C4::Context->preference("XSLTResultsDisplay"),
BranchesLoop => GetBranchesLoop(),
using_https => $in->{'query'}->https() ? 1 : 0,
+ noItemTypeImages => C4::Context->preference("noItemTypeImages"),
);
if ( $in->{'type'} eq "intranet" ) {
@@ -364,7 +365,6 @@ sub get_template_and_user {
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
intranetuserjs => C4::Context->preference("intranetuserjs"),
intranetbookbag => C4::Context->preference("intranetbookbag"),
- noItemTypeImages => C4::Context->preference("noItemTypeImages"),
suggestion => C4::Context->preference("suggestion"),
virtualshelves => C4::Context->preference("virtualshelves"),
StaffSerialIssueDisplayCount => C4::Context->preference("StaffSerialIssueDisplayCount"),
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tmpl
+++ a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tmpl
@@ -134,7 +134,7 @@
- -" name="limit" value="mc-:"/>-"> " alt="" />
+ -" name="limit" value="mc-:"/>-"> " alt="" />
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl
+++ a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl
@@ -395,7 +395,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
Date Due
- " title="" alt="" />
+ " title="" alt="" />
">
(&shelfbrowse_itemnumber=#shelfbrowser">Browse Shelf )
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-readingrecord.tmpl
+++ a/koha-tmpl/opac-tmpl/prog/en/modules/opac-readingrecord.tmpl
@@ -54,7 +54,7 @@ You have never borrowed anything from this library.
Title
-Item Type
+Item Type
Call No.
Date
@@ -80,7 +80,7 @@ You have never borrowed anything from this library.
- " title="" alt="" />
+ " alt="" />
(Checked out)
--- a/opac/opac-readingrecord.pl
+++ a/opac/opac-readingrecord.pl
@@ -95,6 +95,7 @@ foreach my $issue (@{$issues} ) {
$line{date_due} = format_date( $issue->{'date_due'} );
$line{returndate} = format_date( $issue->{'returndate'} );
$line{volumeddesc} = $issue->{'volumeddesc'};
+ $issue->{'itemtype'} = C4::Context->preference('item-level_itypes') ? $issue->{'itype'} : $issue->{'itemtype'};
if($issue->{'itemtype'}) {
$line{'description'} = $itemtypes->{ $issue->{'itemtype'} }->{'description'};
$line{imageurl} = getitemtypeimagelocation( 'opac', $itemtypes->{ $issue->{'itemtype'} }->{'imageurl'} );
--