Hey, Thomas - friend and fellow night owl.  This solution is great!!

This just goes to show that sometimes it IS better to go to bed and get some 
sleep than to keep struggling in the wrong direction.

I was so focused on trying to approach it the way that I would with an XSLT 
stylesheet - sequentially/iteratively - that I hadn't thought to try reading 
all at once it into an array.

Thanks a million!!

Stephen

________________________________________
From: Code for Libraries [CODE4LIB@LISTSERV.ND.EDU] on behalf of Thomas Berger 
[t...@gymel.com]
Sent: Thursday, August 11, 2011 3:02 AM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: Re: [CODE4LIB] Net::OAI::Harvester

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Stephen,


> Does anyone know a way in which Net::OAI::Harvester can be used with oai_dc
> records in a way where multiple instances of a tag can be captured and then
> concatenated with the first one.

It should work to extract the tag in array context:

my $dc = $r->metadata();

@their_identifiers = $dc->identifier();

Further concatenation would be left to the application.


> That being said, I do have one other question: Is there a way within the
> Net::OAI::Harvester to output the actual metadata structure that's being 
> harvested?

There is no mandatory method for any metadata handlers within the
context of Net::OAI::Harvester to provide this.

And for the default OAI_DC handler: It provides the asString method
which at least shows the complete content.

hope this helps
Thomas Berger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iJwEAQECAAYFAk5DfooACgkQYhMlmJ6W47NKfQP+M448CtRS+FyWHvsNY3efPaHk
Ywl8yNJ/NlC0cjyHfjgaJpWB3qPM++Fn2BjnIVcXs9LeHmyc+gVB4BuYBuh6qlBg
0e7FDgA4YftPZz35vIQUjFrNuEkZfImKOTEf6NzlW7q30kTxaDTxt7xndAI+7bAJ
e0436AcRTyJIAI2uUv0=
=f45u
-----END PGP SIGNATURE-----

Reply via email to