1.0.3 • Published 5 years ago

sfx-resolve v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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 ...
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago