COVID-19 closure

These changes can be made in any order, but it’s better to change the circulation rules and the jQuery first to prevent patrons from placing reqeusts while you’re making the changes.

Circulation rules

Go to Home > Administration > Circulation and fine rules and choose the library that needs to be closed from the “Select a library” dropdown

Screenshot showing where to find Default checkout, hold and return policy

Go to the section of the page titled “Default checkout, hold and return policy for LIBRARYNAME” and change the variables as follow:

  1. Total current checkouts allowed - no change
  2. Total current on-site checkouts allowed - no change
  3. Maximum total holds allowed (count) - no change
  4. Hold policy - CHANGE TO “No holds allowed”
  5. Hold pickup library match - CHANGE TO “Item’s home library”
  6. Return policy - CHANGE TO “Item returns home”
  7. Once the variables are set, click on the “Save” button
Screenshot of needed settings for Default checkout, hold and return policy

Staff client JS

Go to Home > Administration > System preferences and click on the “Staff client” tab

Screenshot of where to find "Staff client" tab

Scroll down to the “IntranetUserJS” preference and click on “Edit with Code Mirror”

Screenshot of where to find IntranetUserJS system preference

Do a browser search for “//COVID19 closures”

Screenshot of where to find //COVID19 closures

Immediately after

//COVID19 closures

Add a new line and then add these two pieces of jQuery to this system preference in this location

//BEGIN XLIBRARYX COVID19 closure
$('.XLIBRARYX #breadcrumbs').prepend('<h1 class="closed" style="text-align: center;">Your library is currently listed as <span style="font-style: italic; text-decoration: underline;">Closed until XDATEX</span> on the OPAC.</h1>');
$("#pickup option[value='XLIBRARYX']").attr("value","X").html('XLIBNAMEX is currently closed to new requests');
//END

Change the values in the code above as follows:

Value Replace with
XLIBRARYX Library code from Koha
XLIBNAMEX Library name
XDATEX Reopening date

Click on “Save all Staff Client preferences”

Screenshot of what it should look like after the code is added

OPAC JS

Go to Home > Administration > System preferences and click on the “OPAC” tab

Screenshot of where to find the OPAC tab

Scroll down to the “OPACUserJS” preference and click on “Edit with Code Mirror”

Screenshot of where to find OPACUserJS

Do a browser search for “//COVID19 closures”

Screenshot of where to find //COVID19 Closures

Immediately after

//COVID19 closures

Add a new line and then add these two pieces of jQuery to this system preference in this location

//BEGIN XLIBRARYX COVID19 closure
 $('.branch-XLIBRARYX .btn:contains(Resume)').remove();
 $('.branch-XLIBRARYX #holdst td:nth-child(6)').text('XLIBNAMEX is currently closed');
 $("option[value='XLIBRARYX']").attr("value","x").html('XLIBNAMEX: currently closed');
 $('.branch-XLIBRARYX input[value="Confirm hold"]').remove();
 $('.branch-XLIBRARYX #holds #hold-request-form').parent().prepend('<h1>Requests cannot be placed at this time.<br />Your library is closed until XDATEX.</h1>');
//END

Change the values in the code above as follows:

Value Replace with
XLIBRARYX Library code from Koha
XLIBNAMEX Library name
XDATEX Reopening date

Click on “Save all OPAC preferences”

Screenshot of what it should look like after the changes are made

News block

Go to Home > Tools and open the “News” Tools

Screenshot of where to find "News" on the tools page

Find the news item titled “COVID-19 Closures and information” and click on “Edit”

Screenshot of where to find the COVID news and the edit button

Click on the <> icon to edit the raw html of the news Item

Screenshot of where to find the raw HTML button

Find the spot in the existing news items where the library you are closing will fit alphabetically and insert:

<tr>
<td>XLIBNAMEX</td>
<td style="text-align: center;"><a href="XLIBURL" target="_blank" rel="noopener"><span style="background-color: pink;">Closed</span></a></td>
<td style="text-align: right;"><span style="background-color: pink;">Courier service suspended</span><br /><span style="background-color: pink;">XLIBRARYX items are not available</span><br /><span style="background-color: pink;">Tentative reopening on XDATEX</span></td>
</tr>

