Bugzilla – Attachment 83736 Details for
Bug 22058
OPAC holdings table shows instead of blank
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22058: Fix display of empty table cells in OPAC MARC view holdings
Bug-22058-Fix-display-of-empty-table-cells-in-OPAC.patch (text/plain), 1.77 KB, created by
Tomás Cohen Arazi
on 2019-01-09 10:39:44 UTC
(
hide
)
Description:
Bug 22058: Fix display of empty table cells in OPAC MARC view holdings
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2019-01-09 10:39:44 UTC
Size:
1.77 KB
patch
obsolete
>From fdf855229274d47347d7c0192431e0e87e23ff21 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Wed, 2 Jan 2019 06:23:57 +0000 >Subject: [PATCH] Bug 22058: Fix display of empty table cells in OPAC MARC view > holdings > >I compared the template logic to the MARC detail page in staff. >We use $raw there instead of html, which will also make notes and other >fields with HTML in them display correctly. I am proposing to use the >$raw filter in OPAC as well. > >To test: >- Go to the OPAC >- Search for a record with items >- Switch to the MARC view >- Verify empty cells show (html entity for space) >- Apply patch >- Repeat test >- Verify empty table cells now show as empty > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt >index 3ffb885d84..ddb486f70f 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-MARCdetail.tt >@@ -148,7 +148,7 @@ > [% FOREACH item IN item_loop %] > <tr> > [% FOREACH sf_code IN item_subfield_codes %] >- <td>[% item.$sf_code | html %]</td> >+ <td>[% item.$sf_code | $raw %]</td> > [% END %] > </tr> > [% END %] >-- >2.20.1
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 22058
:
83573
|
83609
|
83621
| 83736