@@ -, +, @@
- If you have on-site checkouts enabled you will see three tabs: All,
Checkouts, and On-site checkouts.
- Each tab should work correctly: The checkouts tab showing only regular
checkouts, the on-site checkouts tab showing only on-site checkouts.
- If you have on-site checkouts disabled there should be no tabs, the
table of checkouts should be displayed inside a "page-section" div
instead.
---
.../prog/en/modules/members/readingrec.tt | 210 +++++++++---------
1 file changed, 107 insertions(+), 103 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt
@@ -51,107 +51,111 @@
[% ELSIF ( !loop_reading ) %]
This patron has no circulation history.
[% ELSE %]
-
-
-
-
- [% IF Koha.Preference('OnSiteCheckouts') %]
-
-
-
- [% ELSE %]
-
- [% END %]
-
-
-
- Type |
- Date |
- Title |
- Author |
- Call number |
- Vol info |
- Barcode |
- Number of renewals |
- Checked out on |
- Checked out from |
- [% IF Koha.Preference('RecordStaffUserOnCheckout') %]
- Checked out by |
+
+
+ [% BLOCK table_readingrec %]
+
+
+
+ Type |
+ Date |
+ Title |
+ Author |
+ Call number |
+ Vol info |
+ Barcode |
+ Number of renewals |
+ Checked out on |
+ Checked out from |
+ [% IF Koha.Preference('RecordStaffUserOnCheckout') %]
+ Checked out by |
+ [% END %]
+ Date due |
+ Return date |
+
+
+
+ [% FOREACH issue IN loop_reading %]
+ [% IF issue.returndate %][% ELSE %]
[% END %]
+
+ [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' | html %]
+ [% ELSE %][% issuetype = 'standard_checkout' | html %]
+ [% END %]
+ [% issuetype | html %]
+ |
+
+ [% issue.issuestimestamp | $KohaDates with_hours => 1 %]
+ |
+
+ [% INCLUDE 'biblio-title.inc' biblio=issue link = 1 %]
+ |
+
+ [% issue.author | html %] |
+
+
+ [% IF issue.classification %]
+ [% issue.classification | html %]
+ [% ELSE %]
+ [% issue.itemcallnumber | html %]
+ [% END %]
+ |
+
+
+ [% IF issue.enumchron %]
+ [% issue.enumchron | html %]
+ [% END %]
+ |
+
+ [% issue.barcode | html %] |
+
+ [% issue.renewals_count | html %]
+ [% IF issue.renewals_count > 0 %]
+ [ View ]
+ [% END %]
+ |
+
+ [% issue.issuedate |$KohaDates with_hours => 1 %]
+ |
+ [% Branches.GetName( issue.branchcode ) | html %] |
+ [% IF Koha.Preference('RecordStaffUserOnCheckout') %]
+ [% issue.firstname | html %] [% issue.surname | html %] |
+ [% END %]
+
+ [% issue.date_due |$KohaDates with_hours => 1 %]
+ |
+ [% IF issue.returndate %]
+
+ [% issue.returndate |$KohaDates with_hours => 1 %]
+ [% ELSE %]
+ |
+ Checked out
+ [% END %]
+ |
+
+ [% END %]
+
+
[% END %]
- Date due |
- Return date |
-
-
-
- [% FOREACH issue IN loop_reading %]
- [% IF issue.returndate %][% ELSE %]
[% END %]
-
- [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' | html %]
- [% ELSE %][% issuetype = 'standard_checkout' | html %]
- [% END %]
- [% issuetype | html %]
- |
-
- [% issue.issuestimestamp | $KohaDates with_hours => 1 %]
- |
-
- [% INCLUDE 'biblio-title.inc' biblio=issue link = 1 %]
- |
-
- [% issue.author | html %] |
-
-
- [% IF issue.classification %]
- [% issue.classification | html %]
- [% ELSE %]
- [% issue.itemcallnumber | html %]
- [% END %]
- |
-
-
- [% IF issue.enumchron %]
- [% issue.enumchron | html %]
- [% END %]
- |
-
- [% issue.barcode | html %] |
-
- [% issue.renewals_count | html %]
- [% IF issue.renewals_count > 0 %]
- [ View ]
- [% END %]
- |
-
- [% issue.issuedate |$KohaDates with_hours => 1 %]
- |
- [% Branches.GetName( issue.branchcode ) | html %] |
- [% IF Koha.Preference('RecordStaffUserOnCheckout') %]
- [% issue.firstname | html %] [% issue.surname | html %] |
- [% END %]
-
- [% issue.date_due |$KohaDates with_hours => 1 %]
- |
- [% IF issue.returndate %]
-
- [% issue.returndate |$KohaDates with_hours => 1 %]
- [% ELSE %]
- |
- Checked out
- [% END %]
- |
-
- [% END %]
-
-
-
- [% IF Koha.Preference('OnSiteCheckouts') %]
-
- [% END %]
-
+
+ [% IF Koha.Preference('OnSiteCheckouts') %]
+ [% WRAPPER tabs id= "tabs" %]
+ [% WRAPPER tabs_nav %]
+ [% WRAPPER tab_item tabname= "tab_all" bt_active= 1 %]
All [% END %]
+ [% WRAPPER tab_item tabname= "tab_checkout" %]
Checkouts [% END %]
+ [% WRAPPER tab_item tabname= "tab_onsite_checkout" %]
On-site checkouts [% END %]
+ [% END # /WRAPPER tabs_nav %]
+ [% WRAPPER tab_panels %]
+ [% WRAPPER tab_panel tabname="readingrec" bt_active= 1 %]
+ [% INCLUDE table_readingrec %]
+ [% END # /tab_panel# %]
+ [% END # /WRAPPER tab_panels %]
+ [% END # /WRAPPER tabs %]
+ [% ELSE %]
+
+ [% INCLUDE table_readingrec %]
+
+ [% END # /IF Koha.Preference('OnSiteCheckouts') %]
+
[% END %]
@@ -182,10 +186,10 @@
}, table_settings);
$("#tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) {
- active_tab = $(this).data("tabname");
- if( active_tab == "checkouts" ){
+ active_tab = $(this).attr("href");
+ if( active_tab == "#tab_checkout_panel" ){
table.fnFilter("standard_checkout", 0);
- } else if( active_tab == "onsite" ){
+ } else if( active_tab == "#tab_onsite_checkout_panel" ){
table.fnFilter("onsite_checkout", 0);
} else {
table.fnFilter('', 0);
--