[% USE raw %] [% USE Koha %] [% USE KohaDates %] [% USE AuthorisedValues %] [% USE Branches %] [% USE AdditionalContents %] [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] [% SET ILLModuleCopyrightClearance = AdditionalContents.get( location => "ILLModuleCopyrightClearance", lang => lang, library => logged_in_user.branchcode || default_branch ) %] [% INCLUDE 'doc-head-open.inc' %] Your interlibrary loan requests › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog [% INCLUDE 'doc-head-close.inc' %] [% BLOCK cssinclude %][% END %] [% INCLUDE 'bodytag.inc' bodyid='opac-illrequests' bodyclass='scrollto' %] [% BLOCK messages %] [% IF message == "1" %] [% ELSIF message == "2" %] [% END %] [% END %] [% INCLUDE 'masthead.inc' %]
[% WRAPPER breadcrumbs %] [% IF ( logged_in_user ) %] [% WRAPPER breadcrumb_item %] [% INCLUDE 'patron-title.inc' patron = logged_in_user %] [% END %] [% END %] [% IF op != 'list' %] [% WRAPPER breadcrumb_item %] Interlibrary loan requests [% END %] [% IF op == 'cud-create' %] [% WRAPPER breadcrumb_item bc_active= 1 %] New interlibrary loan request [% END %] [% ELSIF op == 'view' %] [% WRAPPER breadcrumb_item bc_active= 1 %] View interlibrary loan request [% END %] [% ELSIF op == 'typedisclaimer' %] [% WRAPPER breadcrumb_item bc_active= 1 %] Ill request disclaimer [% END %] [% END %] [% ELSE %] [% WRAPPER breadcrumb_item bc_active= 1 %] Interlibrary loan requests [% END %] [% END %] [% END #/ WRAPPER breadcrumbs %]
[% IF ( OpacNav||loggedinusername ) && !print %]
[% END %] [% IF ( OpacNav||loggedinusername ) %]
[% ELSE %]
[% END %] [% IF !backends_available %]
ILL module configuration problem. Contact your administrator.
[% ELSE %]
[% IF op == 'cud-create' %]

New interlibrary loan request

[% IF stage == 'copyrightclearance' %] [% INCLUDE messages %]

[% IF ( ILLModuleCopyrightClearance ) %]

[% PROCESS koha_news_block news => ILLModuleCopyrightClearance %]
[% END %]

[% USE link_url = url('/cgi-bin/koha/opac-illrequests.pl', whole.value.other) %] Yes No
[% ELSE %] [% INCLUDE messages %] [% IF backends %]
Backends
[% ELSE %] [% PROCESS $whole.opac_template %] [% END %] [% END # /IF stage == 'copyrightclearance' %] [% ELSIF op == 'list' %]

Interlibrary loan requests

[% INCLUDE messages %] [% IF can_patron_place_ill_in_opac %] [% END %] [% FOREACH request IN requests %] [% status = request.status | html %] [% type = request.get_type %] [% END %]
Requests
Request ID Author Title Requested from Request type Status Request placed Last updated
[% request.id | html %] [% IF request.metadata.Author %][% request.metadata.Author | html %][% ELSE %]N/A[% END %] [% IF request.metadata.Title %][% request.metadata.Title | html %][% ELSE %]N/A[% END %] [% request.backend | html %] [% IF type %][% type | html %][% ELSE %]N/A[% END %] [% request.status_alias ? request.statusalias.lib_opac : request.capabilities.$status.name | html %] [% request.placed | $KohaDates %] [% request.updated | $KohaDates %] View
[% ELSIF op == 'view' %]

View interlibrary loan request

[% INCLUDE messages %] [% status = request.status %]
[% INCLUDE 'csrf-token.inc' %]
Details from library
    [% type = request.get_type %]
  1. [% request.id | html %]
  2. [% request.backend | html %]
  3. [% IF request.biblio_id %]
  4. View the requested item
  5. [% END %]
  6. [% Branches.GetName(request.branchcode) | html %]
  7. [% request.status_alias ? request.statusalias.lib_opac : request.capabilities.$status.name | html %]
  8. [% IF type %][% type | html %][% ELSE %]N/A[% END %]
  9. [% request.placed | $KohaDates %]
  10. [% request.updated | $KohaDates %]
  11. [% IF !request.completed %] [% ELSE %] [% request.notesopac | html %] [% END %]
Details from [% request.backend | html %] [% FOREACH meta IN request.metadata %]
[% meta.key | html %]: [% IF meta.value %][% meta.value | html %][% ELSE %]N/A[% END %]
[% END %]
[% IF can_patron_place_ill_in_opac %]
[% IF !request.completed %] [% IF request.status == "NEW" %] Request cancellation [% END %] [% END %] Cancel
[% END %]
[% ELSIF op == 'availability' %]

Interlibrary loan item availability

[% INCLUDE 'csrf-token.inc' %]

Displaying availability results

[% FOREACH key IN whole.keys %] [% value = whole.$key %] [% IF key != 'custom_key' && key != 'custom_value' && key != 'csrf_token' %] [% END %] [% END %] [% custom_keys = whole.custom_key.split('\0') %] [% custom_values = whole.custom_value.split('\0') %] [% i = 0 %] [% FOREACH custom_key IN custom_keys %] [% i = i + 1 %] [% END %]
If you can't find what you are looking for, you can or cancel your request
[% FOR service IN services %]

[% service.name | html %]

[% INCLUDE 'ill-availability-table.inc' service=service %] [% END %]
[% ELSIF op == 'typedisclaimer' %]

ILL request disclaimer

[% INCLUDE messages %]
[% INCLUDE 'csrf-token.inc' %]
[% disclaimer.text | $raw %] [% SET disc_av_category_code = AuthorisedValues.GetAuthValueDropbox(disclaimer.av_cat) %] [% IF disc_av_category_code.count %]
[% END %]
[% FOREACH key IN whole.keys %] [% value = whole.$key %] [% IF key != 'custom_key' && key != 'custom_value' && key != 'csrf_token' %] [% END %] [% END %] [% custom_keys = whole.custom_key.split('\0') %] [% custom_values = whole.custom_value.split('\0') %] [% i = 0 %] [% FOREACH custom_key IN custom_keys %] [% i = i + 1 %] [% END %] Cancel
[% END # / IF op == 'cud-create' %]
[% END # /IF !backends_available %]
[% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] [% INCLUDE 'datatables.inc' %] [% IF op == 'availability' %] [% Asset.js("js/ill-availability.js") | $raw %] [% END %] [% TRY %] [% PROCESS backend_jsinclude %] [% CATCH %] [% END %] [% END %]