libreja/sru-catalog-api

This package is abandoned and no longer maintained. No replacement package was suggested.

Fetches books/etc from different catalogs

0.0.3 2020-07-15 18:39 UTC

This package is auto-updated.

Last update: 2022-09-15 23:18:35 UTC


README

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.