]> git.evergreen-ils.org Git - working/Evergreen.git/commit
TPAC: Cleaner title display in simple and detailed views
authorDan Scott <dscott@laurentian.ca>
Sun, 22 Jan 2012 21:34:31 +0000 (16:34 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 31 Jan 2012 19:14:46 +0000 (14:14 -0500)
commitffed5ee6377841d507a7f779c85425a413278607
tree6ccb2332a4d44f797733002855c075a9f83de409
parentfb1ec50af5617f17dfa568db1f889afde11ca509
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>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/templates/opac/parts/misc_util.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2