From 10d0c4ccabfd91737356c1ce1caec12caabefda6 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 13 Mar 2024 12:00:52 -0400 Subject: [PATCH] Bug 36305: Tidy forms Signed-off-by: David Nind Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer --- .../prog/en/modules/tools/inventory.tt | 625 +++++++++--------- 1 file changed, 327 insertions(+), 298 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt index 6634c6ce2a..2add52e253 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt @@ -49,313 +49,342 @@
[% INCLUDE 'messages.inc' %] -

Inventory

- [% IF (moddatecount) %]
[% moddatecount | html %] items modified : datelastseen set to [% date | $KohaDates with_hours => 1 %]
-
Number of potential barcodes read: [% LinesRead | html %]
[% END %] - [% IF (errorfile) %]
[% errorfile | html %] can't be opened
[% END %] - [% IF (err_length && err_length==1) %]
There was 1 barcode that was too long.
[% END %] - [% IF (err_length && err_length>1) %]
There were [% err_length | html %] barcodes that were too long.
[% END %] - [% IF (err_data && err_data==1) %]
There was 1 barcode that contained at least one unprintable character.
[% END %] - [% IF (err_data && err_data>1) %]
There were [% err_data | html %] barcodes that contained at least one unprintable character.
[% END %] - [% FOREACH error IN errorloop %] -
- [% error.barcode | html %] - [% IF (error.ERR_BARCODE) %]: Barcode not found.[% END %] - [% IF (error.ERR_WTHDRAWN) %]: Item withdrawn.[% END %] - [% IF (error.ERR_ONLOAN_RET) %]: Item was on loan. It was checked in before being marked as seen.[% END %] - [% IF (error.ERR_ONLOAN_NOT_RET) %]: Item was on loan and could not be checked in.[% END %] -
- [% END %] - [% UNLESS op %] - -
- [% INCLUDE 'csrf-token.inc' %] -
- Use a barcode file -
    -
  1. -
  2. -
-
-
- Or scan items one by one -
    -
  1. - - -
  2. -
-
-
- Parameters -
    -
  1. -
  2. -
  3. -
  4. -
-
-
- Item location filters -
  1. - - Home library - Current library -
  2. - -
  3. - [% IF (authorised_values) %] -
  4. - -
  5. - [% END %] - [% SET ccodes = AuthorisedValues.GetAuthValueDropbox('CCODE') %] - [% IF ( ccodes.count > 0 ) %] -
  6. - - -
  7. - [% END %] -
  8. - - (items.itemcallnumber)
  9. -
  10. - -
  11. - - -
  12. -
-
- -
- Optional filters for inventory list or comparing barcodes - Scanned items are expected to match one of the selected "not for loan" criteria if any are checked. -
-
- [% FOREACH status IN statuses %] - [% IF (status.values) %] -
- [% status.fieldname | html %] -
    - [% FOREACH value IN status.values %] - [% IF (value.lib) %] -
  • -
-
- [% END %] - [% END %] -
-
    -
  1. -
    - - - (Skip records marked as seen on or after this date.) -
  2. -
  3. - - [% IF (ignoreissued) %] - - [% ELSE %] - - [% END %] -
  4. -
  5. - - -
  6. -
  7. - -
    -

    Select all | Clear all

    -
    - [% FOREACH itemtype IN itemtypes %] -
    - - + +
  8. + [% END %] + + [% SET ccodes = AuthorisedValues.GetAuthValueDropbox('CCODE') %] + [% IF ( ccodes.count > 0 ) %] +
  9. + + +
  10. + [% END %] + +
  11. + + (items.itemcallnumber) +
  12. +
  13. + + +
  14. + + +
  15. + +
+
+ +
+ Optional filters for inventory list or comparing barcodes + Scanned items are expected to match one of the selected "not for loan" criteria if any are checked. +
+
+ [% FOREACH status IN statuses %] + [% IF (status.values) %] +
+ [% status.fieldname | html %] +
    + [% FOREACH value IN status.values %] + [% IF (value.lib) %] +
  • + + +
  • + [% END %] + [% END %] +
+
+ [% END %] + [% END %]
- [% IF loop.count() % 4 == 0 && !loop.last() %] - -
- [% END %] - [% END %] -
- - - - -
- -
- Additional options -
    - -
  1. - - -
  2. -
