OpenURL link resolver sample analyzer

See monday.com ticket Write script for testing sample OpenURLs. This ticket calls for the creation of two components: a sampler which fetches and saves the responses from various services to OpenURL queries, and an analyzer which generates reports comparing the service samples. This project is the analyzer component. The sampler component is openurl-link-resolver-sampler.

Usage example:

Generate the links report for the targeted/ test group using the links command. The results will be written to results/links-report.json.

# Clone the response samples repo, which is currently 1.4G in size, and will
# likely grow over time.
git clone git@github.com:NYULibraries/openurl-link-resolver-response-samples.git

# Run the `links` command, providing the relative or absolute path to the directory
# you would like to analyze.  Report is generated in ./results/links-report.json. 
node main.js links ../openurl-link-resolver-response-samples/targeted/

# Run the `stats` command, providing the relative or absolute path to a links report
# JSON file generated by the `links` command.  Report is generated in ./results/stats-report.csv.
node main.js stats ./results/links-report.json

Samples

Samples are being stored in a separate repo: openurl-link-resolver-response-samples.

Test cases

Google Drive folder: GetIt Replacement > Test Cases

monday.com ticket: Compile sample OpenURLs to test functionality in Resolve