ndl-search

0.0.1 • Public • Published

ndl-search

A Node library for searching books through the National Diet Library's Search.

Installation

$ npm install ndl-search

Quick Examples

var ndl = require('ndl-search');

// using OpenSearch
// search by ISBN(International Standard Book Number)
ndl.search({isbn: '1568493215'}, function(err, results) {
  console.log(results);
});
// search by creator and NDC(Nippon Decimal Classification)
ndl.search({creator: '夏目漱石', ndc: '9'}, function(err, results) {
  console.log(results);
});

// using SRU(Search/Retrieve Via URL) and CQL(Contextual Query Language)
ndl.searchByQuery('creator = 夏目漱石', {recordSchema: 'dcndl'}, function(err, results) {
  console.log(results);
});

About search conditions and options see NDL Search API Specifications(Ver.1.8)2014.03.31(all).

Documentation

Methods

.search(conditions, callback)

Search by conditions for books.

Commonly-used condition keys

more information, see NDL Search API Specifications(Ver.1.8)2014.03.31(all).

.searchByQuery(query, [options], callback)

SRU(Search/Retrieve Via URL) search by CQL(Contextual Query Language) for books. This enables us to detailed search.

License

MIT

Package Sidebar

Install

npm i ndl-search

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • lidice