@@ -, +, @@ --- .../prog/en/includes/stockrotation-toolbar.inc | 9 + .../prog/en/modules/tools/stockrotation.tt | 435 +++++++++++++++++ tools/stockrotation.pl | 519 +++++++++++++++++++++ 3 files changed, 963 insertions(+) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/stockrotation-toolbar.inc create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt create mode 100755 tools/stockrotation.pl --- a/koha-tmpl/intranet-tmpl/prog/en/includes/stockrotation-toolbar.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/stockrotation-toolbar.inc @@ -0,0 +1,9 @@ +[% USE Koha %] +
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt @@ -0,0 +1,435 @@ +[% USE Koha %] +[% USE Branches %] +[% INCLUDE 'doc-head-open.inc' %] +Name | +Cyclical | +Active | +Description | +Number of items | ++ + + [% FOREACH rota IN existing_rotas %] + |
---|---|---|---|---|---|
[% rota.title %] | +[% rota.cyclical ? 'Yes' : 'No'%] | +[% rota.active ? 'Yes' : 'No'%] | +[% rota.description %] | +[% rota.stockrotationitems.count %] | +
+
+
+ Edit
+
+
+
+
+
+
+
+ [% IF !rota.active %]
+ Activate
+ [% ELSE %]
+ Deactivate
+ [% END %]
+
+ |
+
This stage contains the following item(s):
+Barcode | +Title | +Author | +Shelfmark | +In transit | +Stages & duration in days (current stage highlighted) |
+ + + + [% FOREACH item IN items %] + |
---|---|---|---|---|---|---|
[% item.itemnumber.barcode %] | +[% item.itemnumber.biblio.title %] | +[% item.itemnumber.biblio.author %] | +[% item.itemnumber.itemcallnumber %] | +[% item.itemnumber.get_transfer ? 'Yes' : 'No' %] | ++ [% FOREACH this_stage IN stages %] + [% IF this_stage.stage_id == item.stage.stage_id %] + + [% ELSE %] + + [% END %] + [% Branches.GetName(this_stage.branchcode_id) %] ([% this_stage.duration %]) + + » + [% END %] + [% IF stages.size > 0 %] + [% rota.cyclical ? 'START' : 'END' %] + [% END %] + | ++ [% in_transit = item.itemnumber.get_transfer %] + [% IF !in_transit && stages.size > 1 %] + + [% ELSE %] + + [% END %] + + Move to next stage + + [% IF !in_transit %] + + [% ELSE %] + + [% END %] + + [% item.indemand ? 'Remove "In demand"' : 'Add "In demand"' %] + + [% IF !in_transit %] + + [% ELSE %] + + [% END %] + + Remove from rota + + | +