From 56f230f4a30bb2d3196674b7ce416f70e6c27fec Mon Sep 17 00:00:00 2001 From: Katrin Fischer 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 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. Signed-off-by: Owen Leonard --- .../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 b27cc00af5f..6290f6f7a91 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' %] - + [% IF ( messaging_preference.Item_Due ) %]Item due [% ELSIF ( messaging_preference.Advance_Notice ) %]Advance notice [% ELSIF ( messaging_preference.Hold_Filled ) %]Hold filled 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 598ba1f20a1..f7b52b53540 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' %] - + [% IF ( messaging_preference.Item_Due ) %]Item due [% ELSIF ( messaging_preference.Advance_Notice ) %]Advance notice [% ELSIF ( messaging_preference.Hold_Filled ) %]Hold filled -- 2.25.1