From 2180b73deb4124b7134330230acde4197f3f3804 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 11 May 2012 15:25:05 -0400 Subject: [PATCH] Bug 8078 - my summary showing contents of incorrect tab Content-Type: text/plain; charset="utf-8" This patch moves the holdings tab content to the correct position sequentially with regard to the order of the tabs themselves. My guess is that the jQuery upgrade has something to do with this change but I'm not sure why (probably something in our aging tabs plugin which works differently with the new jQuery version). Making the sequence of the tab contents match the sequence of the tabs seems to fix the problem. --- .../prog/en/modules/members/moremember.tt | 64 ++++---- koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt | 165 ++++++++++---------- 2 files changed, 114 insertions(+), 115 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 326de06..d2717ef 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -288,7 +288,7 @@ function validate1(date) { [% FOREACH attribute IN attributes_loop %] [% IF attribute.class %]

[% attribute.lib %]

- +
[% ELSE %]
[% END %] @@ -407,36 +407,14 @@ function validate1(date) { -
- - -
- [% IF ( totaldue_raw ) %] -

Total due: [% totaldue %]

- [% ELSE %] -

No outstanding charges

- [% END %] -
-
- +
[% IF ( issueloop ) %]
- + @@ -458,7 +436,7 @@ function validate1(date) { [% END %] [% IF ( issueloo.red ) %] - - + [% IF ( issueloo.renew_failed ) %] @@ -495,9 +473,9 @@ function validate1(date) { [% IF ( issueloo.norenew_reason_on_reserve ) %] On Hold [% END %] - [% IF ( issueloo.norenew_reason_too_many ) %] + [% IF ( issueloo.norenew_reason_too_many ) %] Not renewable - [% END %] + [% END %] [% IF ( issueloo.can_confirm ) %] [% END %] @@ -545,7 +523,7 @@ function validate1(date) {
Due date Title Item type
+ [% ELSE %] [% END %] @@ -474,7 +452,7 @@ function validate1(date) { [% UNLESS ( noItemTypeImages ) %] [% IF ( issueloo.itemtype_image ) %][% END %][% END %][% issueloo.itemtype_description %] [% issueloo.issuedate %] [% issueloo.issuingbranchname %][% issueloo.itemcallnumber %][% issueloo.itemcallnumber %] [% issueloo.charge %] [% issueloo.replacementprice %]
- + @@ -585,15 +563,37 @@ function validate1(date) { - + [% END %]
Due date Title Item type[% relissueloo.itemcallnumber %] [% relissueloo.charge %] [% relissueloo.replacementprice %][% relissueloo.firstname %] [% relissueloo.surname %] ([% relissueloo.cardnumber %])[% relissueloo.firstname %] [% relissueloo.surname %] ([% relissueloo.cardnumber %])
- + [% END %] + +
+ +
+ [% IF ( totaldue_raw ) %] +

Total due: [% totaldue %]

+ [% ELSE %] +

No outstanding charges

+ [% END %] +
+
[% IF ( reservloop ) %]
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt index b635aec..2b88c7a 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt @@ -120,77 +120,15 @@ $.tablesorter.addParser({ [% IF ( waiting_count ) %][% IF ( BORROWER_INF.atdestination ) %]
  • Waiting
  • [% END %][% END %] [% IF ( reserves_count ) %]
  • Holds
  • [% END %] - -[% IF ( OPACFinesTab ) %] - - [% IF ( BORROWER_INF.amountoverfive ) %] -

    Fines and charges

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

    Fines and charges

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

    Credits

    - - - -
    Amount
    You have a credit of:[% BORROWER_INF.amountoutstanding %]
    - [% END %] -[% END %] - - [% END %] - - [% IF ( waiting_count ) %] - [% IF ( atdestination ) %] -
    - - - - - - - - [% FOREACH WAITIN IN WAITING %] - - - - - - - [% END %] -
    Holds waiting
    TitleHold datePick up library
    [% WAITIN.itemtype %] - [% WAITIN.waiting_title %] - - [% WAITIN.author %] - [% WAITIN.reservedate | $KohaDates %][% IF ( WAITIN.atdestination ) %]Waiting at [% WAITIN.branch %] - [% ELSE %] - In transit from [% WAITIN.holdingbranch %] to [% WAITIN.branch %] - [% END %]
    - [% END %] - [% END %]
    [% IF ( issues_count ) %] - - + + - [% IF ( JacketImages ) %][% END %] + [% IF ( JacketImages ) %][% END %] [% UNLESS ( item_level_itypes ) %] [% END %] @@ -207,15 +145,15 @@ $.tablesorter.addParser({ [% END %] - - [% FOREACH ISSUE IN ISSUES %] + --> + [% FOREACH ISSUE IN ISSUES %] [% IF ( ISSUE.overdue ) %][% ELSE %][% END %] [% IF ( JacketImages ) %] [% END %]
    [% issues_count %] Item(s) checked out
      Title DueItem type
    @@ -259,27 +197,88 @@ $.tablesorter.addParser({
    - [% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %] - - [% END %] - + [% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %] + + [% END %] + [% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %] -
    - - - [% FOREACH ISSUE IN ISSUES %] - - [% END %] - -
    - [% END %] +
    + + + [% FOREACH ISSUE IN ISSUES %] + + [% END %] + +
    + [% END %] [% ELSE %]
    You have nothing checked out
    [% END %]
    + +[% IF ( OPACFinesTab ) %] + + [% IF ( BORROWER_INF.amountoverfive ) %] +

    Fines and charges

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

    Fines and charges

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

    Credits

    + + + +
    Amount
    You have a credit of:[% BORROWER_INF.amountoutstanding %]
    + [% END %] +[% END %] - + [% END %] + + [% IF ( waiting_count ) %] + [% IF ( atdestination ) %] +
    + + + + + + + + [% FOREACH WAITIN IN WAITING %] + + + + + + + [% END %] +
    Holds waiting
    TitleHold datePick up library
    [% WAITIN.itemtype %] + [% WAITIN.waiting_title %] + + [% WAITIN.author %] + [% WAITIN.reservedate | $KohaDates %][% IF ( WAITIN.atdestination ) %]Waiting at [% WAITIN.branch %] + [% ELSE %] + In transit from [% WAITIN.holdingbranch %] to [% WAITIN.branch %] + [% END %]
    + [% END %] + [% END %] + [% IF ( overdues_count ) %]
    -- 1.7.9.5
    Overdues ([% overdues_count %] total)