[% IF no_op_set %]
[% INCLUDE 'stockrotation-toolbar.inc' %]
[% END %]
[% ELSIF (op == 'create_edit_rota') %]
[% IF rota.rota_id %]
[% END %]
[% ELSIF (op == 'manage_stages') %]
[% INCLUDE 'stockrotation-toolbar.inc' %]
[% IF error == 'invalid_form' %]
[% END %]
[% IF existing_stages.size > 0 %]
[% ELSE %]
[% END %]
[% ELSIF (op == 'create_edit_stage') %]
[% IF stage.id %]
[% END %]
[% ELSIF (op == 'confirm_remove_from_rota') %]
[% ELSIF (op == 'confirm_delete_stage') %]
[% ELSIF (op == 'manage_items') %]
[% INCLUDE 'stockrotation-toolbar.inc' %]
[% IF error %]
[% IF items.count > 0 %]
[% ELSE %]
[% END %]
[% ELSIF op == 'add_items_to_rota' %]
Stock rotation
[% IF existing_rotas.size > 0 %]Name | Cyclical | Active | Description | Number of items | |
---|---|---|---|---|---|
[% rota.title | html %] | [% rota.cyclical ? 'Yes' : 'No' | html %] | [% rota.active ? 'Yes' : 'No' | html %] | [% rota.description | html %] | [% rota.stockrotationitems.count | html %] |
Edit
|
Edit "[% rota.title | html %]"
[% ELSE %]Create new rota
[% END %] [% IF error == 'invalid_form' %]There was a problem with your form submission
There was a problem with your form submission
Manage [% rota.title | html %] stages
Stages can be re-ordered by using the handle to drag and drop them to their new position
Library
Duration (days)
Edit "[% Branches.GetName(stage.branchcode_id) | html %]"
[% ELSE %]Create new stage
[% END %] [% IF error == 'invalid_form' %]There was a problem with your form submission
Are you sure you want to delete this stage?
[% IF stage.stockrotationitems.count > 0 %]This stage contains the following item(s):
-
[% FOREACH item IN stage.stockrotationitems %]
- [% item.itemnumber.biblio.title | html %] (Barcode: [% item.itemnumber.barcode | html %]) [% END %]
[% IF error == "item_not_found" %]
[% END %]
The item was not found
[% ELSIF error == "already_on_rota" %]This item is already on this rota
[% END %]Manage items assigned to [% rota.title | html %]
Barcode | Title | Author | Call number | In transit | Stages & duration in days (current stage highlighted) |
|
---|---|---|---|---|---|---|
[% item.itemnumber.barcode | html %] | [% item.itemnumber.biblio.title | html %] | [% item.itemnumber.biblio.author | html %] | [% item.itemnumber.itemcallnumber | html %] | [% item.itemnumber.get_transfer ? 'Yes' : 'No' | html %] | [% FOREACH this_stage IN stages %] [% IF this_stage.stage_id == item.stage.stage_id %] [% ELSE %] [% END %] [% Branches.GetName(this_stage.branchcode_id) | html %] ([% this_stage.duration | html %]) » [% END %] [% IF stages.size > 0 %] [% rota.cyclical ? 'START' : 'END' | html %] [% END %] | [% in_transit = item.itemnumber.get_transfer %] [% IF !in_transit && stages.size > 1 %] [% ELSE %] [% END %] Move to next stage [% IF !in_transit %] [% ELSE %] [% END %] [% IF item.indemand %] Remove "In demand" [% ELSE %] Add "In demand" [% END %] [% IF !in_transit %] [% ELSE %] [% END %] Remove from rota |
[% IF barcode_status.ok.size > 0 %]
[% IF barcode_status.on_other.size > 0 %]
[% END %]
[% END %]
Items added to rota:
-
[% FOREACH item_ok IN barcode_status.ok %]
- [% item_ok.biblio.title | html %] [% END %]
Items already on this rota:
-
[% FOREACH item_on_this IN barcode_status.on_this %]
- [% item_on_this.biblio.title | html %] [% END %]
Barcodes not found:
-
[% FOREACH barcode_not_found IN barcode_status.not_found %]
- [% barcode_not_found | html %] [% END %]
Items found on other rotas:
-
[% FOREACH item_on_other IN barcode_status.on_other %]
- [% item_on_other.biblio.title | html %] [% END %]