You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why these changes are being introduced:
The first iteration of USE UI will include the
ability to toggle between Ex Libris CDI and
TIMDEX results.
Relevant ticket(s):
* [USE-30](https://mitlibraries.atlassian.net/browse/USE-30)
How this addresses that need:
This adds a Primo Search model that calls the
Primo Search API, and a Normalize Primo model that
parses the each result and returns a normalized
record.
Side effects of this change:
* For better or worse, much of the normalization
code has been repurposed from Bento. This felt
acceptable as we do not anticipate this to be a
long-term solution.
* While working on this, I noticed that most of
the TIMDEX normalization logic happens in the
views. It would be better to move this to
a normalization model, as we've done here with
Primo. I opened [USE-73](https://mitlibraries.atlassian.net/browse/USE-73)
to address this.
* It's not technically a side effect of this
changeset, but it's worth noting that we still
periodically see some GeoData test failures on
random test runs. I've documented this in [USE-72](https://mitlibraries.atlassian.net/browse/USE-72).
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,12 @@ See `Optional Environment Variables` for more information.
91
91
92
92
### Required Environment Variables
93
93
94
+
-`MIT_PRIMO_URL`: The base URL for MIT Libraries' Primo instance (used to generate record links).
95
+
-`PRIMO_API_KEY`: The Primo Search API key.
96
+
-`PRIMO_API_URL`: The Primo Search API base URL.
97
+
-`PRIMO_SCOPE`: The Primo Search API `scope` param (set to `cdi` for CDI-scoped results).
98
+
-`PRIMO_TAB`: The Primo Search API `tab` param (typically `all`).
99
+
-`PRIMO_VID`: The Primo Search API `vid` (or 'view ID`) param.
94
100
-`TIMDEX_GRAPHQL`: Set this to the URL of the GraphQL endpoint. There is no default value in the application.
95
101
96
102
### Optional Environment Variables
@@ -121,6 +127,7 @@ may have unexpected consequences if applied to other TIMDEX UI apps.
121
127
-`GLOBAL_ALERT`: The main functionality for this comes from our theme gem, but when set the value will be rendered as
122
128
safe html above the main header of the site.
123
129
-`PLATFORM_NAME`: The value set is added to the header after the MIT Libraries logo. The logic and CSS for this comes from our theme gem.
130
+
-`PRIMO_TIMEOUT`: The number of seconds before a Primo request times out (default 6).
124
131
-`REQUESTS_PER_PERIOD` - number of requests that can be made for general throttles per `REQUEST_PERIOD`
125
132
-`REQUEST_PERIOD` - time in minutes used along with `REQUESTS_PER_PERIOD`
126
133
-`REDIRECT_REQUESTS_PER_PERIOD`- number of requests that can be made that the query string starts with our legacy redirect parameter to throttle per `REQUEST_PERIOD`
0 commit comments