Re: RE: [Koha-devel] Building zebradb-regarding <collection>

View: New views
2 Messages — Rating Filter:   Alert me  

Re: RE: [Koha-devel] Building zebradb-regarding <collection>

by Tümer Garip :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Paul,
You wrote:
>>could you detail how you "remove the <collection> wrapper" ? I
understand what it could mean, but I don't know >>>>what to do to give
it a try.

Well currently we had to modify the MARC::File::XML so that the
XMLheader says <record blah blah> and footer says </record> and
commented "push $xml ,<record>" lines.

I know this is not a proper way of doing things but it works for us
since currently we use single XML records for ZOOM . But I think
somebody should get this XML.pm retouched so that we can have
<collection><record></record></collection> format as an option in case
indedxdata decides to accept multiple XML records wrapped in
<collection> later on.

Well to tell the truth I like Zebra and can give them 100% for the speed
of their database but we are having to experiment with so many things
with vey little documentation that its becoming tiring.

We have no funding on this but our hearts in KOHA and hope we are not
left heart broken.

Regards

Tumer


_______________________________________________
Koha-zebra mailing list
Koha-zebra@...
http://lists.nongnu.org/mailman/listinfo/koha-zebra

XML.pm (10K) Download Attachment

Re: RE: [Koha-devel] Building zebradb-regarding <collection>

by Mike Rylander :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In the process of (hopefully) fixing MARC::File::XML so it can deal
with UNIMARC records, I have added a new method that does, I think,
exactly what you want.  The current CVS version, which requires the
newest version of MARC::Charset from CPAN and the CVS version of
MARC::Record, adds a method to MARC::Record objects called
as_xml_record().  This method works exactly like as_xml(), but does
not produce a <collection> wrapper.

First install the newest MARC::Charset from CPAN.  Here are the
instructions for grabbing the CVS copy of MARC::Record an
MARC::File::XML:

  cvs -d:pserver:anonymous@...:/cvsroot/marcpm login
  cvs -z3 -d:pserver:anonymous@...:/cvsroot/marcpm co
-P marc-record
  cvs -z3 -d:pserver:anonymous@...:/cvsroot/marcpm co
-P marc-xml

  cd marc-record
  perl Makefile.PL
 make
 make test
 make install

  cd ../marc-xml
  perl Makefile.PL
 make
 make test
 make install


On 3/16/06, Tümer Garip <tgarip@...> wrote:

> Hi Paul,
> You wrote:
> >>could you detail how you "remove the <collection> wrapper" ? I
> understand what it could mean, but I don't know >>>>what to do to give
> it a try.
>
> Well currently we had to modify the MARC::File::XML so that the
> XMLheader says <record blah blah> and footer says </record> and
> commented "push $xml ,<record>" lines.
>
> I know this is not a proper way of doing things but it works for us
> since currently we use single XML records for ZOOM . But I think
> somebody should get this XML.pm retouched so that we can have
> <collection><record></record></collection> format as an option in case
> indedxdata decides to accept multiple XML records wrapped in
> <collection> later on.
>
> Well to tell the truth I like Zebra and can give them 100% for the speed
> of their database but we are having to experiment with so many things
> with vey little documentation that its becoming tiring.
>
> We have no funding on this but our hearts in KOHA and hope we are not
> left heart broken.
>
> Regards
>
> Tumer
>
>
> _______________________________________________
> Koha-zebra mailing list
> Koha-zebra@...
> http://lists.nongnu.org/mailman/listinfo/koha-zebra
>
>
>
>


--
Mike Rylander
mrylander@...
GPLS -- PINES Development
Database Developer
http://open-ils.org


_______________________________________________
Koha-zebra mailing list
Koha-zebra@...
http://lists.nongnu.org/mailman/listinfo/koha-zebra