Bugzilla – Attachment 177843 Details for
Bug 27339
Display OPAC notes and OPAC messages on check-in
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27339: Display opac notes and opac messages on check-in
Bug-27339-Display-opac-notes-and-opac-messages-on-.patch (text/plain), 3.25 KB, created by
Baptiste Wojtkowski (bwoj)
on 2025-02-12 11:32:06 UTC
(
hide
)
Description:
Bug 27339: Display opac notes and opac messages on check-in
Filename:
MIME Type:
Creator:
Baptiste Wojtkowski (bwoj)
Created:
2025-02-12 11:32:06 UTC
Size:
3.25 KB
patch
obsolete
>From 51405bd9213177491b1921b74bfb355621f7afa0 Mon Sep 17 00:00:00 2001 >From: Matthias Meusburger <matthias.meusburger@biblibre.com> >Date: Tue, 5 Jan 2021 11:10:38 +0100 >Subject: [PATCH] Bug 27339: Display opac notes and opac messages on check-in > > . >Adds Opac note (borrowers.opacnote) and Opac messages (messages table) during check-in. > >Test plan: >1- Add an Opac note and one or several Opac messages to a patron. >2- Checkout and check-in an item for this patron. >3- Check that Opac note and Opac message(s) are not displayed on check-in. >4- Apply the patch. >5- Checkout and check-in an item for this patron. >6- Check that Opac note and Opac message(s) are displayed on check-in. > >Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se> >--- > circ/returns.pl | 16 +++++++++++++--- > .../prog/en/modules/circ/returns.tt | 8 ++++++++ > 2 files changed, 21 insertions(+), 3 deletions(-) > >diff --git a/circ/returns.pl b/circ/returns.pl >index 2f7d5d03..02d88d7a 100755 >--- a/circ/returns.pl >+++ b/circ/returns.pl >@@ -52,6 +52,7 @@ use Koha::Holds; > use Koha::Item::Transfers; > use Koha::Items; > use Koha::Patrons; >+use Koha::Patron::Messages; > use Koha::Recalls; > > my $query = CGI->new; >@@ -819,9 +820,18 @@ foreach ( sort { $a <=> $b } keys %returneditems ) { > } else { > $ri{return_overdue} = 1 if ( DateTime->compare( $duedate, $dropboxdate ) == -1 ); > } >- $ri{patron} = $patron, >- $ri{borissuescount} = $patron->checkouts->count; >- } else { >+ my $patron_messages = Koha::Patron::Messages->search( >+ { >+ borrowernumber => $riborrowernumber{$_}, >+ message_type => 'B', >+ }); >+ >+ >+ $ri{patron} = $patron; >+ $ri{messages} = $patron_messages; >+ $ri{borissuescount} = $patron->checkouts->count; >+ } >+ else { > $ri{borrowernumber} = $riborrowernumber{$_}; > } > >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 39c75007..70f52c22 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >@@ -1397,6 +1397,14 @@ > [% IF ( riloo.patron.borrowernotes ) %] > <p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | $raw | html_line_break %]</span></p> > [% END %] >+ [% IF ( riloo.patron.opacnote ) %] >+ <p><span class="circ-hlt opac-note">[% riloo.patron.opacnote | html %]</span></p> >+ [% END %] >+ [% IF ( riloo.messages.count ) %] >+ [% FOREACH message IN riloo.messages %] >+ <p><span class="circ-hlt patron-opac-messages">[% message.message | html %]</span></p> >+ [% END %] >+ [% END %] > [% IF ( riloo.itemnote ) %] > <p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p> > [% END %] >-- >2.30.2
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 27339
:
114856
|
116144
|
170069
|
170070
|
170071
|
176012
|
176072
|
176094
|
176095
| 177843 |
177844
|
179079