X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fopac-tmpl%2Fbootstrap%2Fen%2Fmodules%2Fopac-reserve.tt;h=516ada50d917b760f9b7dafb41db6a7e97e20ddb;hb=4a605225cc3116f5a244303106567340a8d1e1b0;hp=6558e6eaf4cb3224f706b45e02555a3abbcb23a4;hpb=51f0a0b7229c1e76699708a548a9e3e68c9953ad;p=koha.git
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt
index 6558e6eaf4..516ada50d9 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt
@@ -1,7 +1,8 @@
[% USE Koha %]
[% USE KohaDates %]
+[% USE Price %]
[% INCLUDE 'doc-head-open.inc' %]
-[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Placing a hold
+
[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Placing a hold
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
@@ -16,87 +17,96 @@
-
-
- [% IF ( message ) %]
+
+ [% IF ( message ) %]
+
+
Sorry, you cannot place holds.
+
[% IF ( GNA ) %]
-
-
Sorry, you cannot place holds because the library doesn't have up-to-date contact information on file.
-
Please contact your librarian, or use the online update form to submit current information (Please note: there may be a delay in restoring your account if you submit online)
Sorry, you cannot place holds because your library card has been marked as lost or stolen.
-
If this is an error, please take your card to the circulation desk at your local library and the error will be corrected.
-
+
+ Your library card has been marked as lost or stolen.
+ If this is an error, please take your card to the circulation desk at your local library and the error will be corrected.
+
[% END %]
[% IF ( debarred ) %]
-
-
Sorry, you cannot place holds because your account has been frozen.
-
Usually the reason for freezing an account is old overdues or damage fees. If your account page shows your account to be clear, please consult a librarian.
-
+
+ Your account has been frozen.
+ [% IF debarred_comment %] Comment: "[% debarred_comment %]"[% END %]
+ [% IF debarred_date && debarred_date != '9999-12-31' %] End date: [% debarred_date | $KohaDates %][% END %]
+ Usually the reason for freezing an account is old overdues or damage fees. If shows your account to be clear, please contact the library.Go to your account page
+
[% END %]
[% IF ( too_much_oweing ) %]
-
- Sorry, you cannot place holds because you owe [% too_much_oweing %].
-
+
+ You have unpaid fines. Amount: [% too_much_oweing | $Price %].
+
[% END %]
[% IF ( too_many_reserves ) %]
-
+
Sorry, you cannot place more than [% too_many_reserves %] holds.
-
+
[% END %]
[% IF ( bad_biblionumber ) %]
-
- ERROR: No biblio record found for biblionumber [% bad_biblionumber %].
+
+ ERROR: No record found for record id [% bad_biblionumber %].
+
[% END %]
[% IF ( no_items_selected ) %]
-
+
You must select at least one item.
-
+
[% END %]
[% IF ( no_branch_selected ) %]
-
+
You must select a library for pickup.
-
+
[% END %]
[% IF ( no_biblionumber ) %]
-
ERROR: No biblionumber received.
+
+ ERROR: No record id specified.
+
[% END %]
[% IF ( bad_data ) %]
-
ERROR: Internal error: incomplete hold request.
+
+ ERROR: Internal error: incomplete hold request.
+
[% END %]
[% IF ( expired_patron ) %]
-
Sorry, you cannot place holds because your library card has expired.
Please contact your librarian if you wish to renew your card.
+
+ Your library card has expired. Please contact your librarian if you wish to renew your card.
+
[% END %]
[% ELSE %]
[% IF ( none_available ) %]
-
Sorry, none of these items can be placed on hold.
+
+ Sorry, none of these items can be placed on hold.
[% END # / UNLESS none_available %]
[% IF (RESERVE_CHARGE) %]
@@ -169,16 +179,22 @@
Item type:
[% IF ( bibitemloo.imageurl ) %][% END %]
- [% bibitemloo.description %]
+ [% bibitemloo.translated_description %]
[% END %]
- [% IF showholds || showpriority %]
+ [% SET OPACShowHoldQueueDetails = Koha.Preference('OPACShowHoldQueueDetails') %]
+ [% IF OPACShowHoldQueueDetails == 'holds_priority' || OPACShowHoldQueueDetails == 'priority' %]
- Holds and priority:
- [% IF showpriority %] [% bibitemloo.rank %] [% END %]
- [% IF showholds && showpriority %] out of [% END %]
- [% IF showholds %] [% bibitemloo.reservecount %] [% END %]
+ Your priority:
+ [% bibitemloo.rank %]
+
+ [% END %]
+
+ [% IF OPACShowHoldQueueDetails == 'holds_priority' || OPACShowHoldQueueDetails == 'holds' %]
+
+ Number of holds:
+ [% bibitemloo.reservecount %]
[% END %]
@@ -243,44 +259,31 @@
[% END # / IF OpacHoldNotes %]
- [% IF OPACItemHolds == '1' or OPACItemHolds == 'force' %]
+
+
+ [% IF bibitemloo.itemholdable %]
-
- [% IF OPACItemHolds == "1" %]
+ [% IF NOT bibitemloo.force_hold %]
+
- [% ELSE %]
-
[% END %]
- [% IF OPACItemHolds == "force" %]
-
- [% ELSE %]
-
- [% END %]
+
- [% END # / IF OPACItemHolds %]
+ [% END # / IF bibitemloo.itemholdable %]
- [% IF OPACItemHolds == '1' || OPACItemHolds == 'force' %]
+ [% IF bibitemloo.itemholdable %]
Select a specific item:
@@ -323,7 +326,7 @@
[% END %]
[% END %]
- [% itemLoo.description %]
+ [% itemLoo.translated_description %]
[% END %]
@@ -380,7 +383,7 @@
[% END # / FOREACH itemLoo IN bibitemloo.itemLoop%]
- [% END # / IF ( OPACItemHolds )%]
+ [% END # / IF ( bibitemloo.itemholdable )%]
[% END # / IF ( bibitemloo.holdable ) %]
@@ -460,12 +463,11 @@
// Hides all 'specific copy' table rows on load.
$(".copiesrow").hide();
- [% IF OPACItemHolds == 'force' %]
- [% FOREACH bibitemloo IN bibitemloop %]
- [% IF bibitemloo.holdable %]
- $("#toggle-hold-options-[% bibitemloo.biblionumber %]").click();
- $("#copiesrow_[% bibitemloo.biblionumber %]").show();
- [% END %]
+ [% FOREACH bibitemloo IN bibitemloop %]
+ [% IF bibitemloo.force_hold %]
+ $("#toggle-hold-options-[% bibitemloo.biblionumber %]").click();
+ $("#reqspecific_[% bibitemloo.biblionumber %]").click();
+ $("#copiesrow_[% bibitemloo.biblionumber %]").show();
[% END %]
[% END %]
@@ -523,20 +525,16 @@
$("#place_on_hdr").show();
- [% IF OPACItemHolds == '1' %]
- $(".place_on_type").show();
- // onload, selectany is checked
- $(".selectany").attr("checked", "checked");
- [% END %]
+ $(".place_on_type").show();
+ // onload, selectany is checked
+ $(".selectany").attr("checked", "checked");
// If the user is *allowed* to choose a specific item
// The first one is preselected
- [% IF OPACItemHolds =="1" %]
- $("table.copiesrow").each(function(){
- var id = suffixOf($(this).attr("id"), "_");
- select_first_available(id);
- });
- [% END %]
+ $("table.copiesrow").each(function(){
+ var id = suffixOf($(this).attr("id"), "_");
+ select_first_available(id);
+ });
// On confirmsjs change
$(".confirmjs").change(function(){
@@ -628,7 +626,7 @@
[% IF ( bibitemloo.holdable ) %]
// http://jqueryui.com/demos/datepicker/#date-range
var dates[% bibitemloo.biblionumber %] = $( "#from[% bibitemloo.biblionumber %], #to[% bibitemloo.biblionumber %]" ).datepicker({
- minDate: 1,
+ minDate: 0,
changeMonth: true,
numberOfMonths: 1,
onSelect: function( selectedDate ) {