[OPEN-ILS-DEV] ***SPAM*** [PATCH] add stylesheet to expand MARC21 880 fields

Mike Rylander mrylander at gmail.com
Mon Jun 7 23:16:30 EDT 2010


On Mon, Jun 7, 2010 at 9:12 PM, Galen Charlton <gmc at esilibrary.com> wrote:
> Hi,
>
> The attached patch adds a new XSL transform for indexing purpose that converts MARC21 880 fields (which are used for alternate graphic representations, i.e., vernacular representations of foreign language strings) to the base tags.
>
> For example, if a MARC record for a Chinese book has
>
> 245.00 $6 880-01 $a Ba shi san nian duan pian xiao shuo xuan
> 880.00 $6 245-01/$1 $a八十三年短篇小說選
>
> this stylesheet will transform it to the equivalent of
>
> 245.00 $6 880-01 $a Ba shi san nian duan pian xiao shuo xuan
> 245.00 $6 245-01/$1 $a八十三年短篇小說選
>
> This allows an indexing XPath like //marc:datafield[@tag='245']/marc:subfield[@code='a'] to bring in both the vernacular and transliterated versions of the 245$a.
>

ISTM the same could be achieved without the cost of an XSLT with

//marc:datafield[@tag='245' or (@tag='880' and
starts-with(./marc:subfield[@code='6']/text(),
'245'))]/marc:subfield[@code='a']

I could certainly be missing something, though.

Thoughts?

-- 
Mike Rylander
 | VP, Research and Design
 | Equinox Software, Inc. / The Evergreen Experts
 | phone:  1-877-OPEN-ILS (673-6457)
 | email:  miker at esilibrary.com
 | web:  http://www.esilibrary.com


More information about the Open-ils-dev mailing list