Skip to content

psu-libraries/psulib_blacklight

Folders and files

NameName
Last commit message
Last commit date
Apr 24, 2024
Oct 15, 2018
Aug 10, 2022
May 8, 2024
Oct 27, 2023
Apr 17, 2024
Apr 2, 2024
Apr 2, 2024
Jan 17, 2018
Dec 19, 2019
Oct 19, 2023
May 8, 2024
Sep 9, 2021
Jan 17, 2018
Oct 18, 2019
Jun 24, 2021
May 4, 2021
Jan 5, 2024
Apr 3, 2024
Sep 2, 2020
Aug 18, 2021
Apr 17, 2024
Apr 5, 2024
Oct 25, 2022
Sep 1, 2020
Mar 26, 2024
May 8, 2024
May 8, 2024
Oct 30, 2019
Oct 30, 2023
Aug 31, 2021
Aug 19, 2021
Oct 25, 2022
Jan 6, 2023
Nov 2, 2023
Jul 3, 2019
Jan 9, 2024

Repository files navigation

Maintainability Test Coverage

The Penn State University Libraries' catalog. Built on Blacklight, using Traject for ingesting binary marc.

Software Dependencies

Software Version
ruby 3.1.2
rails 6.1.7
solr 8.11.2

When upgrading Blacklight

Because we use shakapacker, when upgrading the Blacklight gem for this application, we should also update package.json to the same version as the installed gem so as to keep these things in step from Blacklight.

Development

See Development Setup

Application notes

"Blackcat Admin" feature

The config gem provides a means for adding ad-hoc config as needed. The file config/settings.local.yml is not tracked in git. So far 5 settings have been added:

  1. Modify the announcement bar (thin bar at top)
  2. Put the site in "readonly" (no availability data)
  3. Put holds in readonly mode by hiding the I Want It button
  4. Put the site in HathiTrust ETAS enabled mode (ETAS items do not display availability data)
  5. Modify the hold button url

Here is a sample of what the settings.yml file might look like:

# Strings
announcement:
  # See https://fontawesome.com/icons
  icon: fa-exclamation-circle
  message: All University Libraries locations are closed, but we're here to help! See <a href="https://libraries.psu.edu/covid19"> University Libraries COVID-19 (novel coronavirus) Updates and Resources</a> for more information.
  # See https://getbootstrap.com/docs/4.4/utilities/colors/
  html_class: bg-warning
my_account_url: https://myaccount.libraries.psu.edu/
hold_button_path: holds/new?catkey=
no_recall_button_path: ill/new?catkey=

# Booleans
readonly: false
hide_hold_button: false
hide_announcement: false
hathi_etas: false

If one of the special keys isn't present, there is no ill-effect. It is just not there and the system operates as per usual. If the announcement array isn't present, then the default announcement in the translation file will show.