Re: [greenstone-users] MARC records and field mappings

From Katherine Don
DateFri, 04 Aug 2006 12:57:41 +1200
Subject Re: [greenstone-users] MARC records and field mappings
In-Reply-To (C8D03A929CDD6B4A9EFA5D6A847351FD03350F63-dnzakex1-datacom-co-nz)
Hi Claire

You need to modify greenstone/perllib/plugins/MARCPlug.pm.

Look for the line

if ($line =~ m/^(d+)s*->s*(w+)$/)

and change to

if ($line =~ m/^(d+)s*->s*([w^]+)$/)

i.e. (w+) changes to ([w^]+)
This allows ^ as part of a metadata name.

Regards,
Katherine

Claire Wilson (DSL AK) wrote:
> Hi there
>
>
>
> I□m □exploding□ a file of MARC records. I□ve edited marctodc.txt to
> define the field mappings. However it appears that only the DC fields
> are accepted, and not subelements in qDC.
>
>
>
> For example:
>
> the following will work in the table
>
> 500 -> Description
>
>
>
> but this does not work
>
> 520 -> Description^abstract
>
>
>
> I guess I need to edit MARCPlug plugin to do this?
>
>
>
> Thank you for any help.
>
> Claire
>
>
>
> Claire Wilson
>
> Christchurch, NZ
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users