Bugzilla – Attachment 8931 Details for
Bug 7758
Koha allowing LOST items to check out without alert
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7758 - Koha allowing LOST items to check out without alert
Bug-7758---Koha-allowing-LOST-items-to-check-out-w.patch (text/plain), 2.29 KB, created by
Liz Rea
on 2012-04-05 16:43:42 UTC
(
hide
)
Description:
Bug 7758 - Koha allowing LOST items to check out without alert
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2012-04-05 16:43:42 UTC
Size:
2.29 KB
patch
obsolete
>From ee3ce75f47cbc2c9f10b9157e31433540f531149 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 5 Apr 2012 11:16:47 -0400 >Subject: [PATCH] Bug 7758 - Koha allowing LOST items to check out without alert >Content-Type: text/plain; charset="utf-8" > >Adds a confirmation alert when issuing an item that has >been marked as lost. > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> >passes tests, works as advertiesd > >Tested: >- checking out an item that is marked lost performs all usual lost operations >- checking out an item that is marked lost prompts for confirmation >--- > C4/Circulation.pm | 5 ++++- > .../prog/en/modules/circ/circulation.tt | 5 +++++ > 2 files changed, 9 insertions(+), 1 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 9c43f36..6ca860d 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -36,7 +36,7 @@ use C4::Message; > use C4::Debug; > use C4::Branch; # GetBranches > use C4::Log; # logaction >- >+use C4::Koha qw(GetAuthorisedValueByCode); > use Data::Dumper; > use Koha::DateUtils; > use Koha::Calendar; >@@ -848,6 +848,9 @@ sub CanBookBeIssued { > { > $issuingimpossible{RESTRICTED} = 1; > } >+ if ( $item->{'itemlost'} ) { >+ $needsconfirmation{ITEM_LOST} = GetAuthorisedValueByCode( 'LOST', $item->{'itemlost'} ); >+ } > if ( C4::Context->preference("IndependantBranches") ) { > my $userenv = C4::Context->userenv; > if ( ($userenv) && ( $userenv->{flags} % 2 != 1 ) ) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 57c16ee..fbe3b02 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -275,9 +275,14 @@ function refocus(calendar) { > [% IF ( NOT_FOR_LOAN_FORCING ) %] > <li>Item is normally not for loan. Check out anyway?</li> > [% END %] >+ > [% IF ( USERBLOCKEDOVERDUE ) %] > <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s). Check out anyway?</li> > [% END %] >+ >+[% IF ( ITEM_LOST ) %] >+ <li>This item has been lost with a status of "[% ITEM_LOST %]". Check out anyway?</li> >+[% END %] > </ul> > > <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off"> >-- >1.7.2.5
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 7758
:
8927
|
8931
|
9082
|
9087
|
9116
|
9625