Change the values in the HTML above as follows:

Value Replace with
XLIBRARYX Library code from Koha
XLIBNAMEX Library name
XLIBURL URL for the library
XDATEX Reopening date

Click on “Save” after necessary changes have been made.

Screenshot of where the code should go and where the save button is

After saving, you should verify that the information is accurate and looks correct and click on “Submit” to finalize the changes

Screenshot of what the rendered code should look like and where the Submit button is

When you return to the home page in the staff client, the updates should appear on the left hand side of the homepage

Screenshot showing where the final code should appear

Suspend unfilled requests

Go to Home > Reports > Guided reports wizard > Saved reports and search for report 3276

../_images/covid.close.0170.png

Run report 3276 “GHW - Find unfilled/not-suspended requests for a library” choosing the closed library

../_images/covid.close.0180.png

Click on each link in the “LINK” column to go to the account of each patron with unfilled requests for this pickup Library

../_images/covid.close.0190.png

Suspend each request until the day before the library is expected to reopen

If the closure is “Until further notice” estimate a date for reopening - leaving the date blank will require that someone manually un-suspends each request, so it’s better to make a bad guess than have to figure out which requests were made by staff as opposed to those made by patrons

../_images/covid.close.0200.png

Repeat this process for each link in the report

Suspended requests will look like this:

../_images/covid.close.0210.png

Due dates

Go to Home › Tools and click on “Batch extend due dates”

../_images/covid.close.0220.png

Select the following checkout criteria:

Patron categories Leave blank
Libraries Choose the one that’s closing
Due date from Choose the date the closure began
Due date to Choose the date the closure will end

Then choose one of the two “New due date” options

Choose one of the following Options
Hard due date Set a date for all items (not recommended)
Or add number of days Adds X number of days to an item’s current due date (recommended)

Then click “Continue”

../_images/covid.close.0230.png

This will give you a a list of items that will be modified - if everything looks good, click on “Modify selected checkouts”

../_images/covid.close.0240.png

Depending on the size of the library, it may take several minutes for this process to run.

If you get a timeout or proxy error, it is probably because the web page timed out. The due date update process is probably continuing to work in the database, but the Apache server timed out. The best way to check to see if the process finished is to wait 15 minutes and re-start the process to see if there are still any items left that did not update. If there are items that did not update, you can adjust the “Due date from” and “Due date to” varialbes to update the items in smaller batches.

When the process finishes normaly, you should see a screen like this:

../_images/covid.close.0250.png

email

Send an e-mail to next@lists.nekls.org informing all of the Next Search Catalog members about the closure.

Here’s a template for an e-mail:

Hello all,

We are temporarily pausing courier service for XLIBNAMEX due to COVID-19 concerns.

At this time we are stopping courier deliveries to XLIBNAMEX.

Please remember that, if any of your staff tests positive for COVID-19, you need to contact courier@nekls.org as soon as possible so we can implement the courier's COVID-19 procedures.

Any items that are already in-transit to XLIBRARYX will be held at the courier distribution hubs and .  If your library checks in any items that are owned by XLIBRARYX, please hold them at your library for the present.  All unfilled requests for pickup at XLIBRARYX have been suspended until XDATEX.

Currently our hope is that we will resume courier service to XLIBRARYX on XDATEX.

Change the values in the email above as follows:

Value Replace with
XLIBRARYX Library code from Koha
XLIBNAMEX Library name
XDATEX Reopening date

OpacHiddenItems (optional)

If a library is going to be closed for a very long time, it’s best to hide their items from the OPAC. To do this:

Go to Home > Administration > System preferences and click on the “OPAC” tab

../_images/covid.close.0070.png

Scroll down to the “OpacHiddenItems” preference and click on “Edit”

../_images/covid.close.0260.png

On the line beginning with “homebranch:” add a comma and the branch code of the closed library in the brackets

../_images/covid.close.0260.png