]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1401286: Cleaner display of URIs in search results
authorDan Scott <dscott@laurentian.ca>
Wed, 10 Dec 2014 22:05:38 +0000 (17:05 -0500)
committerBen Shum <bshum@biblio.org>
Tue, 16 Dec 2014 19:51:04 +0000 (14:51 -0500)
commitd04d181e0db2181866de3b5d30e4c21cf7f3aaa1
treedb693de9dbffd4a6b89dc4da261f51e5d142d27f
parent8ee660ea1964c774b82157c717efb4f884f666fe
LP#1401286: Cleaner display of URIs in search results

Right now a record with an 856 like:

856 40 $zAvailable online $uhttp://publications.gc.ca $9LUSYS

shows up in search results with an HTML display like:

<a href="http://publications.gc.ca">http://publications.gc.ca</a> - Available online

rather than the much cleaner:

<a href="http://publications.gc.ca">Available online</a>

My simplistic approach is to check to see if the link text == the href,
and if so, and we have a note to display, to use the note as the text of
the link instead.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/parts/misc_util.tt2