Bugzilla – Attachment 177579 Details for
Bug 39053
Add page-section div to reports results pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39053: Add page-section div to reports results pages
Bug-39053-Add-page-section-div-to-reports-results-.patch (text/plain), 34.80 KB, created by
Owen Leonard
on 2025-02-06 14:27:33 UTC
(
hide
)
Description:
Bug 39053: Add page-section div to reports results pages
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2025-02-06 14:27:33 UTC
Size:
34.80 KB
patch
obsolete
>From 9b7d8c5a67f12bd371e25bc46a171bfd8cc5b3ea Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 6 Feb 2025 14:20:25 +0000 >Subject: [PATCH] Bug 39053: Add page-section div to reports results pages > >This patch adds a "page-section" wrapping div around reports results >pages where it is missing. > >Note: This patch contains indentation changes. > >To test, apply the patch and test the following reports, confirming that >the results page looks correct: > >- Patrons with the most checkouts >- Acquisitions statistics >- Patrons with no checkouts >- Patrons statistics >- Most-circulated items >- Catalog statistics >- Average loan time >- Circulation statistics >- Lost items >- Catalog by item types >- Holds statistics > >Sponsored-by: Athens County Public Libraries >--- > .../en/modules/reports/acquisitions_stats.tt | 71 ++++++------ > .../prog/en/modules/reports/bor_issues_top.tt | 65 +++++------ > .../prog/en/modules/reports/borrowers_out.tt | 37 +++--- > .../en/modules/reports/borrowers_stats.tt | 56 ++++----- > .../prog/en/modules/reports/cat_issues_top.tt | 2 + > .../en/modules/reports/catalogue_stats.tt | 81 ++++++------- > .../en/modules/reports/issues_avg_stats.tt | 67 +++++------ > .../prog/en/modules/reports/issues_stats.tt | 49 ++++---- > .../prog/en/modules/reports/itemslost.tt | 106 +++++++++--------- > .../prog/en/modules/reports/itemtypes.tt | 46 ++++---- > .../prog/en/modules/reports/reserves_stats.tt | 53 ++++----- > 11 files changed, 324 insertions(+), 309 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/acquisitions_stats.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/acquisitions_stats.tt >index ab3888fdad..35e2067adc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/acquisitions_stats.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/acquisitions_stats.tt >@@ -70,41 +70,42 @@ > </p> > [% END %] > [% END %] >- >- <table> >- <tr > >- <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th> >- [% FOREACH loopco IN mainloo.loopcol %] >- <th>[% loopco.coltitle | html %]</th> >- [% END %] >- <th>TOTAL</th> >- </tr> >- [% FOREACH loopro IN mainloo.looprow %] >- <tr> >- [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %] >- [% loopro.rowtitle | html %]</td> >- [% FOREACH loopcel IN loopro.loopcell %] >- [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %] >- [% IF ( loopcel.value ) %][% loopcel.value | html %] >- [% ELSE %] >- [% END %] >- </td> >- [% END %] >- [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %] >- [% loopro.totalrow | html %] >- </td> >- </tr> >- [% END %] >- <tr > >- <th>TOTAL</th> >- [% FOREACH loopfoote IN mainloo.loopfooter %] >- <th> >- [% loopfoote.totalcol | html %] >- </th> >- [% END %] >- <th>[% mainloo.total | html %]</th> >- </tr> >- </table> >+ <div class="page-section"> >+ <table> >+ <tr > >+ <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th> >+ [% FOREACH loopco IN mainloo.loopcol %] >+ <th>[% loopco.coltitle | html %]</th> >+ [% END %] >+ <th>TOTAL</th> >+ </tr> >+ [% FOREACH loopro IN mainloo.looprow %] >+ <tr> >+ [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %] >+ [% loopro.rowtitle | html %]</td> >+ [% FOREACH loopcel IN loopro.loopcell %] >+ [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %] >+ [% IF ( loopcel.value ) %][% loopcel.value | html %] >+ [% ELSE %] >+ [% END %] >+ </td> >+ [% END %] >+ [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %] >+ [% loopro.totalrow | html %] >+ </td> >+ </tr> >+ [% END %] >+ <tr > >+ <th>TOTAL</th> >+ [% FOREACH loopfoote IN mainloo.loopfooter %] >+ <th> >+ [% loopfoote.totalcol | html %] >+ </th> >+ [% END %] >+ <th>[% mainloo.total | html %]</th> >+ </tr> >+ </table> >+ </div> > [% END %] > [% ELSE %] > <form method="get" action="/cgi-bin/koha/reports/acquisitions_stats.pl"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/bor_issues_top.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/bor_issues_top.tt >index 7bfc2a49af..3f29bff373 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/bor_issues_top.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/bor_issues_top.tt >@@ -83,38 +83,39 @@ > </ul> > [% END %] > [% END %] >- >- <table> >- <tr> >- <th rowspan="2">Rank</th> >- <th rowspan="2">Patron</th> >- <th rowspan="2">Total</th> >- [% FOREACH loopco IN mainloo.loopcol %] >- <th>[% loopco.coltitle | html %]</th> >- [% END %] >- </tr> >- <tr> >- [% FOREACH loopco IN mainloo.loopcol %] >- <th>Checkout count</th> >- [% END %] >- </tr> >- [% FOREACH loopro IN mainloo.looprow %] >- <tr> >- [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %] >- [% loopro.rowtitle | html %]</td> >- [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %] >- [% IF ( loopro.reference ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.reference | uri %]">[% END %] >- [% IF ( loopro.patron ) %][% loopro.patron | html %][% END %] >- [% IF ( loopro.reference ) %]</a>[% END %] >- </td> >- [% FOREACH loopcel IN loopro.loopcell %] >- [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %] >- [% IF ( loopcel.count ) %][% loopcel.count | html %][% END %] >- </td> >- [% END %] >- </tr> >- [% END %] >- </table> >+ <div class="page-section"> >+ <table> >+ <tr> >+ <th rowspan="2">Rank</th> >+ <th rowspan="2">Patron</th> >+ <th rowspan="2">Total</th> >+ [% FOREACH loopco IN mainloo.loopcol %] >+ <th>[% loopco.coltitle | html %]</th> >+ [% END %] >+ </tr> >+ <tr> >+ [% FOREACH loopco IN mainloo.loopcol %] >+ <th>Checkout count</th> >+ [% END %] >+ </tr> >+ [% FOREACH loopro IN mainloo.looprow %] >+ <tr> >+ [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %] >+ [% loopro.rowtitle | html %]</td> >+ [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %] >+ [% IF ( loopro.reference ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.reference | uri %]">[% END %] >+ [% IF ( loopro.patron ) %][% loopro.patron | html %][% END %] >+ [% IF ( loopro.reference ) %]</a>[% END %] >+ </td> >+ [% FOREACH loopcel IN loopro.loopcell %] >+ [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %] >+ [% IF ( loopcel.count ) %][% loopcel.count | html %][% END %] >+ </td> >+ [% END %] >+ </tr> >+ [% END %] >+ </table> >+ </div> > [% END %] > [% ELSE %] > <h1>Patrons with the most checkouts</h1> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_out.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_out.tt >index f3f1e82bb2..602179bc56 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_out.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_out.tt >@@ -51,24 +51,25 @@ > <p>[% IF ( loopfilte.err ) %] [% END %] [% loopfilte.crit | html %] =[% loopfilte.filter | html %][% IF ( loopfilte.err ) %] [% END %]</p> > [% END %] > [% END %] >- >- <table> >- <tr> >- <th>Num/Patrons</th> >- [% FOREACH loopco IN mainloo.loopcol %] >- <th>[% loopco.coltitle | html %]</th> >- [% END %] >- </tr> >- [% FOREACH loopro IN mainloo.looprow %] >- <tr> >- <td>[% loopro.rowtitle | html %]</td> >- [% FOREACH loopcel IN loopro.loopcell %] >- <td>[% IF ( loopcel.value ) %][% loopcel.value | html %][% END %] >- </td> >- [% END %] >- </tr> >- [% END %] >- </table> >+ <div class="page-section"> >+ <table> >+ <tr> >+ <th>Num/Patrons</th> >+ [% FOREACH loopco IN mainloo.loopcol %] >+ <th>[% loopco.coltitle | html %]</th> >+ [% END %] >+ </tr> >+ [% FOREACH loopro IN mainloo.looprow %] >+ <tr> >+ <td>[% loopro.rowtitle | html %]</td> >+ [% FOREACH loopcel IN loopro.loopcell %] >+ <td>[% IF ( loopcel.value ) %][% loopcel.value | html %][% END %] >+ </td> >+ [% END %] >+ </tr> >+ [% END %] >+ </table> >+ </div> > [% END %] > [% ELSE %] > <h1>Patrons with no checkouts</h1> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_stats.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_stats.tt >index 93d8f13477..8b7243aff1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_stats.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_stats.tt >@@ -63,34 +63,36 @@ > </p> > [% END %] > [% END %] >- <table> >- <tr> >- <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th> >- [% FOREACH loopco IN mainloo.loopcol %] >- <th>[% IF ( loopco.coltitle_display ) %][% loopco.coltitle_display | html %][% ELSE %][% loopco.coltitle | html %][% END %] >- </th> >- [% END %] >- <th>TOTAL</th> >- </tr> >- [% FOREACH loopro IN mainloo.looprow %] >+ <div class="page-section"> >+ <table> >+ <tr> >+ <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th> >+ [% FOREACH loopco IN mainloo.loopcol %] >+ <th>[% IF ( loopco.coltitle_display ) %][% loopco.coltitle_display | html %][% ELSE %][% loopco.coltitle | html %][% END %] >+ </th> >+ [% END %] >+ <th>TOTAL</th> >+ </tr> >+ [% FOREACH loopro IN mainloo.looprow %] >+ <tr> >+ <td>[% IF ( loopro.rowtitle_display ) %][% loopro.rowtitle_display | html %][% ELSE %][% loopro.rowtitle | html %][% END %] >+ </td> >+ [% FOREACH loopcel IN loopro.loopcell %] >+ <td>[% IF ( loopcel.value ) %][% loopcel.value | html %][% ELSE %] [% END %] >+ </td> >+ [% END %] >+ <td>[% loopro.totalrow | html %]</td> >+ </tr> >+ [% END %] > <tr> >- <td>[% IF ( loopro.rowtitle_display ) %][% loopro.rowtitle_display | html %][% ELSE %][% loopro.rowtitle | html %][% END %] >- </td> >- [% FOREACH loopcel IN loopro.loopcell %] >- <td>[% IF ( loopcel.value ) %][% loopcel.value | html %][% ELSE %] [% END %] >- </td> >- [% END %] >- <td>[% loopro.totalrow | html %]</td> >- </tr> >- [% END %] >- <tr> >- <th>TOTAL</th> >- [% FOREACH loopfoote IN mainloo.loopfooter %] >- <th>[% loopfoote.totalcol | html %]</th> >- [% END %] >- <th>[% mainloo.total | html %]</th> >- </tr> >- </table> >+ <th>TOTAL</th> >+ [% FOREACH loopfoote IN mainloo.loopfooter %] >+ <th>[% loopfoote.totalcol | html %]</th> >+ [% END %] >+ <th>[% mainloo.total | html %]</th> >+ </tr> >+ </table> >+ </div> > [% END %] > [% ELSE %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cat_issues_top.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cat_issues_top.tt >index 59d4a927c5..4f92d9a9f7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cat_issues_top.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cat_issues_top.tt >@@ -57,6 +57,7 @@ > [% END %] > [% END %] > >+ <div class="page-section"> > <table> > <tr> <th>Rank/Biblioitemnumbers</th> > [% FOREACH loopco IN mainloo.loopcol %] >@@ -88,6 +89,7 @@ > </tr> > [% END %] > </table> >+ </div> > [% END %] > [% ELSE %] > <h1>Most-circulated items</h1> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt >index 2af8a4ee41..b5abaa8f88 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt >@@ -55,47 +55,48 @@ > <p>[% loopfilte.crit | html %] =[% loopfilte.filter | html %]</p> > [% END %] > [% END %] >- >- <table id="catalogue_stats"> >- <thead> >- <tr> >- <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th> >- [% FOREACH loopco IN mainloo.loopcol %] >- <th>[% loopco.coltitle | html %]</th> >+ <div class="page-section"> >+ <table id="catalogue_stats"> >+ <thead> >+ <tr> >+ <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th> >+ [% FOREACH loopco IN mainloo.loopcol %] >+ <th>[% loopco.coltitle | html %]</th> >+ [% END %] >+ <th>TOTAL</th> >+ </tr> >+ </thead> >+ <tbody> >+ [% FOREACH loopro IN mainloo.looprow %] >+ <tr> >+ [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %] >+ [% loopro.rowtitle | html %]</td> >+ [% FOREACH loopcel IN loopro.loopcell %] >+ [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %] >+ [% IF ( loopcel.value ) %][% loopcel.value | html %] >+ [% ELSE %] >+ [% END %] >+ </td> >+ [% END %] >+ [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %] >+ [% loopro.totalrow | html %] >+ </td> >+ </tr> > [% END %] >- <th>TOTAL</th> >- </tr> >- </thead> >- <tbody> >- [% FOREACH loopro IN mainloo.looprow %] >- <tr> >- [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %] >- [% loopro.rowtitle | html %]</td> >- [% FOREACH loopcel IN loopro.loopcell %] >- [% IF ( loopcel.hilighted ) %]<td>[% ELSE %]<td>[% END %] >- [% IF ( loopcel.value ) %][% loopcel.value | html %] >- [% ELSE %] >- [% END %] >- </td> >- [% END %] >- [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %] >- [% loopro.totalrow | html %] >- </td> >- </tr> >- [% END %] >- </tbody> >- <tfoot> >- <tr> >- <th>TOTAL (all results)</th> >- [% FOREACH loopfoote IN mainloo.loopfooter %] >- <th> >- [% loopfoote.totalcol | html %] >- </th> >- [% END %] >- <th>[% mainloo.total | html %]</th> >- </tr> >- </tfoot> >- </table> >+ </tbody> >+ <tfoot> >+ <tr> >+ <th>TOTAL (all results)</th> >+ [% FOREACH loopfoote IN mainloo.loopfooter %] >+ <th> >+ [% loopfoote.totalcol | html %] >+ </th> >+ [% END %] >+ <th>[% mainloo.total | html %]</th> >+ </tr> >+ </tfoot> >+ </table> >+ </div> > [% END %] > [% ELSE %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_avg_stats.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_avg_stats.tt >index f4e6fcc1f7..40202f2b0a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_avg_stats.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_avg_stats.tt >@@ -52,39 +52,40 @@ > <p>[% IF ( loopfilte.err ) %] [% END %] [% loopfilte.crit | html %] =[% loopfilte.filter | html %][% IF ( loopfilte.err ) %] [% END %]</p> > [% END %] > [% END %] >- >- <table> >- <tr> >- <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th> >- [% FOREACH loopco IN mainloo.loopcol %] >- <th>[% loopco.coltitle | html %]</th> >- [% END %] >- <th>TOTAL</th> >- </tr> >- [% FOREACH loopro IN mainloo.looprow %] >- <tr> >- [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %] >- [% loopro.rowtitle | html %]</td> >- [% FOREACH loopcel IN loopro.loopcell %] >- [% IF ( loopcel.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %] >- [% IF ( loopcel.value ) %][% loopcel.value | html %][% END %] >- </td> >- [% END %] >- [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %] >- [% loopro.totalrow | html %] >- </td> >- </tr> >- [% END %] >- <tr> >- <th>TOTAL</th> >- [% FOREACH loopfoote IN mainloo.loopfooter %] >- <th> >- [% loopfoote.totalcol | html %] >- </th> >- [% END %] >- <th>[% mainloo.total | html %]</th> >- </tr> >- </table> >+ <div class="page-section"> >+ <table> >+ <tr> >+ <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th> >+ [% FOREACH loopco IN mainloo.loopcol %] >+ <th>[% loopco.coltitle | html %]</th> >+ [% END %] >+ <th>TOTAL</th> >+ </tr> >+ [% FOREACH loopro IN mainloo.looprow %] >+ <tr> >+ [% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %] >+ [% loopro.rowtitle | html %]</td> >+ [% FOREACH loopcel IN loopro.loopcell %] >+ [% IF ( loopcel.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %] >+ [% IF ( loopcel.value ) %][% loopcel.value | html %][% END %] >+ </td> >+ [% END %] >+ [% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %] >+ [% loopro.totalrow | html %] >+ </td> >+ </tr> >+ [% END %] >+ <tr> >+ <th>TOTAL</th> >+ [% FOREACH loopfoote IN mainloo.loopfooter %] >+ <th> >+ [% loopfoote.totalcol | html %] >+ </th> >+ [% END %] >+ <th>[% mainloo.total | html %]</th> >+ </tr> >+ </table> >+ </div> > [% END %] > [% ELSE %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt >index e6cfa5aa9c..a7b36b7f69 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt >@@ -85,32 +85,33 @@ > [% END %] > </ul> > [% END %] >- >- <table> >- <tr> >- <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th> >- [% FOREACH loopco IN mainloo.loopcol %] >- <th>[% loopco.coltitle_display | html %]</th> >- [% END %] >- <th>TOTAL</th> >- </tr> >- [% FOREACH loopro IN mainloo.looprow %] >- <tr> >- <td>[% loopro.rowtitle_display or "UNKNOWN VALUE" | html %]</td> >- [% FOREACH loopcel IN loopro.loopcell %] >- <td>[% loopcel.value || 0 | html %]</td> >+ <div class="page-section"> >+ <table> >+ <tr> >+ <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th> >+ [% FOREACH loopco IN mainloo.loopcol %] >+ <th>[% loopco.coltitle_display | html %]</th> > [% END %] >- <td>[% loopro.totalrow | html %]</td> >+ <th>TOTAL</th> > </tr> >- [% END %] >- <tr> >- <th>TOTAL</th> >- [% FOREACH loopfoote IN mainloo.loopfooter %] >- <th>[% loopfoote.totalcol | html %]</th> >- [% END %] >- <th>[% mainloo.total | html %]</th> >- </tr> >- </table> >+ [% FOREACH loopro IN mainloo.looprow %] >+ <tr> >+ <td>[% loopro.rowtitle_display or "UNKNOWN VALUE" | html %]</td> >+ [% FOREACH loopcel IN loopro.loopcell %] >+ <td>[% loopcel.value || 0 | html %]</td> >+ [% END %] >+ <td>[% loopro.totalrow | html %]</td> >+ </tr> >+ [% END %] >+ <tr> >+ <th>TOTAL</th> >+ [% FOREACH loopfoote IN mainloo.loopfooter %] >+ <th>[% loopfoote.totalcol | html %]</th> >+ [% END %] >+ <th>[% mainloo.total | html %]</th> >+ </tr> >+ </table> >+ </div> > [% END %] > [% ELSE %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt >index ec24bc54e4..7cc59112a5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt >@@ -84,62 +84,64 @@ > </div> > [% END %] > >- <table id="lostitems-table"> >- <thead> >- <tr> >- [% IF csv_profiles.count %] >- <th class="NoSort"></th> >- [% END %] >- <th>Title</th> >- <th>Author</th> >- <th>Lost status</th> >- <th>Lost on</th> >- <th>Barcode</th> >- <th>Call number</th> >- <th>Date last seen</th> >- <th>Price</th> >- <th>Rep.price</th> >- <th>Library</th> >- <th>Item type</th> >- <th>Collection</th> >- <th>Current library</th> >- <th>Location</th> >- <th>Not for loan status</th> >- <th>Notes</th> >- </tr> >- </thead> >- <tbody> >- [% FOREACH item IN items %] >+ <div class="page-section"> >+ <table id="lostitems-table"> >+ <thead> > <tr> > [% IF csv_profiles.count %] >- <td style="text-align:center;vertical-align:middle"> >- <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" /> >- </td> >+ <th class="NoSort"></th> > [% END %] >- <td> >- <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber | uri %]">[% item.biblio.title | html %]</a> >- </td> >- <td>[% item.biblio.author | html %]</td> >- <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) | html %] >- <td data-order="[% item.itemlost_on | html %]">[% item.itemlost_on | $KohaDates %]</td> >- <td> >- <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% item.biblionumber | uri %]">[% item.barcode | html %]</a> >- </td> >- <td>[% item.itemcallnumber | html %]</td> >- <td data-order="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates with_hours => 1 %]</td> >- <td>[% item.price | $Price %]</td> >- <td>[% item.replacementprice | $Price %]</td> >- <td>[% Branches.GetName(item.homebranch) | html %]</td> >- <td>[% ItemTypes.GetDescription(item.effective_itemtype) | html %]</td> >- <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]</td> >- <td>[% Branches.GetName(item.holdingbranch) | html %]</td> >- <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]</td> >- <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) | html %] >- <td>[% item.itemnotes | $raw %]</td> >+ <th>Title</th> >+ <th>Author</th> >+ <th>Lost status</th> >+ <th>Lost on</th> >+ <th>Barcode</th> >+ <th>Call number</th> >+ <th>Date last seen</th> >+ <th>Price</th> >+ <th>Rep.price</th> >+ <th>Library</th> >+ <th>Item type</th> >+ <th>Collection</th> >+ <th>Current library</th> >+ <th>Location</th> >+ <th>Not for loan status</th> >+ <th>Notes</th> > </tr> >- [% END %] >- </tbody> >- </table> >+ </thead> >+ <tbody> >+ [% FOREACH item IN items %] >+ <tr> >+ [% IF csv_profiles.count %] >+ <td style="text-align:center;vertical-align:middle"> >+ <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" /> >+ </td> >+ [% END %] >+ <td> >+ <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber | uri %]">[% item.biblio.title | html %]</a> >+ </td> >+ <td>[% item.biblio.author | html %]</td> >+ <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => item.itemlost ) | html %] >+ <td data-order="[% item.itemlost_on | html %]">[% item.itemlost_on | $KohaDates %]</td> >+ <td> >+ <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% item.biblionumber | uri %]">[% item.barcode | html %]</a> >+ </td> >+ <td>[% item.itemcallnumber | html %]</td> >+ <td data-order="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates with_hours => 1 %]</td> >+ <td>[% item.price | $Price %]</td> >+ <td>[% item.replacementprice | $Price %]</td> >+ <td>[% Branches.GetName(item.homebranch) | html %]</td> >+ <td>[% ItemTypes.GetDescription(item.effective_itemtype) | html %]</td> >+ <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]</td> >+ <td>[% Branches.GetName(item.holdingbranch) | html %]</td> >+ <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]</td> >+ <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) | html %] >+ <td>[% item.itemnotes | $raw %]</td> >+ </tr> >+ [% END %] >+ </tbody> >+ </table> >+ </div> > [% END %] > [% ELSE %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemtypes.tt >index 13cd7aeafb..d0365de233 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemtypes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemtypes.tt >@@ -51,28 +51,30 @@ > [% IF ( do_it ) %] > [% FOREACH mainloo IN mainloop %] > <h1>Reports on item types [% IF branch %] held at [% Branches.GetName( branch ) | html %][% END %]</h1> >- <table id="itemtypest"> >- <thead> >- <tr> >- <th>Item type</th> >- <th>Count</th> >- </tr> >- </thead> >- <tfoot> >- <tr> >- <th>TOTAL</th> >- <th>[% mainloo.total | html %]</th> >- </tr> >- </tfoot> >- <tbody> >- [% FOREACH loopitemtyp IN mainloo.loopitemtype %] >- <tr> >- <td>[% ItemTypes.GetDescription( loopitemtyp.itemtype ) | html %]</td> >- <td>[% loopitemtyp.count | html %]</td> >- </tr> >- [% END %] >- </tbody> >- </table> >+ <div class="page-section"> >+ <table id="itemtypest"> >+ <thead> >+ <tr> >+ <th>Item type</th> >+ <th>Count</th> >+ </tr> >+ </thead> >+ <tfoot> >+ <tr> >+ <th>TOTAL</th> >+ <th>[% mainloo.total | html %]</th> >+ </tr> >+ </tfoot> >+ <tbody> >+ [% FOREACH loopitemtyp IN mainloo.loopitemtype %] >+ <tr> >+ <td>[% ItemTypes.GetDescription( loopitemtyp.itemtype ) | html %]</td> >+ <td>[% loopitemtyp.count | html %]</td> >+ </tr> >+ [% END %] >+ </tbody> >+ </table> >+ </div> > [% END %] > [% ELSE %] > <h1>View a count of items held at your library grouped by item type</h1> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reserves_stats.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reserves_stats.tt >index 741985ca55..54bf02a73f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reserves_stats.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/reserves_stats.tt >@@ -81,34 +81,35 @@ > [% END %] > > [% FOREACH mainloo IN mainloop %] >- >- <table> >- <tr> >- <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th> >- [% FOREACH loopco IN mainloo.loopcol %] >- <th>[% PROCESS reservestatus field=mainloo.column value=loopco.coltitle_display %]</th> >- [% END %] >- <th>TOTAL</th> >- </tr> >- [% FOREACH loopro IN mainloo.looprow %] >- <tr> >- <td>[% PROCESS reservestatus field=mainloo.line value=loopro.rowtitle_display %]</td> >- [% FOREACH loopcel IN loopro.loopcell %] >- <td align="center"> >- [% IF ( loopcel.url_complement ) %]<a href="reserves_stats.pl?output=[% loopcel.output | uri %]&[% loopcel.url_complement | uri %]">[% loopcel.value | html %]</a>[% ELSE %][% loopcel.value | html %][% END %] >- </td> >+ <div class="page-section"> >+ <table> >+ <tr> >+ <th>[% mainloo.line | html %] / [% mainloo.column | html %]</th> >+ [% FOREACH loopco IN mainloo.loopcol %] >+ <th>[% PROCESS reservestatus field=mainloo.column value=loopco.coltitle_display %]</th> > [% END %] >- <td align="center">[% loopro.totalrow | html %]</td> >+ <th>TOTAL</th> > </tr> >- [% END %] >- <tr> >- <th>TOTAL</th> >- [% FOREACH loopfoote IN mainloo.loopfooter %] >- <th>[% loopfoote.totalcol | html %]</th> >- [% END %] >- <th>[% mainloo.total | html %]</th> >- </tr> >- </table> >+ [% FOREACH loopro IN mainloo.looprow %] >+ <tr> >+ <td>[% PROCESS reservestatus field=mainloo.line value=loopro.rowtitle_display %]</td> >+ [% FOREACH loopcel IN loopro.loopcell %] >+ <td align="center"> >+ [% IF ( loopcel.url_complement ) %]<a href="reserves_stats.pl?output=[% loopcel.output | uri %]&[% loopcel.url_complement | uri %]">[% loopcel.value | html %]</a>[% ELSE %][% loopcel.value | html %][% END %] >+ </td> >+ [% END %] >+ <td align="center">[% loopro.totalrow | html %]</td> >+ </tr> >+ [% END %] >+ <tr> >+ <th>TOTAL</th> >+ [% FOREACH loopfoote IN mainloo.loopfooter %] >+ <th>[% loopfoote.totalcol | html %]</th> >+ [% END %] >+ <th>[% mainloo.total | html %]</th> >+ </tr> >+ </table> >+ </div> > [% END %] > [% END %] > [% ELSE %] >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39053
:
177579
|
177658
|
177943