sfx-resolve

1.0.3 • Public • Published

sfx-resolve

Resolves an OpenURL against an SFX instance

Docker

docker run -p 3000:3000 -v /path/to/config.json:/app/config.json -v /path/to/cache:/app/cache mehmetc/sfx-resolve:latest

Install

yarn global add sfx-resolve

OR

npm install sfx-resolve -g

Start

$ sfxResolve

Configuration (config.json)

  • endpoints: is a list of SFX servers that will be queried
    • code: code of the SFX server
    • name: display name of the SFX server
    • url: SFX endpoint
  • cache: a path to where the cache can be stored
{
    "endpoints": [
        {"code": "a1", "name": "University of A", "url": "https://sfx.a.edu/sfx-a"},
        {"code": "b1", "name": "University of B", "url": "https://sfx.b.edu/sfx-b"}      
    ],
    "cache": "./cache"    
}

Usage

  • ip: optional IP address of caller
  • url: OpenUrl to resolve
http://127.0.0.1:3000?ip=1.1.1.1&url=http://sfx.service.com?ctx_ver=Z39.88-2004 ...

Readme

Keywords

Package Sidebar

Install

npm i sfx-resolve

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

20.5 kB

Total Files

13

Last publish

Collaborators

  • mehmetc