From: Galen Charlton Date: Mon, 14 Jun 2021 15:34:51 +0000 (-0400) Subject: LP#1930933: fix issue with over-escaping in search results title attributes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fdd6ece0082069d59c7851af78ec5e91e42b46c0;p=evergreen%2Fpines.git LP#1930933: fix issue with over-escaping in search results title attributes This patch fixes an issue where a record with a title containing the word "hidden" can have its title, ironically enough, not show up on public catalog search results. To test ------- [1] Create an OPAC-visible record whose 245 is something like: =245 04$aThe hidden one [2] Search for the record in both the TPAC and Bootstrap skin. Note that the title isn't displayed. [3] Apply the patch and repeat step 2. This time, the full title should be displayed. [4] Verify that the OPAC does not display an alert box. Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson Signed-off-by: Jeff Davis --- diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/result/table.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/result/table.tt2 index e0af980386..48b0f12f70 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/result/table.tt2 @@ -104,7 +104,7 @@ [% END %] + [% html_text_attr('title', l('Display record details for "[_1]"', attrs.title)) %]> [% IF attrs.hl.title; attrs.hl.title; ELSE; attrs.title | html; END %] @@ -379,7 +379,7 @@ [% l('Place Hold') %] @@ -393,14 +393,14 @@ [% l('Check Out E-Item') %] [% l('Place Hold on E-Item') %] [%- END -%] @@ -444,7 +444,7 @@ [% ident = attrs.isbn_clean || attrs.upc %] diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index 25e4559eda..00577f5562 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -132,7 +132,7 @@ [% END %] + [% html_text_attr('title', l('Display record details for "[_1]"', attrs.title)) %]> [% IF attrs.hl.title; attrs.hl.title; ELSE; attrs.title | html; END %] [% IF rec.mr_constituent_count.defined && rec.mr_constituent_count > 1 %] @@ -463,7 +463,7 @@ END;
[% l('Place Hold') %] @@ -475,7 +475,7 @@ END; [% l('Check Out E-Item') %] @@ -484,7 +484,7 @@ END; [% l('Place Hold on E-Item') %] @@ -525,7 +525,7 @@ END; [% ident = attrs.isbn_clean || attrs.upc %]