From ee9d20a0b2fe5a6d2cf4c8d50d04e9670cf5d9ed Mon Sep 17 00:00:00 2001 From: jeremy breuillard Date: Wed, 27 Oct 2021 12:41:36 +0000 Subject: [PATCH] Bug 29075: 'OPAC info' removed in branches.pl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In Administration › Libraries, we see content of OPAC info as escaped HTML. This content may be long and seeing HTML tags is strange. We should not show it in this table. Or maybe create a modal preview of it (not escaped HTML). To test : 1) Home > Administration > Libraries 2) In 'Address' column notice the 'OPAC info' field (if this one is filled) with visible HTML tags 3) Apply patch 4) Repeat 1) and 'OPAC info' field should be gone --- .../prog/en/modules/admin/branches.tt | 1 - .../prog/en/modules/intranet-main.tt | 41 ++++++++++++++++++- mainpage.pl | 21 ++++++++++ 3 files changed, 60 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt index 6ce5842..22e4c8f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt @@ -385,7 +385,6 @@ Libraries › Administration › Koha if ( row.fax != null ) library_info.push(_("Fax: ") + row.fax.escapeHtml()); if ( row.email != null ) library_info.push(''+row.email.escapeHtml()+''); if ( row.url != null ) library_info.push(''+row.url.escapeHtml()+''); - if ( row.opac_info != null ) library_info.push(_("OPAC Info") + ':
'+row.opac_info.escapeHtml()+'
'); if ( row.notes != null ) library_info.push(_("Notes")+': '+row.notes.escapeHtml()); return library_info.join('
'); }, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt index b97e4d4..3b5df77 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -13,6 +13,7 @@ [% INCLUDE 'header.inc' %] [% INCLUDE 'home-search.inc' %] +