[% USE raw %]
[% USE Asset %]
[%# Includes %]
[% USE Koha %]
[% USE KohaDates %]
[% USE AdditionalContents %]
[%# Helper template functions %]
[% BLOCK error_message %]
[% IF messages.BadBarcode %]
(Barcode not found on the database, please see library staff for assistance)
[% ELSIF messages.Wrongbranch %]
(The item cannot be checked in at this library, please see library staff for assistance)
[% ELSIF messages.withdrawn %]
(Item is withdrawn and check-in blocked by policy, please see library staff for assistance)
[% ELSIF messages.NotIssued %]
(The book is not currently on loan, please see library staff for assistance)
[% ELSIF messages.additional_materials %]
(The item cannot be checked in at a self service terminal, please see library staff for assistance)
[% ELSE %]
(There was a problem checking in this item, please see library staff for assistance)
[% END %]
[% END %]
[% PROCESS 'html_helpers.inc' %]
[% SET OpacHeader = AdditionalContents.get( location => "opacheader", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
[% INCLUDE 'doc-head-open.inc' %]
[% SET OpacLangSelectorMode = Koha.Preference('OpacLangSelectorMode') %]
[% LibraryName | html %] Self check-in
[% IF ( nopermission ) %]
[%# This is what is displayed if user doesn't have permission %]
Access denied
Sorry, this self check-in station has lost authentication. Please contact the administrator to resolve this problem.
[% ELSIF ( different_ip ) %]
[%# This is what is displayed if user doesn't have permission %]
Session lost
You are accessing self check-in from a different IP address! Please log in again.
[% ELSIF ( checkins ) %]
[%# We have results from a check-in attempt %]
[% IF ( success && success.size > 0 || errors && errors.size > 0 ) %]
[% ELSE %]
Your request included no check-ins.
[% END %]
[% ELSE %]
[%# Prompt for barcodes %]
[% END # /IF ( nopermission ) %]
[% IF ( Koha.Preference('SelfCheckInMainUserBlock') ) %]
[% Koha.Preference('SelfCheckInMainUserBlock' ) | $raw %]
[% END %]
[% # Help modal %]