[Koha-patches] [PATCH] [PASSED QA] Bug 6323 - Attach/move items -- error handling cleanup
Ian Walls
ian.walls at bywatersolutions.com
Tue May 10 21:00:37 CEST 2011
From: Liz Rea <lrea at nekls.org>
When an item move fails using Attach Item, the current behavior is to send the user back to the
MARC detail page only. I believe there should be an option to "try with a
different barcode." This patch adds that functionality.
Signed-off-by: Nicole C. Engard <nengard at bywatersolutions.com>
Signed-off-by: Ian Walls <ian.walls at bywatersolutions.com>
---
.../prog/en/modules/cataloguing/moveitem.tt | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/moveitem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/moveitem.tt
index 4956f18..80bcfc0 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/moveitem.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/moveitem.tt
@@ -14,10 +14,14 @@
[% IF ( errornoitem ) %]ERROR: Unable to get the item.[% END %]
[% IF ( errornoitemnumber ) %]ERROR: Unable to get the item number from this barcode.[% END %]
</div>
- <form action="/cgi-bin/koha/catalogue/MARCdetail.pl" method="post">
- <input type="submit" value="OK" />
- <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
- </form>
+ <form action="/cgi-bin/koha/catalogue/detail.pl" method="post">
+ <input type="submit" class="approve" value="OK" />
+ <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
+ </form>
+ <form method="link" action="/cgi-bin/koha/cataloguing/moveitem.pl?biblionumber=[% biblionumber %]"/>
+ <input type="submit" class="new" value="Try a different barcode"/>
+ <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
+ </form>
[% ELSE %]
[% IF ( success ) %]
<div class="dialog message">The item has successfully been attached to [% INCLUDE 'biblio-default-view.inc' %]<i>[% bibliotitle |html %]</i></a>.[% IF ( BiblioDefaultViewmarc ) %]
--
1.5.6.5
More information about the Koha-patches
mailing list