]> git.evergreen-ils.org Git - Evergreen.git/commit
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>
Thu, 10 Oct 2013 21:11:07 +0000 (17:11 -0400)
commitd1f553f184426655470142447d2cf48812565e1e
treefc530804e072e00adbba890a62fda0ecc6751b25
parent114d433a5cfdb72596cc749f73167363778721d5
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