GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
Digital_Repository
Browse code
- Added basic OAI stats harvester script.
master
1 parent
f61540b
commit
4bbde82050eab91e3a2a53ef897004d9cd4cc43f
nstanger
authored
on 16 Jan 2007
Patch
Showing
1 changed file
Repositories/Misc/harvest.pl
Ignore Space
Show notes
View
Repositories/Misc/harvest.pl
0 → 100755
use Net::OAI::Harvester; use strict; my $url = shift; ## create a harvester my $harvester = Net::OAI::Harvester->new( 'baseURL' => $url, ); ## get a list of identifiers my $identifiers = $harvester->listAllIdentifiers( 'metadataPrefix' => 'oai_dc' ); while ( my $header = $identifiers->next() ) { if ( $header->status() ne "deleted" ) { print $header->identifier(), "\t", $header->datestamp(), "\n"; } }
Show line notes below