[% USE raw %] [% USE Asset %] [% USE Branches %] [% USE Koha %] [% USE KohaDates %] [% SET footerjs = 1 %] [% USE AuthorisedValues %] [% USE ColumnsSettings %] [% USE Price %] [% INCLUDE 'doc-head-open.inc' %] Koha › ILL requests [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %]
[% IF query_type == 'illlist' %]
[% ELSE %]
[% END %]
[% IF !backends_available || !has_branch %]
ILL module configuration problem. Take a look at the about page
[% ELSE %] [% INCLUDE 'ill-toolbar.inc' %] [% IF whole.error %]

Error performing operation

We encountered an error:

[% whole.message | html %] ([% whole.status | html %])

[% END %] [% IF query_type == 'create' %]

New ILL request

[% PROCESS $whole.template %] [% ELSIF query_type == 'confirm' %]

Confirm ILL request

[% PROCESS $whole.template %] [% ELSIF query_type == 'cancel' and !whole.error %]

Cancel a confirmed request

[% PROCESS $whole.template %] [% ELSIF query_type == 'check_out' and !whole.error %] [% IF !whole.stage || whole.stage == 'form' %]

Issue requested item to [% request.patron.firstname %] [% request.patron.surname %]

[% IF !request.biblio_id || request.biblio_id.length == 0 %]
This item cannot be issued as it has no biblio record associated with it
[% END %] [% IF whole.value.errors.itemcount %]
The bibliographic record for this request has multiple items, it should only have one. Please fix this then try again.
[% END %] [% IF whole.value.errors.item_creation %]
An unknown error occurred while trying to add an item
[% END %] [% IF whole.value.errors.item_check_out %]
An unknown error occurred while trying to check out the item
[% END %] [% IF whole.value.check_out_errors %] [% IF whole.value.check_out_errors.error.STATS %]
Local use recorded
[% ELSE %]
There was a problem checking this item out, please check for problems with the patron's account
[% END %] [% END %] [% IF request.biblio_id && request.biblio_id.length > 0 && !whole.value.check_out_errors.error.STATS %]
Check out details [% items = whole.value.biblio.items.unblessed %] [% IF items.size == 1 %]

The bibliographic record for this request already has an item attached to it, you are about to check it out

[% ELSE %]

A bibliographic record for this request exists, but no item. You are about to create an item and check it out

[% END %]
  1. [% IF whole.value.errors.inhouse %] You must choose a valid patron [% END %]
    If you do not wish to check out the item to [% request.patron.firstname | html %] [% request.patron.surname | html %] and would rather issue it to an in-house statistical patron, choose the patron here
  2. [% IF items.size != 1 %] [% ELSE %] [% FOREACH type IN whole.value.itemtypes %] [% IF type.itemtype == items.0.itype %] [% type.description | html %] [% END %] [% END %] [% END %] [% IF whole.value.errors.item_type %] You must choose an item type [% END %]
  3. [% IF items.size == 1 %]
  4. [% items.0.barcode %]
  5. [% END %]
  6. [% branchcode = items.size == 1 ? items.0.homebranch : params.branchcode ? params.branchcode : request.branchcode %] [% IF items.size != 1 %] [% ELSE %] [% FOREACH branch IN whole.value.libraries.unblessed %] [% IF branch.branchcode == branchcode %] [% branch.branchname %] [% END %] [% END %] [% END %] [% IF whole.value.errors.branchcode %] You must choose a branch [% END %]
  7. [% INCLUDE 'date-format.inc' %]
    If you do not specify a due date, it will be set according to circulation rules

[% IF items.size == 1 %] [% END %] Cancel
[% END %] [% IF whole.value.check_out_errors.error.STATS %] Return to request [% END %] [% ELSIF whole.stage == 'done_check_out' %]

Item checked out

Check out details
  1. [% whole.value.patron.firstname | html %] [% whole.value.patron.surname | html %]
  2. [% whole.value.check_out.date_due | $KohaDates with_hours => 1 %]
Return to request
[% END %] [% ELSIF query_type == 'generic_confirm' %]

Place request with partner libraries

[% IF error %] [% IF error == 'no_target_email' %]
No target email addresses found. Either select at least one partner or check your ILL partner library records.
[% ELSIF error == 'no_library_email' %]
Your library has no usable email address. Please set it.
[% ELSIF error == 'unkown_error' %]
Unknown error processing your request. Contact your administrator.
[% END %] [% END %] [% IF whole.value.partners %] [% ill_url = "/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=" _ request.illrequest_id %]
Interlibrary loan request details
Cancel
[% ELSE %]
Interlibrary loan request details

No partners have been defined yet. Please create appropriate patron records (by default ILLLIBS category).

Be sure to provide email addresses for these patrons.

Cancel

