Primo search target extension for Sorin.
Sorin Primo is a Sorin extension that provides the ExLibris Primo Brief Search API as a catalog search endpoint.
Sorin catalog search extensions are responsible for two services:
Search
module, rebuilding them as appropriate for the given catalog’s API, and issuing them to the catalog;Resource
schema, and returning them to the Search
module, which returns them to the client.Sorin Primo encodes all of this functionality in lib/sorin_primo.ex
.
mix.exs
:
def deps do
[
...,
{:sorin_primo, git: "https://github.com/seulibrary/Sorin-Primo.git"},
]
end
$ mix deps.get && mix deps.compile
search
stanza in sorin.exs
to point it at SorinPrimo
:
config :search,
search_target: SorinPrimo
sorin.exs
, updating keys as necessary:
config :sorin_primo,
api_gateway_url: "https://api-na.hosted.exlibrisgroup.com/primo",
api_key: "[Your key]",
inst: "[Your institution code]",
vid: "[The View ID you want to search]",
tab: "[The tab you want to search]",
scope: "[The scope you want to search]",
catalog_url_root: "[Root of URL at which rscs should be viewed on Primo]",
lang: "en_US", # Or whatever you need it to be
newspapers_search: false # Or true, if you prefer
sorin.exs
.As recommended by and for the rest of the Elixir community, we tag production-ready releases with Semantic Versioning. To see the list of versioned releases, please see the tags on this repository.
We welcome questions, ideas, feedback, comments, and bug reports via the Sorin issue tracker. To contribute bug fixes, improvements to documentation, or new features, pull requests are gratefully encouraged. We would also be delighted to work with you on the development of new extensions, especially for new search targets. For more information please see CONTRIBUTING.md. Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
This project is licensed under the GNU General Public License v3.0 — see LICENSE for details.