Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
cgi
 
 
 
 
 
 
 
 
 
 

OAI-PMH update

a pull request has been submitted to bring this change into the core EPrints: https://github.com/eprints/eprints/pull/324

Installation

Install the package from the Bazaar http://bazaar.eprints.org/411/ 😎 - or copy:

  • lib/cfg.d/zz_oaipmh_patch_core_EPrints_OpenArchives.pl to ~/lib/cfg.d/
  • cgi/oai2 to ~/archives/ARCHIVEID/cgi/oai2

WARNING:

If manually installing, do not copy cgi/oai2 without first copying zz_oaipmh_patch_core_EPrints_OpenArchives.pl.

Without the patch to EPrints::OpenArchives, metadata for records not in the archive will be available to harvest.

Implementation

The changes to cgi/oai2 code will change the default filter for OAI-PMH records from 'in archive OR deletion':

push @$filters, {
    meta_fields => [qw( eprint_status )],
    value => "archive deletion",
    match => "EQ",
    merge => "ANY",
};

to 'has datestamp':

push @$filters, {
    meta_fields => [qw( datestamp )],
    match => "SET",
};

Any record with a datestamp, that is not in the live 'archive' dataset will be reported as 'deleted' over OAI-PMH.

Changes

About

Rework OAI-PMH interface to report items that have a datestamp (were live at some point) but are not in the 'archive' state as deleted.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages