[Koha-bugs] [Bug 25428] New: Escaped HTML shows in authority detail view when subfield is a link

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 8 18:12:08 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25428

            Bug ID: 25428
           Summary: Escaped HTML shows in authority detail view when
                    subfield is a link
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: normal
          Priority: P5 - low
         Component: MARC Authority data support
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: oleonard at myacpl.org
        QA Contact: testopia at bugs.koha-community.org

Created attachment 104604
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104604&action=edit
Screenshot showing the problem

In authority records there is the option to designate a subfield as a URL (like
we do for 856$u in the default MARC framework). When you view the details of
such a record the URL is output to the screen as HTML markup. This is because
the script is sending hard-coded HTML to the template and the template outputs
is as escaped.

Rather than use the $raw filter to make the link work, we should remove the
script-generated HTML and do it in the template.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list