X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fopac-tmpl%2Fbootstrap%2Fen%2Fmodules%2Fopac-user.tt;h=c862a14e36134798bf344c0ff7d924b2d7260efb;hb=8255344215e79a5274b05033cae4bcad8d441391;hp=3c4754a37c206955dcd511d11575e735f53fe0e1;hpb=17821c58ccbeeb719e283e7932064e6ea61d657e;p=koha.git diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index 3c4754a37c..c862a14e36 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -1,18 +1,21 @@ [% USE Koha %] [% USE KohaDates %] +[% USE Branches %] +[% USE ItemTypes %] +[% USE Price %] [% INCLUDE 'doc-head-open.inc' %] -[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your library home +[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your library home [% INCLUDE 'doc-head-close.inc' %] [% BLOCK cssinclude %][% END %] - +[% INCLUDE 'bodytag.inc' bodyid='opac-user' bodyclass='scrollto' %] [% INCLUDE 'masthead.inc' %]
@@ -25,39 +28,44 @@
- [% IF ( bor_messages ) %] -
-

Messages for you

-
    - [% FOREACH bor_messages_loo IN bor_messages_loop %] -
  • - [% bor_messages_loo.message %]
    -    Written on [% bor_messages_loo.message_date | $KohaDates %] by [% bor_messages_loo.branchname %] -
  • - [% END %] - [% IF ( opacnote ) %]
  • [% opacnote %]
  • [% END %] -
+ [% IF adminWarning %] +
+

+ Warning: +Using this account is not recommended because some parts of Koha will not function as expected. Instead, please log in with a different account. + + Log out +

- [% END # / IF bor_messages %] - [% FOREACH BORROWER_INF IN BORROWER_INFO %] -

Hello, [% INCLUDE 'patron-title.inc' category_type = BORROWER_INF.category_type firstname = BORROWER_INF.firstname surname = BORROWER_INF.surname othernames = BORROWER_INF.othernames cardnumber = BORROWER_INF.cardnumber %] + [% END %] + + [% INCLUDE 'opac-note.inc' %] + +

Hello, [% INCLUDE 'patron-title.inc' category_type = BORROWER_INFO.category_type firstname = BORROWER_INFO.firstname surname = BORROWER_INFO.surname othernames = BORROWER_INFO.othernames cardnumber = BORROWER_INFO.cardnumber %]

-

Click here if you're not [% BORROWER_INF.title %] [% INCLUDE 'patron-title.inc' category_type = BORROWER_INF.category_type firstname = BORROWER_INF.firstname surname = BORROWER_INF.surname othernames = BORROWER_INF.othernames cardnumber = BORROWER_INF.cardnumber %]

+

Click here if you're not [% BORROWER_INFO.title %] [% INCLUDE 'patron-title.inc' category_type = BORROWER_INFO.category_type firstname = BORROWER_INFO.firstname surname = BORROWER_INFO.surname othernames = BORROWER_INFO.othernames cardnumber = BORROWER_INFO.cardnumber %]

[% IF ( patronupdate ) %]

Thank you!

Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.

[% END %] - [% IF ( BORROWER_INF.warndeparture ) %] + [% IF failed_holds %] +
+

Notice:

+

One or more holds were not placed due to existing holds.

+
+ [% END %] + + [% IF ( BORROWER_INFO.warndeparture ) %]
- Please note: Your card will expire on [% BORROWER_INF.warndeparture | $KohaDates %]. Please contact the library for more information. - [% IF ( BORROWER_INF.returnbeforeexpiry ) %] Also note that you must return all checked out items before your card expires.[% END %] + Please note: Your card will expire on [% BORROWER_INFO.warndeparture | $KohaDates %]. Please contact the library for more information. + [% IF ( BORROWER_INFO.returnbeforeexpiry ) %] Also note that you must return all checked out items before your card expires.[% END %]
[% END %] - [% IF ( BORROWER_INF.warnexpired ) %] + [% IF ( BORROWER_INFO.warnexpired ) %]
- Please note: Your account has expired as of [% BORROWER_INF.warnexpired | $KohaDates %]. Please contact the library if you wish to renew your account. + Please note: Your account has expired as of [% BORROWER_INFO.warnexpired | $KohaDates %]. Please contact the library if you wish to renew your account.
[% END %] @@ -71,6 +79,8 @@ Your account has expired. Please contact the library for more information. [% ELSIF error == 'too_many' %] You have renewed this item the maximum number of times allowed. + [% ELSIF error == 'too_soon' %] + It is too soon after the checkout date for this item to be renewed. [% ELSIF error == 'on_reserve' %] This item is on hold for another patron. [% END %] @@ -83,16 +93,28 @@
    [% IF ( userdebarred ) %] -
  • Please note: Your account has been frozen[% IF ( BORROWER_INF.userdebarreddate ) %] until [% BORROWER_INF.userdebarreddate | $KohaDates %][% END %][% IF ( BORROWER_INF.debarredcomment ) %] with the comment "[% BORROWER_INF.debarredcomment %]"[% END %]. Usually the reason for freezing an account is old overdues or damage fees. If your account page shows your account to be clear, please contact the library.
  • + [% IF ( discharge_available ) %] +
  • + Please note: Your account is frozen because it has been discharged. Get your discharge +
  • + [% ELSE %] +
  • Please note: Your account has been frozen. + [% IF ( BORROWER_INFO.debarredcomment ) %] Comment: "[% BORROWER_INFO.debarredcomment %]"[% END %] + [% IF ( BORROWER_INFO.userdebarreddate ) %] End date: [% BORROWER_INFO.userdebarreddate | $KohaDates %][% END %] + Usually the reason for freezing an account is old overdues or damage fees. If your account shows to be clear, please contact the library. Go to your account page
  • + [% END %] [% END %] - [% IF ( BORROWER_INF.gonenoaddress ) %] -
  • Please note: According to our records, we don't have up-to-date [% UNLESS ( BORROWER_INF.OPACPatronDetails ) %]contact information[% ELSE %]contact information[% END %] on file. Please contact the library[% IF ( BORROWER_INF.OPACPatronDetails ) %] 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)[% END %].
  • + [% IF ( BORROWER_INFO.gonenoaddress ) %] +
  • Please note: According to our records, we don't have up-to-date contact information. Please contact the library. + [% IF ( Koha.Preference('OPACPatronDetails') ) %]Update your contact information[% ELSE %]Go to your contact information[% END %] + [% IF ( Koha.Preference('OPACPatronDetails') ) %](Please note: there may be a delay in restoring your account if you submit online.)[% END %] +
  • [% END %] - [% IF ( BORROWER_INF.lost ) %] -
  • Please note: Your library card has been marked as lost or stolen. If this is an error, please contact the library.
  • + [% IF ( BORROWER_INFO.lost ) %] +
  • Please note: Your library card has been marked as lost or stolen. If this is an error, please contact the library.
  • [% END %] - [% IF ( renewal_blocked_fines ) && ( OpacRenewalAllowed ) %] -
  • Please note: Since you have [% IF renewal_blocked_fines != "0.00" %] more than [% renewal_blocked_fines %] in [% END %] fines, you cannot renew your books online. Please pay your fines if you wish to renew your books.
  • + [% IF ( renewal_blocked_fines.defined ) && ( OpacRenewalAllowed ) %] +
  • Please note: You cannot renew your books online. Reason: [% IF ( renewal_blocked_fines ) > 0 %]Your fines exceed [% renewal_blocked_fines | $Price %].[% ELSE %]You have fines.[% END %] [% END %]
@@ -104,16 +126,22 @@
+
+
[% IF ( issues_count ) %]
@@ -132,8 +160,8 @@ [% IF ( show_barcode ) %] Barcode [% END %] - Call No. - [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %] + Call no. + [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %] Renew [% END %] [% IF ( OPACFinesTab ) %] @@ -166,10 +194,11 @@ [% END %] [% IF ( BakerTaylorEnabled ) %] - [% IF ( ISSUE.normalized_isbn ) %] - See Baker & Taylor + [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %] + [% IF ( bt_id ) %] + See Baker & Taylor [% ELSE %] - No cover image available + No cover image available [% END %] [% END %] @@ -185,20 +214,21 @@ [% ISSUE.title |html %] [% FOREACH subtitl IN ISSUE.subtitle %] [% subtitl.subfield %][% END %] + [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron %][% END %] [% ISSUE.author %] [% IF ( ISSUE.overdue ) %] Date due: - [% ISSUE.date_due | $KohaDates as_due_date => 1 %] + [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %] [% ELSE %] Date due: - [% ISSUE.date_due | $KohaDates as_due_date => 1 %] + [% ISSUE.date_due_sql | $KohaDates as_due_date => 1 %] [% END %] @@ -217,10 +247,10 @@ [% END %] - Call number: + Call no.: [% ISSUE.itemcallnumber %] - [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %] + [% IF ( OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %] [% IF ISSUE.renewed %]Renewed!
[% END %] [% IF ( ISSUE.status ) %] @@ -228,16 +258,20 @@ Renew [% END %] ([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining) + [% ELSIF ( ISSUE.on_reserve ) %] + Not renewable (on hold) [% ELSIF ( ISSUE.too_many ) %] Not renewable + [% ELSIF ( ISSUE.norenew_overdue ) %] + Not allowed (overdue) + [% ELSIF ( ISSUE.auto_too_late ) %] + No longer renewable [% ELSIF ( ISSUE.auto_renew || ISSUE.auto_too_soon ) %] Automatic renewal ([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining) [% ELSIF ( ISSUE.too_soon ) %] No renewal before [% ISSUE.soonestrenewdate %] ([% ISSUE.renewsleft %] of [% ISSUE.renewsallowed %] renewals remaining) - [% ELSIF ( ISSUE.on_reserve ) %] - (On hold) [% END %] [% END %] @@ -258,12 +292,12 @@ [% END # /FOREACH ISSUES %] - [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %] + [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %] [% END %]
- [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %] + [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %]
@@ -273,6 +307,7 @@
[% END %] +

Download as iCal/.ics file

[% ELSE %] @@ -282,41 +317,41 @@ [% IF ( OPACFinesTab ) %] - [% IF ( BORROWER_INF.amountoverfive ) %] + [% IF BORROWER_INFO.amountoverfive %]

Fines and charges

You have nothing checked out
- +
Amount
You currently owe fines and charges amounting to:[% BORROWER_INF.amountoutstanding %][% amountoutstanding | $Price %]
[% END %] - [% IF ( BORROWER_INF.amountoverzero ) %] + [% IF BORROWER_INFO.amountoverzero %]

Fines and charges

- +
Amount
You currently owe fines and charges amounting to:[% BORROWER_INF.amountoutstanding %][% amountoutstanding %]
[% END %] - [% IF ( BORROWER_INF.amountlessthanzero ) %] + [% IF BORROWER_INFO.amountlessthanzero %]

Credits

- +
Amount
You have a credit of:[% BORROWER_INF.amountoutstanding %]You have a credit of:[% amountoutstanding %]
@@ -324,47 +359,51 @@ [% END %] [% END # / OPACFinesTab %] - [% END # / FOREACH BORROWER_INFO %] - - [% IF ( waiting_count && atdestination ) %] -
- - + [% IF relatives %] +
+
Holds waiting
- - + + + + + - [% FOREACH WAITIN IN WAITING %] - - - - - - + [% FOREACH r IN relatives %] + [% FOREACH i IN r.issues %] + + + + + + + + + + + + [% END %] [% END %]
TitleHold datePick up libraryDueBarcodeCall no.Relative
[% WAITIN.itemtype %] - - [% WAITIN.waiting_title %] [% FOREACH subtitl IN WAITIN.subtitle %] [% subtitl.subfield %][% END %] - - - [% WAITIN.author %] - - Hold date: - [% WAITIN.reservedate | $KohaDates %] - [% IF ( WAITIN.atdestination ) %] - Waiting at [% WAITIN.branch %] - [% ELSE %] - In transit from [% WAITIN.holdingbranch %] to [% WAITIN.branch %] - [% END %] -
+ + [% i.item.biblio.title %][% IF ( i.item.enumchron ) %] [% i.item.enumchron %][% END %] + + + [% i.date_due | $KohaDates %] + + [% i.item.barcode %] + + [% i.item.itemcallnumber %] + + [% r.firstname %] [% r.surname %] +
-
- [% END # waiting_count && atdestination %] - +
+ [% END %] [% IF ( overdues_count ) %]
@@ -409,10 +448,11 @@ [% END %] [% IF ( BakerTaylorEnabled ) %] - [% IF ( OVERDUE.normalized_isbn ) %] - See Baker & Taylor + [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %] + [% IF ( bt_id ) %] + See Baker & Taylor [% ELSE %] - No cover image available + No cover image available [% END %] [% END %] @@ -445,13 +485,13 @@ [% END %] - Call number: + Call no.: [% OVERDUE.itemcallnumber %] Date due: - [% OVERDUE.date_due | $KohaDates as_due_date => 1 %] + [% OVERDUE.date_due_sql | $KohaDates as_due_date => 1 %] [% IF ( OpacRenewalAllowed ) %] @@ -463,6 +503,8 @@ Renew [% END %] ([% OVERDUE.renewsleft %] of [% OVERDUE.renewsallowed %] renewals remaining) + [% ELSIF ( OVERDUE.norenew_overdue ) %] + Not allowed(overdue) [% ELSIF ( OVERDUE.onreserve ) %] On hold [% ELSE %] @@ -488,10 +530,10 @@ [% END # /overdues_count %] - [% IF ( reserves_count ) %] + [% IF ( RESERVES.count ) %]
- + @@ -511,9 +553,9 @@ [% FOREACH RESERVE IN RESERVES %] - [% IF ( RESERVE.wait ) %] - [% IF ( RESERVE.atdestination ) %] - [% IF ( RESERVE.found ) %] + [% IF ( RESERVE.is_waiting ) %] + [% IF ( RESERVE.is_at_destination ) %] + [% IF ( RESERVE.is_found ) %] [% ELSE %] @@ -525,8 +567,14 @@ [% END %] [% IF ( showpriority ) %] [% IF SuspendHoldsOpac %] [% END # / IF SuspendHoldsOpac %]
Holds ([% reserves_count %] total)Holds ([% RESERVES.count %] total)
- [% RESERVE.reserves_title %] [% FOREACH subtitl IN RESERVE.subtitle %] [% subtitl.subfield %][% END %] - [% RESERVE.author %] + + [% RESERVE.biblio.title %] + [% FOREACH s IN RESERVE.biblio.subtitles %] + [% s %] + [% END %] + [% RESERVE.item.enumchron %] + + [% RESERVE.biblio.author %] @@ -535,19 +583,23 @@ - [% IF ( RESERVE.expirationdate ) %] - + [% IF ! RESERVE.found %] + [% IF ( RESERVE.expirationdate ) %] + + Expiration: + [% RESERVE.expirationdate | $KohaDates %] + + [% ELSE %] Expiration: - [% RESERVE.expirationdate | $KohaDates %] - + Never expires + [% END %] [% ELSE %] - Expiration: - Never expires + - [% END %] Pick up location: - [% RESERVE.branch %] + [% RESERVE.branch.branchname %] @@ -557,31 +609,42 @@ [% END %] Status: - [% IF ( RESERVE.wait ) %] - [% IF ( RESERVE.atdestination ) %] + [% IF ( RESERVE.is_waiting ) %] + [% IF ( RESERVE.is_at_destination ) %] [% IF ( RESERVE.found ) %] - Item waiting at [% RESERVE.wbrname %][% IF ( RESERVE.waitingdate ) %] since [% RESERVE.waitingdate | $KohaDates %][% END %] - + Item waiting at [% RESERVE.branch.branchname %] + [% IF ( RESERVE.waitingdate ) %] + since [% RESERVE.waitingdate | $KohaDates %] + [% IF RESERVE.waiting_expires_on %] + until [% RESERVE.waiting_expires_on | $KohaDates %] + [% END %] + [% END %] + [% ELSE %] - Item waiting to be pulled from [% RESERVE.wbrname %] + Item waiting to be pulled from [% Branches.GetName( RESERVE.branchcode ) %] [% END %] [% ELSE %] - Item in transit to [% RESERVE.wbrname %] + Item in transit to [% Branches.GetName( RESERVE.branchcode ) %] [% END %] [% ELSE %] - [% IF ( RESERVE.intransit ) %] - Item in transit from [% RESERVE.frombranch %] since - [% RESERVE.datesent | $KohaDates %] + [% IF ( RESERVE.is_in_transit ) %] + [% SET transfer = RESERVE.item.get_transfer %] + Item in transit from [% Branches.GetName( transfer.frombranch ) %] since + [% transfer.datesent | $KohaDates %] [% ELSIF ( RESERVE.suspend ) %] Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until %] [% END %] [% ELSE %] - Pending + [% IF RESERVE.itemtype %] + Pending for next available item of item type '[% ItemTypes.GetDescription( RESERVE.itemtype ) %]' + [% ELSE %] + Pending + [% END %] [% END %] [% END %] - [% IF ( RESERVE.cancelable ) %] + [% IF ( RESERVE.is_cancelable ) %] [% IF RESERVE.suspend %]
@@ -596,9 +659,9 @@
- [% IF ( RESERVE.cancelable ) %] + [% IF ( RESERVE.is_cancelable ) %]
@@ -660,7 +723,105 @@ [% END %] - [% END # / #reserves_count %] + [% END # / #RESERVES.count %] + + [% IF Koha.Preference('ArticleRequests') && borrower.article_requests_current.count %] +
+ + + + + + + + + + + + + + + + + + + + + + [% FOREACH ar IN borrower.article_requests_current %] + + + + + + + + + + + + + + + + + + + + + + + + + + + [% END %] + +
Article requests ([% borrower.article_requests_current.count %] total)
Record titlePlaced onTitleAuthorVolumeIssueDatePagesChaptersNotesStatusPickup library 
+ + [% ar.biblio.title %] + [% ar.item.enumchron %] + + [% ar.biblio.author %] + [% IF ar.itemnumber %] (only [% ar.item.barcode %])[% END %] + + [% ar.created_on | $KohaDates %] + + [% ar.title %] + + [% ar.author %] + + [% ar.volume %] + + [% ar.issue %] + + [% ar.date %] + + [% ar.pages %] + + [% ar.chapters %] + + [% ar.patron_notes %] + + [% IF ar.status == 'PENDING' %] + Pending + [% ELSIF ar.status == 'PROCESSING' %] + Processing + [% ELSIF ar.status == 'COMPLETED' %] + Completed + [% ELSIF ar.status == 'CANCELED' %] + Canceled + [% END %] + + [% ar.branch.branchname %] + + Cancel: + Cancel + +
+
+ [% END %] + @@ -668,6 +829,10 @@ +[% IF ( OverDriveCirculation ) %] +[% INCLUDE 'overdrive-checkout.inc' %] +[% END %] + [% INCLUDE 'opac-bottom.inc' %] @@ -686,7 +851,8 @@ $(".js-hide").hide(); $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs"); $(".suspend-until").prop("readonly",1); - var dTables = $("#checkoutst,#holdst,#overduest"); + + var dTables = $("#checkoutst,#holdst,#overduest,#opac-user-relative-issues-table"); dTables.each(function(){ var thIndex = $(this).find("th.psort").index(); $(this).dataTable($.extend(true, {}, dataTablesDefaults, { @@ -721,7 +887,7 @@ e.preventDefault(); $("#renewall").submit(); }); - [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.BlockExpiredPatronOpacActions ) ) %] + [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( borrower.is_expired && borrower.category.effective_BlockExpiredPatronOpacActions ) ) %] $("#checkoutst caption").append(""); [% END %] [% END %] @@ -730,4 +896,18 @@ }); //]]> + + [% END %]