EUDAT-B2FIND / md-mapping

Mapping of metadata from community specific schemata into the B2FIND internal schema
GNU General Public License v3.0
2 stars 1 forks source link

XPath expression for searching OAI identifier #15

Closed JohnMrziglod closed 10 years ago

JohnMrziglod commented 10 years ago

We need the XPath expression for the OAI identifier in the XML files. How it didn't work:

<field name="OAI-PMH identifier">
      <xpath>//header/identifier/text()</xpath>
</field>

What is wrong?

larilampen commented 10 years ago

Two separate issues:

As long as the header is available, it works.

hwidmann commented 10 years ago

Hi Lari,

Am 17/04/2014 11:42, schrieb Lari Lampen:

Two separate issues:

  • The OAI-PMH envelope of the record, containing the header, must be included in the XML file (and not only the metadata content inside it, like in the oaitestdata directory).

yes, you are right. Meanwhile we use an OAI python implementation (Sickle), that writes as well the header in the XML file.

Yep :-), know it seems to work as we want. Thanks, Heinrich

As long as the header is available, it works.

— Reply to this email directly or view it on GitHub https://github.com/B2FIND/md-mapping/issues/15#issuecomment-40697621.

-------------------------------------------------------------------- Heinrich Widmann \ Deutsches Klimarechenzentrum GmbH Phone: +49 40 460094 282 \ Abteilung Datenmanagement FAX: +49 40 460094 270 \ Bundesstr. 45a Email: widmann@dkrz.de \ D-20146 Hamburg http://www.dkrz.de \ Germany --------------------------------------------------------------------