Bugzilla – Attachment 160209 Details for
Bug 35629
Redundant code in includes/patron-search.inc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35629: Remove redundant code
Bug-35629-Remove-redundant-code.patch (text/plain), 2.63 KB, created by
Pedro Amorim
on 2023-12-21 16:12:28 UTC
(
hide
)
Description:
Bug 35629: Remove redundant code
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-12-21 16:12:28 UTC
Size:
2.63 KB
patch
obsolete
>From b621b1dfe6aa5b812e7330aa70f2709bf6deee25 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Thu, 21 Dec 2023 16:12:22 +0000 >Subject: [PATCH] Bug 35629: Remove redundant code > >--- > .../prog/en/includes/patron-search.inc | 25 ------------------- > 1 file changed, 25 deletions(-) > >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 2d848e3223..4a9b203782 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -489,31 +489,6 @@ > return r; > } > } >- [% CASE 'name-address' %] >- { >- "data": "me.surname:me.firstname:me.othernames:me.street_number:me.address:me.address2:me.city:me.state:me.postal_code:me.country", >- "searchable": true, >- "orderable": true, >- "render": function( data, type, row, meta ) { >- let patron_id = encodeURIComponent(row.patron_id); >- let r = ''; >- [% IF ! open_on_row_click %] >- r += "<a href=\"/cgi-bin/koha/members/moremember.pl?borrowernumber=" + patron_id + "\" class=\"patron_name\" data-borrowernumber=\"" + patron_id + "\" style=\"white-space:nowrap\">" + $patron_to_html(row, { invert_name: 1 }) + "</a>"; >- [% ELSE %] >- r += $patron_to_html(row, { invert_name: 1 }); >- [% END %] >- r += '<br/>'; >- r += '<div class="address"><ul>'; >- r += $format_address(row, { no_line_break: true, include_li: true }); >- >- if ( row.email ) { >- r += "<li>" + _("Email: ") + "<a href='mailto:" + encodeURIComponent(row.email) + "'>" + escape_str(row.email) + "</a></li>"; >- } >- r += '</ul></div>' >- >- return r; >- } >- } > [% CASE 'name' %] > { > "data": "me.surname:me.firstname:me.middle_name:me.othernames", >-- >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 35629
:
160209
|
160300
|
160351