From 5c2ba655414850d1cd25d4fcf3141f19f65186d1 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Fri, 25 Jul 2008 11:32:06 -0500 Subject: [PATCH] This patch fixes the OPAC view and holdability of items: 1. restores a check to itemtype.notforloan to set the norequests flag 2. changes improper boolean OR with AND for checking conditions of setting norequests 3. displays 'Not for loan' for item-level itypes when the itemtype is set to notforloan 4. restores items.notforloan values < 0 allowing holds (ordered items for instance) We still need a notforhold flag set at the itemtype, and items level --- C4/Items.pm | 1 + .../prog/en/modules/opac-detail.tmpl | 226 +++++++++--------- opac/opac-detail.pl | 10 +- 3 files changed, 121 insertions(+), 116 deletions(-) diff --git a/C4/Items.pm b/C4/Items.pm index 74196e959e..d77c654989 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1219,6 +1219,7 @@ sub GetItemsInfo { my ($lib) = $sthnflstatus->fetchrow; $data->{notforloanvalue} = $lib; } + $data->{itypenotforloan} = $data->{notforloan} if (C4::Context->preference('item-level_itypes')); # my stack procedures my $stackstatus = $dbh->prepare( diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index 8a24fc0b11..26a07640cf 100755 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -3,34 +3,34 @@