New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dbc-node-opensearch-client

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dbc-node-opensearch-client

Client for DBC webservice OpenSearch

latest
Source
npmnpm
Version
2.0.3
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

dbc-node-opensearch-client

David David

Node client for the DBC OpenSearch webservice https://opensource.dbc.dk/services/open-search-web-service. Implements the searchOperation of the webservice for retrieving either a search result list or a work.

OpenSearch.getSearchResult(values):Promise

Method for creating a search request with a query and a set of user provided and/or application specific parameters. This method returns a search result from the OpenSearch webservice as work collections, containing as many works as specified by a 'stepValue' parameter, from the number in the 'start' parameter. The 'sort' parameter decides the sorting of the search result.

Example

params = {
  query: 'harry potter',
  start: 1,
  stepValue: 10,
  sort: 'rank_frequency'
};

OpenSearch.getSearchResult(params);

OpenSearch.getWorkResult(values):Promise

Method for creating a search request for a specific work given a specific identifier as a query. The method returns the first result from the OpenSearch webservice with all the manifestations in a work collection.

Example

params = {
  query: 'rec.id=870970-basis:21907960'
};

OpenSearch.getWorkResult(params);

OpenSearch.init(config):METHODS

Init method for setting service wsdl (that has the service endpoint) and defaults through a config object. The method returns the methods available through this client.

Example

config = {
  wsdl: 'http://opensearch.addi.dk/4.0.1/?wsdl',
  agency: '000000',
  profile: 'test',
  cache: standardCache
};

OpenSearch.init(config);

Keywords

dbc

FAQs

Package last updated on 30 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts