From a2444c546ea09199b86ad122c4787f1d45b9bf78 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sat, 7 Jan 2023 00:25:40 +0000 Subject: [PATCH] Bug 32586: Reindent items with no checkouts report template MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The indentation in the template was off and also full of tab characters, so this does some clean-up prior to doing some other small changes on separate bugs. To test: * Run the 'Items with no checkouts' report in the report module * Note: If you get an error in this step, you need to turn of sql_strict_mode in your koha-conf.xml, but this bug is out of scope here. * Apply patch * Rerun the report, it should appear unchanged Signed-off-by: Frédéric Demians → Nice to the eyes, and no regression Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/reports/catalogue_out.tt | 268 ++++++++++-------- 1 file changed, 145 insertions(+), 123 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_out.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_out.tt index a08465d7c4..12e29249bb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_out.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_out.tt @@ -3,9 +3,10 @@ Items with no checkouts › Reports › Koha [% INCLUDE 'doc-head-close.inc' %] + [% WRAPPER 'header.inc' %] [% INCLUDE 'cat-search.inc' %] @@ -33,137 +34,158 @@
+ [% IF ( do_it ) %] +

Items with no checkouts

+ [% FOREACH mainloo IN mainloop %] + [% IF ( mainloo.loopfilter ) %] +

Filtered on:

+ [% FOREACH loopfilte IN mainloo.loopfilter %] + [% IF ( loopfilte.err ) %] +

Error: + [% ELSE %] +

+ [% END %] + [% IF ( loopfilte.sql ) %][% END %] + [% loopfilte.crit | html %] = [% loopfilte.filter | html %] + [% IF ( loopfilte.sql ) %][% END %] +

+ [% END %] + [% END %] -[% IF ( do_it ) %] -

Items with no checkouts

- [% FOREACH mainloo IN mainloop %] - [% IF ( mainloo.loopfilter ) %] -

Filtered on:

- [% FOREACH loopfilte IN mainloo.loopfilter %] - [% IF ( loopfilte.err ) %]

Error: - [% ELSE %]

- [% END %] - [% IF ( loopfilte.sql ) %][% END %] - [% loopfilte.crit | html %] = [% loopfilte.filter | html %] - [% IF ( loopfilte.sql ) %][% END %] -

- [% END %] - [% END %] - - [% IF ( mainloo.looptables ) %] -

Summary

- - - - [% FOREACH looptable IN mainloo.looptables %] - - - - - - [% END %] - - -
GroupCall number rangeNumber of items displayedTotal items in group
[% looptable.coltitle | html %][% IF ( looptable.looptable_count ) %] - [% looptable.looptable_first | html %] to [% looptable.looptable_last | html %] - [% END %] - [% looptable.looptable_count | html %][% looptable.coltitle_count | html %]
TOTAL[% mainloo.total_looptable_count | html %][% mainloo.total_coltitle_count | html %]
+ [% IF ( mainloo.looptables ) %] +

Summary

+ + + + + + + + [% FOREACH looptable IN mainloo.looptables %] + + + + + + + [% END %] + + + + + + +
GroupCall number rangeNumber of items displayedTotal items in group
+ [% looptable.coltitle | html %] + + [% IF ( looptable.looptable_count ) %] + [% looptable.looptable_first | html %] to [% looptable.looptable_last | html %] + [% END %] + [% looptable.looptable_count | html %][% looptable.coltitle_count | html %]
TOTAL[% mainloo.total_looptable_count | html %][% mainloo.total_coltitle_count | html %]
+ [% END %] - [% END %] - [% FOREACH looptable IN mainloo.looptables %] -

- [% looptable.coltitle | html %] -

- - - - - - - - [% IF ( looptable.looprow ) %] - [% FOREACH loopro IN looptable.looprow %] - - - - - - - - [% END %] - [% ELSE %] - - - [% END %] -
#Call numberBarcodeItem details
[% loop.count | html %][% IF ( loopro.itemcallnumber ) %][% loopro.itemcallnumber | html %][% ELSE %]No call number[% END %][% IF ( loopro.barcode ) %][% loopro.barcode | html %][% ELSE %]No barcode[% END %]

[% IF ( loopro.title ) %][% loopro.title | html %][% ELSE %]NO TITLE[% END %] [% IF ( loopro.author ) %] by [% loopro.author | html %][% END %]

- [% IF ( loopro.branch ) %]at [% Branches.GetName( loopro.branch ) | html %][% END %] -
No items for [% looptable.coltitle | html %]
- [% END %] - [% END %] -[% ELSE %] -

Items with no checkouts

-
- -
-
    -
  1. -
  2. -
  3. - -
  4. -
-
- -
- Limits -
    -
  1. - - -
  2. -
  3. -
-
+ [% FOREACH looptable IN mainloo.looptables %] +

+ + [% looptable.coltitle | html %] +

+ + + + + + + + [% IF ( looptable.looprow ) %] + [% FOREACH loopro IN looptable.looprow %] + + + + + + + [% END %] + [% ELSE %] + + + + [% END %] +
#Call numberBarcodeItem details
[% loop.count | html %][% IF ( loopro.itemcallnumber ) %][% loopro.itemcallnumber | html %][% ELSE %]No call number[% END %][% IF ( loopro.barcode ) %][% loopro.barcode | html %][% ELSE %]No barcode[% END %] +

[% IF ( loopro.title ) %][% loopro.title | html %][% ELSE %]NO TITLE[% END %] [% IF ( loopro.author ) %] by [% loopro.author | html %][% END %]

+ [% IF ( loopro.branch ) %]at [% Branches.GetName( loopro.branch ) | html %][% END %] +
No items for [% looptable.coltitle | html %]
+ [% END %] + [% END %] + [% ELSE %] -
- - - - -
-
-[% END %] +

Items with no checkouts

+ +
+
+
    +
  1. + + +
  2. +
  3. + + +
  4. +
+
+ +
+ Limits +
    +
  1. + + +
  2. +
  3. + + +
  4. +
+
+ +
+ + + + +
+
+ [% END %]
-
-
-
+ + [% INCLUDE 'intranet-bottom.inc' %] -- 2.39.5