3.1.0 • Published 2 months ago

@nihiliad/janus-uri-factory-plugins v3.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
2 months ago

janus-uri-factory-plugins

Build Status

Plugins for the Janus URI factory.

Contents

Scopes and Formats

Except for Conservancy, PubMed, and WorldCat, each plugin defines a list of valid scope values.

Plugins may also define a list of valid format values, implemented only by Primo.

ArchiveSpace

We use ArchiveSpace repositories for scopes.

Name/DescriptionValue
Bell (James Ford Bell Library of Natural History)2
CBI (Charles Babbage Institute)3
CCR-SCRB (Carlson Company Records)18
CLRC (Children\'s Literature Research Collections)4
Givens (Givens Collection of African American Literature)5
IHRCA (Immigration History Research Center Archives)6
NAA (Northwest Architectural Archives)8
PAA (Performing Arts Archives)9
SCRB (Special Collections and Rare Books)12
SWHA (Social Welfare History Archives)11
Training (Training Repository)20
Tretter (Jean-Nickolaus Tretter Collection in GLBT Studies)13
UA (University Archives)14
UMJA (Upper Midwest Jewish Archives)15
UMLA (Upper Midwest Literary Archives)16
WHL (Wangensteen Historical Library of Biology and Medicine)19
YMCA (Krautz Family YMCA Archives)7

Conservancy

UDC scopes can be either a single slash (/), for all or the UDC, or id/collectionId, where id and collectionId are both integers. id always seems to be 1129, and Conservancy scope handling depends on that being true. We require users to pass in only the collectionId. A list can be found at:

https://conservancy.umn.edu/community-list

The URLs listed there are all of the form: https://conservancy.umn.edu/handle/11299/collectionId

Examples:

Name/DescriptionCollection URLValue
University of Minnesota - Twin Citieshttps://conservancy.umn.edu/handle/11299/11
Articles and Scholarly Workshttps://conservancy.umn.edu/handle/11299/169792169792

Google Custom Search

Performs a search via the Google Custom Search endpoint configured at https://www.lib.umn.edu/search or https://hsl.lib.umn.edu/search

Base site URLs are available as scopes

scopeName/DescriptionURL
www (default if unspeficied)https://www.lib.umn.edu/searchUL www website
hslhttps://hsl.lib.umn.edu/searchHSL website
wangensteenhttps://hsl.lib.umn.edu/searchHSL website (alias)

Google Custom Search has no fields.

MncatDiscovery

Alias of Primo.

Primo

Primo Scopes

Name/DescriptionValue
Ames Library of South Asiaames
Andersen Libraryandersen
Andersen Horticultural Library (Chanhassen)andersen_horticultural
Andersen Rare Booksandersen_rare
Architecture and Landscape Architecture Libraryarchitecture
Archives and Special Collectionsasc
Charles Babbage Institute Collectionbabbage
James Ford Bell Librarybell
Berman Upper Midwest Jewish Archivesberman
Bio-Medical Librarybio_med
Children's Literature Research Collectionchildren
Twin Cities Catalogdefault_scope
East Asian Libraryeast_asian
Givens Collection of African American Literaturegivens
Immigration History Research Centerimmigration
Journalism Libraryjournalism
Lake Itasca Biological Stationlake_itasca
Law Librarylaw
Law Library Rare Bookslaw_rare
Magrath Librarymagrath
Mathematics Librarymath
Minnesota Library Access Center (MLAC)mlac
Libraries Searchmncat_discovery
Music Librarymusic
Natural Resources Librarynatural_resources
Northwest Architecture Archivesnorthwest_architecture
Performing Arts Archivesperforming_arts
Plant Pathology Libraryplant_pathology
Sherlock Holmes Collectionsherlock
Social Welfare History Archivessocial_welfare
Tretter GLBT Collectiontretter
University Archivesuniversity_archives
Upper Midwest Literary Archivesupper_midwest_lit
Veterinary Medical Libraryveterinary_medical
Walter Science and Engineering Librarywalter
Walter SMART Learning Commonswalter_smart
Wangensteen Historical Library of Biology & Medicinewangensteen
Wilson Librarywilson
John R. Borchert Map Librarywilson_map
Wilson Library Rare Bookswilson_rare
YMCA Archivesymca

Primo Formats

Name/DescriptionValue
Archival/MSS Mtls and Archival Material/Manuscriptsarchive
Articlesarticles
Audioaudios
Booksbooks
Journalsjournals
Mapsmaps
Media (combination of audio, video, image)media
Available onlineonline
Scoresscores
Videosvideos

Primonews

Newspaper searches within Primo. Does not use scopes or formats.

PubMed

The PubMed search engine does not use scopes.

UMedia

Alias of umediaorganization

UMedia Organization

Scope UMedia search results by Contributing Organization facet. Contributing Organizations are valiated against this list, and provided with an abbreviated name for convenience. Currently available Contributing Organizations are listed at https://umedia.lib.umn.edu/facets?facet_field=contributing_organization_name_s&facet_limit=500&facet_sort=index

Sample Usage:

# Search for "maps" within United States Geological Survey contributions
/janus?target=umediaorganization&scope=usgs&search=maps
NameValue
Donald Clay Johnsondjohnson
Hennepin County Library, James K. Hosmer Special Collections.hosmer
Joanne B. Eichereichner
Timothy J. Johnsontjohnson
United States Geological Surveyusgs
University of Minnesota Extensions.umnext
University of Minnesota Law Library, Riesenfeld Rare Books Research Center.riesenfeld
University of Minnesota Libraries, Ames Library of South Asia.ames
University of Minnesota Libraries, Andersen Horticultural Library.andersen
University of Minnesota Libraries, Archie Givens, Sr. Collection of African American Literature.givens
University of Minnesota Libraries, Business Library.umnbus
University of Minnesota Libraries, Charles Babbage Institute.babbage
University of Minnesota Libraries, Children\'s Literature Research Collections.clrc
University of Minnesota Libraries, East Asian Library.eastasian
University of Minnesota Libraries, Immigration History Research Center Archives.ihrca
University of Minnesota Libraries, James Ford Bell Library.bell
University of Minnesota Libraries, Jean-Nickolaus Tretter Collection in Gay, Lesbian, Bisexual and Transgender Studies.tretter
University of Minnesota Libraries, John R. Borchert Map Library.borchert
University of Minnesota Libraries, Kautz Family YMCA Archives.ymca
University of Minnesota Libraries, Magrath Library.magrath
University of Minnesota Libraries, Music Library.music
University of Minnesota Libraries, Nathan and Theresa Berman Upper Midwest Jewish Archives.umja
University of Minnesota Libraries, Northwest Architectural Archives.naa
University of Minnesota Libraries, Owen H. Wangensteen Historical Library of Biology and Medicine.wangensteen
University of Minnesota Libraries, Performing Arts Archives.paa
University of Minnesota Libraries, Rare Books and Special Collections.rare
University of Minnesota Libraries, Social Welfare History Archives.swha
University of Minnesota Libraries, Special Collections and Rare Books.scrbm
University of Minnesota Libraries, University Archives.uarch
University of Minnesota Libraries, Upper Midwest Literary Archives.mss
University of Minnesota Libraries, Wilson Library.wilson
University of Minnesota Libraries. Library Media Services.lms
University of Minnesota Press Test Division.upress
University of Minnesota, Bell Museum.bellmuseum
University of Minnesota, Center for Holocaust and Genocide Studies.chgs
University of Minnesota, Department of American Indian Studies.umnais
University of Minnesota, Department of Psychology.umnpsych
University of Minnesota, Horticultural Research Center.hrc
University of Minnesota, Institute for Advanced Study.advanced
University of Minnesota, Institute for Mathematics and its Applications.umnima
University of Minnesota, Minnesota Agricultural Experiment Station.agex
University of Minnesota, Minnesota Institute for Sustainable Agriculture (MISA).misa
University of Minnesota, School of Physics and Astronomy.physics
University of Minnesota, School of Public Health.pubhealth

UMedia Collection

Scope UMedia search results by Collection name. Hundreds of collections are available and the list is too fluid to validate. Scope values will be accepted and passed to UMedia as a facet. Currently available collections usable as scope values are listed at https://umedia.lib.umn.edu/facets?facet_field=collection_name_s&facet_limit=500&facet_sort=index

Sample Usage:

# Search for "arboretum" within the Cloquet Forestry Center Records collection
/janus?target=umediacollection&scope=Cloquet+Forestry+Center+Records&search=arboretum

WorldCat

The WorldCat search engine does not use scopes.

Install

Install with npm. In package.json, include something like...

  "dependencies": {
    "@nihiliad/janus-uri-factory-plugins": "^2.0.0"
  }

...where version based on the version value in this project's package.json. Then npm install.

Missing Dependencies of Dev Dependencies

Sometimes npm install has not installed dependencies of packages in devDependencies, e.g., eslint, in package.json. If this happens, running npm install --save-dev should fix it.

Use

const janus = require('@nihiliad/janus');
const plugins = require('@nihiliad/janus-uri-factory-plugins');
const app = janus({
  uriFactoryPlugins: plugins,
});

Test

To run the linter and all unit tests:

npm test

Lint

We use standardjs for linting. To lint all files:

npx standard

To automatically fix any errors that can be fixed automatically:

npx standard --fix

To lint a single file, e.g., index.js:

npx standard index.js

Integration Tests

Some unit tests make HTTP requests to real web services. To run those tests, set the RUN_INTEGRATION_TESTS environment variable to a true value. The default value is false. This works for npm test and all commands described below.

Unit Tests

We use tape for unit tests. To run all unit tests:

npx tape test/*.js

To run a single unit test file, e.g., test/factory.js:

npx tape test/factory.js
3.1.0

2 months ago

3.0.1

9 months ago

3.0.0

10 months ago

2.3.0

2 years ago

2.2.0

2 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

7 years ago

0.6.0

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.0

8 years ago