From 61d8942a2039984c5fb3e2be6cd48c187c7f2097 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Sun, 23 Dec 2007 23:49:42 -0500 Subject: [PATCH] show itemtypes at level specified in syspref for holds Signed-off-by: Joshua Ferraro --- C4/Koha.pm | 1 + .../prog/en/modules/reserve/request.tmpl | 29 +++++++++++++------ reserve/request.pl | 3 +- 3 files changed, 23 insertions(+), 10 deletions(-) diff --git a/C4/Koha.pm b/C4/Koha.pm index 1724e6d72b..52146e5834 100644 --- a/C4/Koha.pm +++ b/C4/Koha.pm @@ -264,6 +264,7 @@ sub get_itemtypeinfos_of { my $query = ' SELECT itemtype, description, + imageurl, notforloan FROM itemtypes WHERE itemtype IN (' . join( ',', map( { "'" . $_ . "'" } @itemtypes ) ) . ') diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl index 2498016fbd..7428d4fdb9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl @@ -35,7 +35,7 @@ if (count_reserv == "0"){ msg += ("- Please select an item to place a hold\n"); } if (count_reserv >= "2"){ - msg += ("- You can select only one type of document\n by item, or by the first item returned\n"); + msg += ("- You may only place a hold on one item at a time\n"); } if (alreadyreserved > "0"){ @@ -178,30 +178,41 @@ if (alreadyreserved > "0"){ - + +
  • Item type:
  • +
  • Publication year:
  • + + + - + - + "> + + + + diff --git a/reserve/request.pl b/reserve/request.pl index ac82570c75..96023c2b11 100755 --- a/reserve/request.pl +++ b/reserve/request.pl @@ -249,7 +249,8 @@ foreach my $biblioitemnumber (@biblioitemnumbers) { my $itemnumber ( @{ $itemnumbers_of_biblioitem{$biblioitemnumber} } ) { my $item = $iteminfos_of->{$itemnumber}; - + $item->{itypename} = $itemtypeinfos_of->{ $item->{itype} }{description}; + $item->{imageurl} = getitemtypeimagesrc() . "/".$itemtypeinfos_of->{ $item->{itype} }{imageurl}; $item->{homebranchname} = $branchinfos_of->{ $item->{homebranch} }{branchname}; -- 2.39.5
    Item type Barcode Home LibraryHolding LibraryLast Location Call number InformationCancel a ReserveCancel Hold
    + " alt="" title=""/> + - + - + @@ -223,7 +234,7 @@ if (alreadyreserved > "0"){ - Cant' be selected (lost or long overdue) + Item unavailable (lost or missing) @@ -241,11 +252,11 @@ if (alreadyreserved > "0"){ Can't be cancelled when item is on transfer Item on hold for - , expected at . &CancelBorrowerNumber=&CancelItemnumber=" onclick="if (window.confirm('You will delete a reserve, are you sure ?')) {return true;} else {return false;}">Cancel hold + , expected at . &CancelBorrowerNumber=&CancelItemnumber=" onclick="if (window.confirm('Are you sure you want to delete this hold?')) {return true;} else {return false;}">Cancel hold - No holds + Not on hold