Skip to main content.
home | support | download

Back to List Archive

Re: indexing marcxml files

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Thu May 27 2004 - 06:07:23 GMT
Hi Eric,

On Wed, May 26, 2004 at 09:31:37PM -0700, Eric Lease Morgan wrote:
> 
> How can I index MARCXML files?
> 
> Specifically, I want to index the "title" fields of MARCXML files. They 
> exist as bits of an XML that look like this:
> 
>    <datafield tag="245" ind1="0" ind2="2">
>      <subfield code="a">A general introduction to the
>       great books and to a liberal education,</subfield>
>      <subfield code="c">by Mortimer J. Adler and Peter Wolff.
>       With a pref. by Robert M. Hutchins.</subfield>
>    </datafield>
> 
> In other words, is there some way to use the MetaNames directive in a 
> swish-e configuration file to pull out things like "tag=245" as well as 
> "code=a"?

Probably not very well.  How about using MARC::XML to parse it and then
format at something that swish-e can read.

That's probably a script that would be good in the swish-e distribution.

-- 
Bill Moseley
moseley@hank.org
Received on Wed May 26 23:07:27 2004