TPAC: Cleaner title display in simple and detailed views user/dbs/tpac_clean_titles
authorDan Scott <dscott@laurentian.ca>
Sun, 22 Jan 2012 21:34:31 +0000 (16:34 -0500)
committerDan Scott <dscott@laurentian.ca>
Sun, 22 Jan 2012 22:06:03 +0000 (17:06 -0500)
commit44258c64f443f8a256fdd833e3cb423c8bf11478
treeb48f9159a8a576f37ca30f970c29409a4476585f
parent56fa348c351da2e4d1a9af9903c91a4b7ab8f33b
TPAC: Cleaner title display in simple and detailed views

The TPAC uses a simple 245a display for the "simple view" in search
results, so records like the concerto.sql "Violin concerto no. 3 in G,
K. 216 ;" display with a trailing semicolon that is rather
disconcerting.

Similarly, the subfields in the extended title as displayed in the
record detail view was simply concatenating subfields together. This
resulted in titles like:

Violin concerto no. 3 in G, K. 216 ;Sinfonia ...

rather than:

Violin concerto no. 3 in G, K. 216 ; Sinfonia ...

This commit strips trailing punctuation that suggests a continuation
(:;/) from the brief title and joins the subfields with a space for the
extended title.

Also, enable the detailed view in search results to display the complete
title.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/opac/parts/misc_util.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2