[Koha-bugs] [Bug 2596] New: restore ability to hyperlink URL fields in MARC detail dispaly

bugzilla-daemon at pippin.metavore.com bugzilla-daemon at pippin.metavore.com
Tue Sep 9 18:33:01 CEST 2008


http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2596

           Summary: restore ability to hyperlink URL fields in MARC detail
                    dispaly
           Product: Koha
           Version: HEAD
          Platform: PC
               URL: catalogue/MARCdetail.pl
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Cataloging
        AssignedTo: oleonard at myacpl.org
        ReportedBy: galen.charlton at liblime.com
         QAContact: koha-bugs at lists.koha.org


A recent patch added HTML escaping to the display of MARC subfield contents in
catalogue/MARCdetail.pl.  This is a necessary fix, but it does break the
behavior of making known URL subfields (e.g., the 856$u in MARC21) clickable.

This was done via the following code:

                if ( $tagslib->{ $fields[$x_i]->tag() }->{ $subf[$i][0] }
                    ->{isurl} )
                {
                    $subfield_data{marc_value} =
                      "<a href=\"$subf[$i][1]\">$subf[$i][1]</a>";
                }

To fix this, I suggest not trying to embed HTML tags like this, and instead
pass a "isurl" variable to the template, which can then decide to make a
clickable link.




------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the Koha-bugs mailing list