Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

libreja/sru-catalog-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catalog Fetcher

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

This repository fetches serveral (mostly German) catalogs and converts the entries to an array

Please use with caution, happy to invite new contributors.

Install

Via Composer

$ composer require libreja/sru-catalog-api

Demo

An online demo can be found here https://wikioverdata.toolforge.org/sru-catalog-demo/

For an example response please click [here](https://wikioverdata.toolforge.org/sru-catalog-demo/api.php?service=gvk&maximumRecords=3&fields[title]=Der Richter und sein Henker)

Usage

Currently you may choose from 5 services

  • gvk Gemeinsamer Verbundkatalog
  • bvb Bibliotheksverbund Bayern
  • swb Südwestdeutscher Bibliotheksverbund Baden-Württemberg, Saarland, Sachsen
  • loc Library of Congress
  • dnb Deutsche Nationalbibliothek
use Libreja\SruCatalog;
$sruCatalog = new SruCatalog\CatalogMain();
$sruCatalog->service = "dnb";
var_dump($sruCatalog->parse([
  "title" => 'Meier',
]));

Services

(can be generated by php tests/supportByService.php)

key German-trans gvk bvb dnb swb loc
all Alles x x x
title Titel x x x x x
author Autor x x x x x
subject Stichwort x x x x x
idn Identifikationnr des Katalogs (ppn) x x x x x
isxn ISXN x x x x x
isbn ISBN x x x
issn ISSN x x
publisher Verleger/Firma x x
publisherPlace Verleger Ort x x
year Jahr x x x
language Sprache x x
corporation Körperschaft x x x

Testing

$ vendor/bin/phpunit tests/TestAllServices.php

Contributing

Please contact us

Credits

License

The MIT License (MIT). Please see License File for more information.