JSPM

ndl-search

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q22711F
  • License MIT

A node.js wrapper for National Diet Library's Search.

Package Exports

  • ndl-search

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ndl-search) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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