From b329ce233bb0de9d6fa19b19de69552ba94f2a89 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 1 Apr 2008 15:58:23 -0500 Subject: [PATCH] Changes to allow librarian to turn off item-level holds in the OPAC. Requires the addition of OPACItemHolds system pref ("Allow OPAC users to place hold on specific items. If OFF, users can only request next available copy." Type: YesNo). Also modifying redirect to show Holds tab in opac-user.pl. Signed-off-by: Joshua Ferraro --- .../prog/en/modules/opac-reserve.tmpl | 26 ++++++++++++------- opac/opac-reserve.pl | 2 +- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl index b3f67144fb..ea62e2457b 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl @@ -64,6 +64,14 @@ ">

Place a hold on ">, by

+ + + +

Item type:

+ +

Publication year:

+ +
  1. For: () @@ -84,10 +92,11 @@
  2. + -
  3. +
  4. -
  5. +
@@ -96,17 +105,14 @@

- - - - -

Item type:

- -

Publication year:

+ + + + @@ -181,7 +187,7 @@
Place a hold on a specific copy
  Hold Item Type
- + diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index e5226c148d..d89e60abe0 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -243,7 +243,7 @@ if ( $query->param('place_reserve') ) { } else { AddReserve($branch,$borrowernumber,$biblionumber,'a',\@realbi,$rank,$notes,$bibdata->{'title'},$checkitem, $found); } - print $query->redirect("/cgi-bin/koha/opac-user.pl"); + print $query->redirect("/cgi-bin/koha/opac-user.pl#opac-user-holds"); } else { -- 2.39.5