From 8810cffc0f775264381538db61d38368a0763c6a Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 21 Dec 2023 16:12:22 +0000 Subject: [PATCH] Bug 35629: Remove redundant code Signed-off-by: Lucas Gass Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer (cherry picked from commit 9149dc4d06286779670013a34e005a7c3f90f0b2) Signed-off-by: Fridolin Somers --- .../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 += "" + $patron_to_html(row, { invert_name: 1 }) + ""; - [% ELSE %] - r += $patron_to_html(row, { invert_name: 1 }); - [% END %] - r += '
'; - r += '
    '; - r += $format_address(row, { no_line_break: true, include_li: true }); - - if ( row.email ) { - r += "
  • " + _("Email: ") + "" + escape_str(row.email) + "
  • "; - } - r += '
' - - return r; - } - } [% CASE 'name' %] { "data": "me.surname:me.firstname:me.middle_name:me.othernames", -- 2.39.5