To add an alert:
- Log into Alma; go to Discovery > Configure Views
- Click the button with three dots on the line that says “LIVE VIEW”; click “Edit”.
- Click the “Manage Customization Package” tab.
- Click the “Download” button next to “Current View Customization Package.”
- On your machine, navigate to the location to which the package was downloaded; open the folder, and then open the “js” folder.
- In your preferred text editor, open the custom.js.
- Scroll down to where you see the words “Alert Bar”
- Edit the value of the “alertText” variable with the HTML that you were provided with by Library Communications.
- Change the value of the “showAlert” variable to “true” (without the quotes).
- Save the file.
- Compress the folder to a zip file:
- Delete the original zip file.
- On a Mac: right-click/control-click on the folder and select “Compress.”
- On Windows: right click on the folder, select “Send to,” then select “Compressed (zipped) folder.
- WHETHER MAC OR WINDOWS, THE NEW ZIP FILE MUST HAVE THE SAME NAME AS THE ORIGINAL ZIP FILE.
- Return to the “Manage Customization Package” screen in your browser.
- 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.
- Click “Upload.”
- 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