How to add/update an alert on UC Library Search

To add an alert:

  1. Log into Alma; go to Discovery > Configure Views
  2. Click the button with three dots on the line that says “LIVE VIEW”; click “Edit”.
  3. Click the “Manage Customization Package” tab.
  4. Click the “Download” button next to “Current View Customization Package.”
  5. On your machine, navigate to the location to which the package was downloaded; open the folder, and then open the “js” folder.
  6. In your preferred text editor, open the custom.js.
  7. Scroll down to where you see the words “Alert Bar”
  8. Edit the value of the “alertText” variable with the HTML that you were provided with by Library Communications.
  9. Change the value of the “showAlert” variable to “true” (without the quotes).
  10. Save the file.
  11. Compress the folder to a zip file:
    1. Delete the original zip file.
    2. On a Mac: right-click/control-click on the folder and select “Compress.”
    3. On Windows: right click on the folder, select “Send to,” then select “Compressed (zipped) folder.
    4. WHETHER MAC OR WINDOWS, THE NEW ZIP FILE MUST HAVE THE SAME NAME AS THE ORIGINAL ZIP FILE.
  12. Return to the “Manage Customization Package” screen in your browser.
  13. Under “Upload Package,” click the folder icon next to the “Customization Package” input field; in the dialog window, select the zip file you just created.
  14. Click “Upload.”
  15. Click the “Save” button at the top of the screen.

To remove an alert:

Follow all of the same steps as above; at step 9, change the “showAlert” variable to false. Continue with all subsequent steps.

By lweber on 01-10-2023