OAI-PMH additional identifier

I’m using the module OAI-PMH Repository version 3.4.10 to provide OAI-PMH access to our collections.

In the Configuration there is an option ‘Add identifier for global repository’ (and a separate one for sites). Our Collection has unique identifiers in the ‘Identifier’ field and so we do not need an additional system-generated identifier to be added.

But if I set the ‘Add identifier for global repository’ to ‘None’ (same for the site version) a system identifier is still added and we end up with two ‘dc:identifier’ fields in the OAI-PMH records. (This is a problem for us, as having two identifier fields in one record is preventing another organisation from harvesting our collection).

The issue seems to be because in src/OaiPmh/Metadata/AbstractMetadata.php → singleIdentifier() the default action (which selecting ‘None’ invokes) still returns an api-based URL which is then output as an additional Identifier.

Have I misunderstood the purpose of the configuration option ‘Add identifier for global repository’ - should selecting ‘None’ mean that a system-generated identifier will not be added? Or is this a problem?

I fixed it in a commit in Daniel-KM / Omeka-S-module-OaiPmhRepository · GitLab . Is it working?

Hi Daniel

Thanks for the very quick response.

Yes - this is working for both the Global and site repositories.

Thank you