Bugzilla – Attachment 169093 Details for
Bug 37368
Patron searches break when surname and firstname are set to NULL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37368: Add 'library' to patron search embed
Bug-37368-Add-library-to-patron-search-embed.patch (text/plain), 2.07 KB, created by
Martin Renvoize (ashimema)
on 2024-07-17 15:45:11 UTC
(
hide
)
Description:
Bug 37368: Add 'library' to patron search embed
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-07-17 15:45:11 UTC
Size:
2.07 KB
patch
obsolete
>From 9d54f604de41628182a4cfbf7bbdfb7ffd610a06 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 17 Jul 2024 16:43:17 +0100 >Subject: [PATCH] Bug 37368: Add 'library' to patron search embed > >This patch adds the missing library embed from the patron search forms. >This embed is required for the case where a patron is missing both first >and last name or is from a different library group and thus falls into >the 'Patron from library X' block. > >I also update the 'Patron from library X' to 'Patron from X' as I feel >it reads more clearly. >--- > koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc >index ae27dd09bab..69b472d97be 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format.inc >@@ -37,7 +37,7 @@ > } > > if ( name.replace(' ', '').length == 0 ) { >- return _("A patron from library %s".format(patron.library.name)); >+ return _("A patron from %s".format(patron.library.name)); > } > > if ( config && config.hide_patron_name ) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >index a0d53600e36..d238a31cb3d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -381,7 +381,7 @@ > [% default_sort_column = "name" %] > [% END %] > [% SET order_column_index = 0 %] >- [% SET embed = ['extended_attributes'] %] >+ [% SET embed = ['extended_attributes','library'] %] > patrons_table = $("#[% table_id | html %]").kohaTable({ > "ajax": { > "url": patron_search_url, >-- >2.45.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 37368
:
169030
|
169032
|
169093
|
169095
|
169096
|
169106