projects
/
koha_fer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 8015: (follow-up) trap exceptions thrown by SetUTF8Flag()
[koha_fer]
/
catalogue
/
moredetail.pl
diff --git
a/catalogue/moredetail.pl
b/catalogue/moredetail.pl
index
66d731b
..
a925285
100755
(executable)
--- a/
catalogue/moredetail.pl
+++ b/
catalogue/moredetail.pl
@@
-35,6
+35,7
@@
use C4::Circulation; # to use itemissues
use C4::Members; # to use GetMember
use C4::Search; # enabled_staff_search_views
use C4::Members qw/GetHideLostItemsPreference/;
use C4::Members; # to use GetMember
use C4::Search; # enabled_staff_search_views
use C4::Members qw/GetHideLostItemsPreference/;
+use C4::Reserves qw(GetReservesFromBiblionumber);
use Koha::DateUtils;
my $query=new CGI;
use Koha::DateUtils;
my $query=new CGI;
@@
-167,11
+168,11
@@
foreach my $item (@items){
}
$item->{'datereceived'} = $order->{'datereceived'};
}
$item->{'datereceived'} = $order->{'datereceived'};
- if ($item->{notforloantext} or $item->{itemlost} or $item->{damaged} or $item->{wthdrawn}) {
+ if ($item->{notforloantext} or $item->{itemlost} or $item->{damaged} or $item->{w
i
thdrawn}) {
$item->{status_advisory} = 1;
}
$item->{status_advisory} = 1;
}
- if (C4::Context->preference("Independ
a
ntBranches")) {
+ if (C4::Context->preference("Independ
e
ntBranches")) {
#verifying rights
my $userenv = C4::Context->userenv();
unless (($userenv->{'flags'} == 1) or ($userenv->{'branch'} eq $item->{'homebranch'})) {
#verifying rights
my $userenv = C4::Context->userenv();
unless (($userenv->{'flags'} == 1) or ($userenv->{'branch'} eq $item->{'homebranch'})) {
@@
-213,6
+214,11
@@
$template->param(
hidepatronname => $hidepatronname,
);
$template->param(ONLY_ONE => 1) if ( $itemnumber && $showncount != @items );
hidepatronname => $hidepatronname,
);
$template->param(ONLY_ONE => 1) if ( $itemnumber && $showncount != @items );
+$template->{'VARS'}->{'searchid'} = $query->param('searchid');
+
+
+my ( $holdcount, $holds ) = GetReservesFromBiblionumber($biblionumber,1);
+$template->param( holdcount => $holdcount, holds => $holds );
output_html_with_http_headers $query, $cookie, $template->output;
output_html_with_http_headers $query, $cookie, $template->output;