Bugzilla – Attachment 187198 Details for
Bug 32483
Show requested changes to personal details in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32483: Add OPAC notification on pending patron modification request
Bug-32483-Add-OPAC-notification-on-pending-patron-.patch (text/plain), 2.61 KB, created by
Lari Taskula
on 2025-10-01 14:32:05 UTC
(
hide
)
Description:
Bug 32483: Add OPAC notification on pending patron modification request
Filename:
MIME Type:
Creator:
Lari Taskula
Created:
2025-10-01 14:32:05 UTC
Size:
2.61 KB
patch
obsolete
>From beb7f8a23a51e93869ec07df8c77dbc0b2fbbedd Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >Date: Wed, 1 Oct 2025 17:28:15 +0300 >Subject: [PATCH] Bug 32483: Add OPAC notification on pending patron > modification request > >To test: >1. Apply patch >2. In OPAC, submit updates to your patron details under "Personal details" >3. Navigate back to "Personal details" >4. Observe text "Your have recently submitted updates to your personal details. >A librarian will review your updates before applying them." >5. In staff client, approve modification changes >6. Navigate back to OPAC "Personal details" >7. Observe the notification has disappeared >--- > .../opac-tmpl/bootstrap/en/modules/opac-memberentry.tt | 6 ++++++ > opac/opac-memberentry.pl | 6 ++++++ > 2 files changed, 12 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >index 3037f2efbda..471686dcae9 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >@@ -162,6 +162,12 @@ > <div class="alert alert-warning">You typed in the wrong characters in the box before submitting. Please try again.</div> > [% END %] > >+ [% IF patron_pending_modification %] >+ <div class="alert alert-success"> >+ <p>Your have recently submitted updates to your personal details. A librarian will review your updates before applying them.</p> >+ </div> >+ [% END %] >+ > [% IF has_guarantor_flag && !Koha.Preference('OPACPrivacy') && ( Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') || Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') ) %] > <div class="row"> > <div class="col"> >diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl >index 9517e8f1c55..e59604b0acc 100755 >--- a/opac/opac-memberentry.pl >+++ b/opac/opac-memberentry.pl >@@ -387,6 +387,12 @@ if ( $op eq 'cud-create' ) { > } > > $template->param( patron_attribute_classes => GeneratePatronAttributesForm($borrowernumber) ); >+ >+ my $patron_pending_modification = >+ Koha::Patron::Modifications->search( { borrowernumber => $patron->borrowernumber } )->next; >+ if ($patron_pending_modification) { >+ $template->param( patron_pending_modification => $patron_pending_modification ); >+ } > } else { > > # Render self-registration page >-- >2.34.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 Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32483
: 187198