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
title
creator
publisher
ibsn
: International Standard Book Number(10 or 13 digit)ndc
: Nippon Decimal Classification(e.g.7
: Art)mediatype
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