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)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 5 Jan 2015 17:45:35 +0000 (12:45 -0500)
commitc1758188abca343b5d2718a44df4c02fa6ef1fe3
tree0dc3098f21bdf1510ce12918da223dfd4e92d7c0
parentd1015d2321ea5be27c90621dacf6dfebf83da41a
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