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

Galen Charlton gmc at esilibrary.com
Tue Jun 8 07:13:41 EDT 2010


Hi,

On Jun 7, 2010, at 11:16 PM, Mike Rylander wrote:
> 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.

Indeed it could, but using the XSLT allows the XPath to be more concise without having to make the user worry about 880 fields beyond remembering to set format to 'marc21expand880'.  In the particular database that inspired this patch, where for at least the first pass the indexing is based on a direct mapping of MARC subfields to index names per the legacy ILS's definitions, there are about 180 MARC tags involved spread among 12 indexes.  The time required to create such indexes during ingest wasn't noticeably longer that that required for the MODS-based indexes.

Regards,

Galen
--
Galen Charlton
VP, Data Services
Equinox Software, Inc. / Your Library's Guide to Open Source
email:  gmc at esilibrary.com
direct: +1 352-215-7548
skype:  gmcharlt
web:    http://www.esilibrary.com/


Please come by and visit the Equinox team and learn more about 
Evergreen, Koha, and open source options
ALA Annual meeting in Washington, DC
June 24-28, 2010
booth # 1303


More information about the Open-ils-dev mailing list