Bugzilla – Attachment 146525 Details for
Bug 32492
Improve mark-up of OPAC messaging table to ease customization
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32492: Add IDs to the rows of the patron messaging table in OPAC and staff interface
Bug-32492-Add-IDs-to-the-rows-of-the-patron-messag.patch (text/plain), 3.09 KB, created by
Katrin Fischer
on 2023-02-10 22:42:44 UTC
(
hide
)
Description:
Bug 32492: Add IDs to the rows of the patron messaging table in OPAC and staff interface
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-02-10 22:42:44 UTC
Size:
3.09 KB
patch
obsolete
>From a41697c6e80680dbcd7f715a590faa12abe1336b Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Fri, 10 Feb 2023 23:28:40 +0100 >Subject: [PATCH] Bug 32492: Add IDs to the rows of the patron messaging table > in OPAC and staff interface > >Sometimes you want to hide notice from the messaging options >becaue the library is not using it. With this patch, we'll >have unique IDs on the <tr> to do so easily. > >To test: >* Look at the messaging preferences > * in the OPAC messaging tab > * in the staff interface details tab > * in the staff interface patron edit form >* Verify there are no classes or IDs on the rows or other elements >* Apply patch >* Verify there are nice IDs now on the table rows (tr elements) > for each message. >--- > .../prog/en/includes/messaging-preference-form.inc | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc >index b27cc00af5..6290f6f7a9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc >@@ -18,7 +18,7 @@ > [% FOREACH messaging_preference IN messaging_preferences %] > [% NEXT IF !Koha.Preference( 'ILLModule' ) && messaging_preference.message_name.match('^Ill_') %] > [% NEXT IF messaging_preference.Auto_Renewals && Koha.Preference('AutoRenewalNotices') != 'preferences' %] >- <tr> >+ <tr id="[% messaging_preference.message_name _ "_message" | lower %]"> > <td>[% IF ( messaging_preference.Item_Due ) %]<span>Item due</span> > [% ELSIF ( messaging_preference.Advance_Notice ) %]<span>Advance notice</span> > [% ELSIF ( messaging_preference.Hold_Filled ) %]<span>Hold filled</span> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt >index 598ba1f20a..f7b52b5354 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt >@@ -62,7 +62,7 @@ > [% FOREACH messaging_preference IN messaging_preferences %] > [% NEXT IF !Koha.Preference( 'ILLModule' ) && messaging_preference.message_name.match('^Ill_') %] > [% NEXT IF messaging_preference.Auto_Renewals && Koha.Preference('AutoRenewalNotices') != 'preferences' %] >- <tr> >+ <tr id="[% messaging_preference.message_name _ "_message" | lower %]"> > <td>[% IF ( messaging_preference.Item_Due ) %]<span>Item due</span> > [% ELSIF ( messaging_preference.Advance_Notice ) %]<span>Advance notice</span> > [% ELSIF ( messaging_preference.Hold_Filled ) %]<span>Hold filled</span> >-- >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 32492
:
146525
|
146580
|
146581
|
147217
|
147218
|
147220
|
147221