Offline circulation utilities

Koha allows for you to continue circulation actions while offline by using any one of three utilities.

Offline circulation in Koha

Attention

The offline circulation module was deprecated in Koha version 23.11. Only the Firefox plugin and Windows tool are now supported.

If the AllowOfflineCirculation preference is set to ‘Enable’ the library staff can continue to perform circulation actions within Koha when the system is offline. You will want to visit http://your-koha-staff-client-url/cgi-bin/koha/circ/offline.pl at least once while online and bookmark that page. That is the page you will go to when you are offline.

Important

The offline interface uses HTML LocalStorage, which depending on the browser and user setting, is limited to 2.5MB or 5MB per domain. This means that larger systems will not be able to synchronize their data and are recommended to use either the Firefox or Windows application for offline circulation.

Setup

Before the first time the system goes offline go to Circulation and choose ‘Built-in offline circulation interface’

image598

And synchronize your data on every circulation computer by clicking the ‘Synchronize’ link on the right of the screen.

image599

Important

The offline interface uses HTML LocalStorage, which depending on the browser and user setting, is limited to 2.5MB or 5MB per domain. This means that larger systems will not be able to synchronize their data and are recommended to use either the Firefox or Windows application for offline circulation.

This will allow you download a local copy of your patrons and circulation data. Click the ‘Download records’ link at the top of the page to synchronize your data.

image600

Once your data is downloaded you will see the dates your data was last synced to the right of each data set.

image1261

This should be done regularly in preparation for any unexpected connection losses.

Circulating

