Skip to content

library and cli to harvest metadata from OAI-=PMH conforming API endpoints

License

Notifications You must be signed in to change notification settings

ctot-nondef/ts-oai-pmh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test & Deploy codecov npm version

OAI PMH Typescript

A TypeScript module for the Open Archives Initiative Protocol for Metadata Harvesting (OAI-PMH 2.0). Use this module if you want to harvest metadata from OAI-PMH providers, e.g., arxiv.

Installation

npm install oai-pmh

Basic usage

As typescript library

const oaiPmh = new OaiPmh(
	"http://bibsys-network.alma.exlibrisgroup.com/view/oai/47BIBSYS_NETWORK/request" as unknown as URL,
);
const options = {
	metadataPrefix: "marc21",
	set: "oai_komplett",
	from: new Date("2020-01-01"),
	until: new Date("2020-01-03"),
};
const res = [];
for await (const identifier of oaiPmh.listIdentifiers(options)) {
	res.push(identifier);
}

For details see the documentation

Through CLI

to be done

About

library and cli to harvest metadata from OAI-=PMH conforming API endpoints

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published