[% END %] [% ELSIF query_type == 'edit_action' %]
Request details
    [% type = request.get_type %]
  1. [% request.borrowernumber | html %]
  2. [% stat = request.status %] [% current_alias = request.status_alias %]
  3. [% request.updated | $KohaDates with_hours => 1 %]
  4. [% IF type %][% type | html %][% ELSE %]N/A[% END %]
  5. [% IF request.cost %][% request.cost | $Price %][% ELSE %]N/A[% END %]
  6. [% request.id_prefix _ request.illrequest_id | html %]
Cancel
[% ELSIF query_type == 'delete_confirm' %]

Are you sure you wish to delete this request?

No, do not delete
[% ELSIF query_type == 'illview' %] [% req_status = request.status %] [% IF error %] [% IF error == 'migrate_target' %]
The backend you tried to migrate to does not yet support migrations, please try again with an alternative target.
[% END %] [% END %]

Manage ILL request

Edit request [% FOREACH action IN request.available_actions %] [% needs_prefs = action.needs_prefs.size ? action.needs_prefs : [] %] [% needs_perms = action.needs_perms.size ? action.needs_perms : [] %] [% has_prefs_count = 0 %] [% has_perms_count = 0 %] [% FOREACH pref IN needs_prefs %] [% IF Koha.Preference(pref) %] [% has_prefs_count = has_prefs_count + 1 %] [% END %] [% END %] [% FOREACH perm IN needs_perms %] [% perm_name = 'CAN_' _ perm %] [% IF ($perm_name) %] [% has_perms_count = has_perms_count + 1 %] [% END %] [% END %] [% NEXT IF has_prefs_count < needs_prefs.size || has_perms_count < needs_perms.size %] [% IF action.method == 'migrate' %] [% IF backends.size > 2 %] [% ELSIF backends.size == 2 %] [% FOREACH backend IN backends %] [% IF backend != request.backend %] [% action.ui_method_name | html %] [% END %] [% END %] [% END %] [% ELSIF action.method != 0 %] [% action.ui_method_name | html %] [% END %] [% END %] Display supplier metadata ILL request log

Request details

Details from library

  1. Order ID: [% IF request.orderid %][% request.orderid | html %][% ELSE %]N/A[% END %]
  2. Patron: [% borrowerlink = "/cgi-bin/koha/members/moremember.pl" _ "?borrowernumber=" _ request.patron.borrowernumber %] [% request.patron.firstname _ " " _ request.patron.surname _ " [" _ request.patron.cardnumber _ "]" | html %]
  3. Bibliographic record ID: [% IF request.biblio_id %] [% request.biblio_id | html %] [% ELSE %] N/A [% END %]
  4. Library: [% Branches.GetName(request.branchcode) | html %]
  5. Status: [% IF request.statusalias %] [% request.statusalias.lib | html %] [% ELSE %] [% request.capabilities.$req_status.name | html%] [% IF request.requested_partners.length > 0 %] ([% request.requested_partners | html %]) [% END %] [% END %]
  6. Last updated: [% request.updated | $KohaDates with_hours => 1 %]
  7. Request type: [% type = request.get_type %] [% IF type %][% type | html %][% ELSE %]N/A[% END %]
  8. Cost: [% IF request.cost %][% request.cost | $Price %][% ELSE %]N/A[% END %]
  9. Price paid: [% IF request.price_paid %][% request.price_paid | $Price %][% ELSE %]N/A[% END %]
  10. Request number: [% request.id_prefix _ request.illrequest_id | html %]
  11. Staff notes:

    [% request.notesstaff | html %]

  12. Notes:

    [% request.notesopac | html %]

Details from supplier ([% request.backend | html %])

    [% FOREACH meta IN request.metadata %]
  1. [% meta.key | html %]: [% meta.value | html %]
  2. [% END %]

[% request.illcomments.count | html %] comments

[% IF request.illcomments.count && request.illcomments.count > 0 %] [% FOREACH comment IN request.illcomments %]
Comment by: [% comment.patron.firstname _ " " _ comment.patron.surname _ " [" _ comment.patron.cardnumber _ "]" | html %] [% comment.timestamp | $KohaDates with_hours => 1 %]

[% comment.comment | html %]

[% END %] [% END %]

Add comment

  1. Required
[% ELSIF query_type == 'illlist' %]

View ILL requests

Details for all requests

[% INCLUDE 'ill-list-table.inc' %]
[% ELSE %] [% PROCESS $whole.template %] [% END %] [% END %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'columns_settings.inc' %] [% INCLUDE 'calendar.inc' %] [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %] [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] [% INCLUDE 'ill-list-table-strings.inc' %] [% Asset.js("js/ill-list-table.js") | $raw %] [% Asset.js("js/ill-check-out.js") | $raw %] [% END %] [% TRY %] [% PROCESS backend_jsinclude %] [% CATCH %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]