- -
+
    +
  1. +
    + + + (Skip records marked as seen on or after this date.) +
  2. +
  3. + + [% IF (ignoreissued) %] + + [% ELSE %] + + [% END %] +
  4. +
  5. + + +
  6. +
  7. + +
    +

    Select all | Clear all

    +
    + [% FOREACH itemtype IN itemtypes %] +
    + + +
    + [% IF loop.count() % 4 == 0 && !loop.last() %] +
    +
    + [% END %] + [% END %] +
    +
    +
  8. +
+ + +
+ Additional options +
    +
  1. + + +
  2. +
+
+ +
+ +
+
+ [% END %] -
- + [% IF op %] +
+ [% INCLUDE 'csrf-token.inc' %] + + + + + + + + [% UNLESS uploadedbarcodesflag %] + + [% END %] - [% END %] - [% IF (op) %] - - [% INCLUDE 'csrf-token.inc' %] - - - - - - - - [% UNLESS uploadedbarcodesflag %] - - [% END %] +
+ + + + [% UNLESS uploadedbarcodesflag %] + + [% END %] + + + + + + + + + + + + + + + [% FOREACH result IN loop %] + + [% UNLESS uploadedbarcodesflag %] + + [% END %] -
-
SeenBarcodeCall numberLibraryCollection codeTitleNot for loanLostDamagedWithdrawnLast seenProblems
+ +
- - - [% UNLESS uploadedbarcodesflag %][% END %] - - - - - - - - - - - - - - - [% FOREACH result IN loop %] - - [% UNLESS uploadedbarcodesflag %] - - [% END %] - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + [% END %] + +
SeenBarcodeCall numberLibraryCollection codeTitleNot for loanLostDamagedWithdrawnLast seenProblems
- - - [% result.barcode | html %] - - [% result.itemcallnumber | html %] - - [% Branches.GetName( result.homebranch ) | html %] - [% result.location | html %] - - [% result.ccode | html %] - - [% result.title | html %] - [% IF ( result.author ) %] - by [% result.author | html %] - [% END %] - - [% result.notforloan | html %] - - [% result.itemlost | html %] - - [% result.damaged | html %] - - [% result.withdrawn | html %] - - [% result.datelastseen | $KohaDates with_hours => 1 %] - - [% FOREACH problem IN result.problems %] - [% IF problem.key == 'wrongplace' %] - Found in wrong place
- [% ELSIF problem.key == 'changestatus' %] - [% IF result.notforloan %] - Item has unselected "Not for loan" status "[% result.notforloan | html %]"
- [% ELSE %] - Items has no "not for loan" status
+
+ [% result.barcode | html %] + + [% result.itemcallnumber | html %] + + [% Branches.GetName( result.homebranch ) | html %] + [% result.location | html %] + + [% result.ccode | html %] + + [% result.title | html %] + [% IF ( result.author ) %] + by [% result.author | html %] + [% END %] + + [% result.notforloan | html %] + + [% result.itemlost | html %] + + [% result.damaged | html %] + + [% result.withdrawn | html %] + + [% result.datelastseen | $KohaDates with_hours => 1 %] + + [% FOREACH problem IN result.problems %] + [% IF problem.key == 'wrongplace' %] + Found in wrong place
+ [% ELSIF problem.key == 'changestatus' %] + [% IF result.notforloan %] + Item has unselected "Not for loan" status "[% result.notforloan | html %]"
+ [% ELSE %] + Items has no "not for loan" status
+ [% END %] + [% ELSIF problem.key == 'not_scanned' %] + Missing (not scanned)
+ [% ELSIF problem.key == 'checkedout' %] + Still checked out
+ [% ELSIF problem.key == 'no_barcode' %] + No barcode
+ [% ELSIF problem.key == 'out_of_order' %] + Item may be shelved out of order
+ [% END %] + [% END %] +
+
+ +
+ + [% UNLESS uploadedbarcodesflag %] + + + + [% END %] - [% ELSIF problem.key == 'not_scanned' %] - Missing (not scanned)
- [% ELSIF problem.key == 'checkedout' %] - Still checked out
- [% ELSIF problem.key == 'no_barcode' %] - No barcode
- [% ELSIF problem.key == 'out_of_order' %] - Item may be shelved out of order
+
[% END %] - [% END %] - - - [% END %] - - - - -
- [% UNLESS uploadedbarcodesflag %] - - - - - [% END %] - - - - [% END %]
-- 2.39.5