项目作者: mehmetc

项目描述 :
Resolves an OpenURL against an SFX instance
高级语言: JavaScript
项目地址: git://github.com/mehmetc/sfx-resolve.git
创建时间: 2018-07-30T12:58:14Z
项目社区:https://github.com/mehmetc/sfx-resolve

开源协议:MIT License

下载


sfx-resolve

Resolves an OpenURL against an SFX instance

Docker

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

Install

  1. yarn global add sfx-resolve

OR

  1. npm install sfx-resolve -g

Start

  1. $ 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
  1. {
  2. "endpoints": [
  3. {"code": "a1", "name": "University of A", "url": "https://sfx.a.edu/sfx-a"},
  4. {"code": "b1", "name": "University of B", "url": "https://sfx.b.edu/sfx-b"}
  5. ],
  6. "cache": "./cache"
  7. }

Usage

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