Bugzilla – Attachment 33907 Details for
Bug 13334
Add a warning when a course reserve is checked in
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Add a warning during the return of a document that was reserved to a course
Add-a-warning-during-the-return-of-a-document-that.patch (text/plain), 2.22 KB, created by
simith.doliveira
on 2014-11-25 14:26:21 UTC
(
hide
)
Description:
Add a warning during the return of a document that was reserved to a course
Filename:
MIME Type:
Creator:
simith.doliveira
Created:
2014-11-25 14:26:21 UTC
Size:
2.22 KB
patch
obsolete
>From b04b56acebf316c6750d4528ca15dab3a76a596b Mon Sep 17 00:00:00 2001 >From: simith <simith@inlibro.com> >Date: Tue, 25 Nov 2014 09:20:16 -0500 >Subject: [PATCH] Add a warning during the return of a document that was > reserved to a course > >http://bugs.koha-community.org/show_bug.cgi?id=13334 >--- > circ/returns.pl | 10 ++++++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 7 +++++++ > 2 files changed, 17 insertions(+) > >diff --git a/circ/returns.pl b/circ/returns.pl >index adc2f1e..c8f6834 100755 >--- a/circ/returns.pl >+++ b/circ/returns.pl >@@ -44,6 +44,7 @@ use C4::Members; > use C4::Branch; # GetBranches GetBranchName > use C4::Koha; # FIXME : is it still useful ? > use C4::RotatingCollections; >+use C4::CourseReserves; > use Koha::DateUtils; > use Koha::Calendar; > >@@ -316,6 +317,15 @@ if ($barcode) { > ); > } > } >+ # Verify if the item is in the course reserve >+ my $course_reserves = C4::CourseReserves::GetItemCourseReservesInfo( itemnumber => $itemnumber ); >+ if($course_reserves) { >+ $template->param( >+ found => 1, >+ course_reserve => 1, >+ course_name => $course_reserves->[0]->{course}->{course_name} >+ ); >+ } > } > elsif ( !$messages->{'BadBarcode'} ) { > $input{duedate} = 0; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >index 15f45a1..f90cf5e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >@@ -263,6 +263,13 @@ $(document).ready(function () { > [% END %] > [% END %] > >+ [% IF ( course_reserve ) %] >+ <!-- the item has to be returned to the reserved items --> >+ <div class="error dialog" style="text-align:center;margin-right:0px;margin:auto;"> >+ <h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber%]">[% title or "item" |html %]</a> to the [% course_name %] class reserve.</h3> >+ </div> >+ [% END %] >+ > [% IF ( needstransfer ) %] > <!-- needstransfer --> > [% IF ( soundon ) %] >-- >1.9.1
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 Raw
Actions:
View
Attachments on
bug 13334
:
33907
|
36212
|
177312