Bugzilla – Attachment 866 Details for
Bug 2812
In opac a user can cancel his holding
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bugfix
0001--bug-2812-fix-holds-cancel-in-OPAC.patch (text/plain), 2.32 KB, created by
Chris Cormack
on 2009-07-24 14:04:00 UTC
(
hide
)
Description:
bugfix
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2009-07-24 14:04:00 UTC
Size:
2.32 KB
patch
obsolete
>From 5df9f7e712f598eefa7711403c3fe4a25fef3f15 Mon Sep 17 00:00:00 2001 >From: Nahuel ANGELINETTI <nahuel.angelinetti@biblibre.com> >Date: Fri, 24 Jul 2009 16:01:48 +0200 >Subject: [PATCH] (bug #2812) fix holds cancel in OPAC >Content-Type: text/plain; charset="utf-8" > >This fix the user ability to cancel holds in OPAC. >At the moment, a user can cancel all his holds, but in fact, only items that are not in transfert or waiting to be checked out can be cancelled by the user. >--- > koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl | 10 +++++++--- > opac/opac-user.pl | 4 ++++ > 2 files changed, 11 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl >index 36e78e1..40e3187 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl >@@ -348,9 +348,13 @@ $.tablesorter.addParser({ > <!-- /TMPL_IF --> > </td> > <td> >- <form action="/cgi-bin/koha/opac-modrequest.pl" method="post"> >- <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" /> >- <input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form> >+ <!-- TMPL_IF NAME="cancelable" --> >+ <form action="/cgi-bin/koha/opac-modrequest.pl" method="post"> >+ <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" /> >+ <input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form> >+ <!-- TMPL_ELSE --> >+ >+ <!-- /TMPL_IF --> > </td> > > </tr> >diff --git a/opac/opac-user.pl b/opac/opac-user.pl >index 5b997c7..af03bfe 100755 >--- a/opac/opac-user.pl >+++ b/opac/opac-user.pl >@@ -241,6 +241,10 @@ foreach my $res (@reserves) { > push @waiting, $res; > $wcount++; > } >+ # can be cancelled >+ #$res->{'cancelable'} = 1 if ($res->{'wait'} && $res->{'atdestination'} && $res->{'found'} ne "1"); >+ $res->{'cancelable'} = 1 if ($res->{wait} and not $res->{found}) or (not $res->{wait} and not $res->{intransit}); >+ > } > > $template->param( WAITING => \@waiting ); >-- >1.6.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 2812
: 866