Tweak MODS32 stylesheet for titles
authorDan Wells <dbw2@calvin.edu>
Mon, 7 Oct 2013 21:22:42 +0000 (17:22 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 9 Oct 2013 13:45:17 +0000 (09:45 -0400)
commitc326b13c5d2ac11905b16431f7413348a3d9e6c8
tree35d8466133be8ba0d612991be5ad1b5544d6f8d4
parentf57d48d3a8a52e91849d3fff99e41d4a7c3e5cc8
Tweak MODS32 stylesheet for titles

<titleNonfiling> was added to help certain search cases, but trailing
punctuation makes it unsuitable for display.  <titleInfo>, on the other
hand, chops all trailing punctuation out, which helps the trailing case
but actually makes display of subtitle information worse.  Let's split
the difference and simplify at the same time by building the whole
title, then trimming extra punctuation.

While the above was done to help in browse display, it turns out that
<titleNonfiling> is not able to generate correct browse data.  We want
the display as corrected above, but we also need to preserve the
<nonSort> tag for proper browse sorting.

Rather than complicate the metabib logic, we'll add another special-
purpose field to the MODS called <titleBrowse>. This field is a hybrid
of <titleInfo> and <titleNonfiling>, which will give us a preformatted
string (for preserving needed punctuation) but also keep the <nonSort>
stuff in a separate field (for sorting).

NOTE: We are purposely ignoring similar changes to MODS33, pending
a discussion of how best to handle EG specific MODS changes overall.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/sql/Pg/953.data.MODS32-xsl.sql
Open-ILS/xsl/MARC21slim2MODS32.xsl