On Mon, Jun 7, 2010 at 9:12 PM, Galen Charlton <[email protected]> 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:datafie...@tag='245']/marc:subfie...@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:datafie...@tag='245' or (@tag='880' and
starts-with(./marc:subfie...@code='6']/text(),
'245'))]/marc:subfie...@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:  [email protected]
 | web:  http://www.esilibrary.com

Reply via email to