[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/opac opac-MARCdetail.pl [dev_week]
From: |
Joshua Ferraro |
Subject: |
[Koha-cvs] koha/opac opac-MARCdetail.pl [dev_week] |
Date: |
Mon, 04 Dec 2006 05:48:18 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: dev_week
Changes by: Joshua Ferraro <kados> 06/12/04 05:48:18
Modified files:
opac : opac-MARCdetail.pl
Log message:
fix for bug 1227: MARC detail screen incorrectly shows reserves button
for non-reservable items
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/opac/opac-MARCdetail.pl?cvsroot=koha&only_with_tag=dev_week&r1=1.4.2.14.2.3&r2=1.4.2.14.2.4
Patches:
Index: opac-MARCdetail.pl
===================================================================
RCS file: /sources/koha/koha/opac/opac-MARCdetail.pl,v
retrieving revision 1.4.2.14.2.3
retrieving revision 1.4.2.14.2.4
diff -u -b -r1.4.2.14.2.3 -r1.4.2.14.2.4
--- opac-MARCdetail.pl 19 Sep 2006 04:46:31 -0000 1.4.2.14.2.3
+++ opac-MARCdetail.pl 4 Dec 2006 05:48:18 -0000 1.4.2.14.2.4
@@ -70,6 +70,19 @@
my $itemtype = &MARCfind_frameworkcode($dbh,$bibid);
my $tagslib = &MARCgettagslib($dbh,0,$itemtype);
+my @items = &ItemInfo(undef, $biblionumber,
'opac');
+
+my $norequests = 1;
+foreach my $itm (@items) {
+ $norequests = 0 unless (($itm->{'wthdrawn'}) || ($itm->{'itemlost'}) ||
($itm->{'notforloan'} > 0)|| ($itm->{'itemnotforloan'} > 0)
||(!$itm->{'itemnumber'}));
+ $itm->{$itm->{'publictype'}} = 1;
+}
+
+
+
+
+
+
my $record =MARCgetbiblio($dbh,$bibid);
# open template
my ($template, $loggedinuser, $cookie)
@@ -80,6 +93,7 @@
debug => 1,
});
+$template->param(norequests => $norequests);
# load the languages
my @languages_options = displayLanguages($query);
my $languages_count = @languages_options;
@@ -221,6 +235,10 @@
push(@header_value_loop, \%header_value);
}
+if(C4::Context->preference("ISBD")) {
+ $template->param(ISBD => 1);
+}
+
$template->param(item_loop => address@hidden,
item_header_loop =>
address@hidden,
biblionumber => $biblionumber,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] koha/opac opac-MARCdetail.pl [dev_week],
Joshua Ferraro <=