When your system goes offline visit the Offline Circulation page (http://your-koha-staff-client-url/cgi-bin/koha/circ/offline.pl) in Koha and click ‘Check out’ or ‘Check in’ to perform offline actions.

Checking out is done by searching for the patron by barcode or name at the top of the ‘Check out’ screen. After selecting a patron you will be presented with the synced patron info, including fines and check outs.

image601

Scan the barcode of the item you would like to check out and enter a due date. If you don’t enter a due date Koha will prompt you for one.

image602

Once the item is checked out it will appear below the patron’s info.

image603

Koha offline uploading

Once the system is back online visit the ‘Synchronize’ page on the Offline circulation module and click ‘Upload transactions’

image604

After the files are uploaded you can click ‘View pending offline circulation actions’ on the right.

image605

After clicking ‘View pending offline circulation actions’ you will be brought to a summary of all of the actions you loaded in to Koha in your *.koc file.

image606

Once all of the logs from all of the circulation computers are loaded you will be able to check them all or select just those you want to process into Koha.

Click on the ‘Process’ button and Koha will record every stored transaction one by one. For each transaction, the status will change to:

“Success.” if the transaction was processed correctly

“Borrower not found.” if the borrower card number is incorrect

“Item not found.” if the item barcode is wrong

“Item not issued.” if you checked in an available item

Once finished you will have a summary of all of your transactions

image607

Firefox plugin

There is an offline circulation tool that you can add to your Firefox browser as an add-on. To do so, just go to https://addons.mozilla.org/en/firefox/addon/koct/ page and click on the “install now” button. You may have to confirm the installation, just click on “install now” and then restart Firefox to complete the installation.

Once you have installed the plugin and restarted Firefox, you will see the Koha logo in the download bar at the bottom right of Firefox.

image608

A click on the logo will open the tool in its own window.

image609

The plugin consists of three sections:

The ‘Check out’ section is where you check out items

The ‘Check in’ section is where you check in items

The ‘Transactions’ section is where you can track the transactions done while in offline mode

The transactions will keep information until you empty it.

image610

If you’d like to clear the transactions, click the ‘Clear’ box before hitting the ‘OK’ button.

The first thing you want to do then is to set up the plugin. Proceed to the settings page, linked in the top right of the page or under ‘Configuration page’ in the Transactions section.

image611

Answer the 5 questions presented:

Server = the URL of the librarian interface

Username = your staff account login

Password = your staff account password

Branch code = the code for the branch where you are located

Commit Type = If you select ‘Send data to Koha’, your account will need to be approved by an administrator. If you select ‘Apply directly to Koha’, your account will not need to be approved.

Important

To save the settings, you will have to close the plugin window and re-open it by clicking again on the Koha logo in the add-on bar.

Note

You can create a staff account dedicated to the offline circulation. So that, no matter who is at the circulation desk, they can all use the same login. Along those lines, you can use a group login that you already have in place for circulation as well.

Once you have everything set up you can start checking items in and out.

Checking out:

A screenshot of the KOCT Checkout section

Under the ‘Checkout’ heading

Scan the patron barcode

Scan the item barcode

Click ‘Checkout’

Checking in:

image613

Under the ‘Checkin’ heading

Scan the item barcode

Click ‘Checkin’

Each time, you check out or check in an item, a new transaction is recorded in the local plugin database. This is recorded in the Transactions section bellow.

image615

Note

The status will be “Local.” as long as you are offline and don’t process the transactions into Koha.

When your Internet connection comes back up you will want to get these transactions in to Koha. Before processing these transactions you should be aware of a few issues.

Because you are not connected to your Koha database when using this plugin holds will need additional processing. If an item you check in while offline has a hold, the hold is kept on the item. Since, you can’t confirm holds found during the processing of every check in, the holds stay on the item and will need to be managed later. If you only checked in a few items you can just keep a record of them all. If you checked in a lot of items you can use the Holds queue once it rebuilds to see what holds made it to the shelf erroneously.

Similarly, if an patron card was expired, the offline circulation tool won’t know about it, so the checkout will be recorded regardless of the patron’s account being blocked normally.

You have two options for adding this data to Koha

A screenshot of the KOCT Checkout section

Apply to Koha

If you checked in/out on more than one computer at the same time, what you want is to process every transaction consistently. Let’s say for instance that one patron checked a book out on one computer and then checked the same book in on another computer. To be consistent, you need to record the check out first and then the check in. Not the opposite! To do so, you need to group every transaction in one place, sort them all and then, process everything. So, you need to use the “Apply to Koha” option from every plugin/computer you worked with. This way, the log will go to Koha and be accessible from the Offline Circulation page.

image616

Get there: Circulation > Pending offline circulation actions

image617

Once all of the logs from all of the circulation computers are loaded you will be able to check them all or select just those you want to process into Koha.

Click on the Process button and Koha will record every stored transaction one by one. For each transaction, the status will change to:

“Success.” if the transaction was processed correctly

“Borrower not found.” if the borrower card number is incorrect

“Item not found.” if the item barcode is wrong

“Item not issued.” if you checked in an available item

Once finished you will have a summary of all of your transactions

image618

Apply directly

If you performed all of the circulation actions on one computer then everything is sorted already so you can choose to “Apply directly”

The status column will be updated to let you know if the transactions were applied

“Success.” if the transaction was processed correctly

“Borrower not found.” if the borrower card number is incorrect

“Item not found.” if the item barcode is wrong

“Item not issued.” if you checked in an available item

Offline circulation tool for Windows

The Offline circulation utility can be downloaded at: https://github.com/bywatersolutions/koha-offline-circulation/releases

To generate a borrowers.db file for loading in to the Windows tool you will need to run the file generator via a cron job.

Upload offline circulation file

The offline circulation tool for Windows will generate a KOC file that you can upload into Koha once your system comes back up.

On the Circulation menu click ‘Upload offline circulation file (.koc)’

image621

Browse your computer for the *.koc file

image622

Once the file is uploaded, click the process the file

image623

When this is complete you’ll be able to upload another file or tend to pending offline circulation actions.

image624

After clicking ‘View pending offline circulation actions’ you will be brought to a summary of all of the actions you loaded in to Koha in your *.koc file.

image625

Once all of the logs from all of the circulation computers are loaded you will be able to check them all or select just those you want to process into Koha.

Click on the Process button and Koha will record every stored transaction one by one. For each transaction, the status will change to:

“Success.” if the transaction was processed correctly

“Borrower not found.” if the borrower card number is incorrect

“Item not found.” if the item barcode is wrong

“Item not issued.” if you checked in an available item

Once finished you will have a summary of all of your transactions

image626

© Copyright Copyleft - Written by the Koha Community and published under the GNU Public General License.. Last updated on 2025-02-21 01:02:54.

Built with Sphinx using a theme provided by Read the Docs.

FAQ Category
Koha
Summary
Offline circulation utilities Koha allows for you to continue circulation actions while offline by using any one of three utilities. Offline circulation in Koha Attention The offline circulation module was deprecated in Koha version 23.11. Only the Firefox plugin and Windows tool are now supported. If the AllowOfflineCirculation preference is set to ‘Enable’ the library staff can continue to perform circulation actions within Koha when the system is offline. You will want to visit http://your-koha-staff-client-url/cgi-bin/koha/circ/offline.pl at least once while online and bookmark that page. That is the page you will go to when you are offline. Important The offline interface ...