[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE Branches %] [% USE KohaDates %] [% USE TablesSettings %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Stock rotation › Koha [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %]
[% IF no_op_set %] [% INCLUDE 'stockrotation-toolbar.inc' %]

Stock rotation

[% IF existing_rotas.size > 0 %] [% FOREACH rota IN existing_rotas %] [% END %]
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
[% IF !rota.active %] Activate [% ELSE %] Deactivate [% END %]
[% END %] [% ELSIF (op == 'create_edit_rota') %] [% IF rota.rota_id %]

Edit "[% rota.title | html %]"

[% ELSE %]

Create new rota

[% END %] [% IF error == 'invalid_form' %]

There was a problem with your form submission

[% END %]
  1. Required
Cancel
[% IF rota.rota_id %] [% END %]
[% ELSIF (op == 'manage_stages') %] [% INCLUDE 'stockrotation-toolbar.inc' %] [% IF error == 'invalid_form' %]

There was a problem with your form submission

[% END %]

Manage [% rota.title | html %] stages

[% IF existing_stages.size > 0 %]
Stages can be re-ordered by using the handle to drag and drop them to their new position
Library Duration (days)
    [% FOREACH stage IN existing_stages %]
  • [% IF existing_stages.size > 1 %] [% END %] [% Branches.GetName(stage.branchcode_id) | html %] [% stage.duration | html %] Edit Delete
  • [% END %]
[% ELSE %]

This rota has no stages.

[% END %]

Return to rotas

[% ELSIF (op == 'create_edit_stage') %] [% IF stage.id %]

Edit "[% Branches.GetName(stage.branchcode_id) | html %]"

[% ELSE %]

Create new stage

[% END %] [% IF error == 'invalid_form' %]

There was a problem with your form submission

[% END %]
  1. Required
  2. Required
Cancel
[% ELSIF (op == 'confirm_remove_from_rota') %]

Are you sure you wish to remove this item from it's rota

Yes No

[% ELSIF (op == 'confirm_delete_stage') %]

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 %]
[% END %]

Yes No

[% ELSIF (op == 'manage_items') %] [% INCLUDE 'stockrotation-toolbar.inc' %] [% IF error %]
[% IF error == "item_not_found" %]

The item was not found

[% ELSIF error == "already_on_rota" %]

This item is already on this rota

[% END %]
[% END %]

Manage items assigned to [% rota.title | html %]

[% IF items.count > 0 %] [% FOREACH item IN items %] [% END %]
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
[% ELSE %]

There are no items assigned to this rota.

[% END %]

Return to rotas

[% ELSIF op == 'add_items_to_rota' %]

Add items to rota report

[% IF barcode_status.ok.size > 0 %]

Items added to rota:

    [% FOREACH item_ok IN barcode_status.ok %]
  • [% item_ok.biblio.title | html %]
  • [% END %]
[% END %] [% IF barcode_status.on_this.size > 0 %]

Items already on this rota:

    [% FOREACH item_on_this IN barcode_status.on_this %]
  • [% item_on_this.biblio.title | html %]
  • [% END %]
[% END %] [% IF barcode_status.not_found.size > 0 %]

Barcodes not found:

    [% FOREACH barcode_not_found IN barcode_status.not_found %]
  • [% barcode_not_found | html %]
  • [% END %]
[% END %] [% IF barcode_status.on_other.size > 0 %]

Items found on other rotas:

    [% FOREACH item_on_other IN barcode_status.on_other %]
  • [% item_on_other.biblio.title | html %]
  • [% END %]
[% END %]
[% IF barcode_status.on_other.size > 0 %]
Select items to move to this rota: [% FOREACH item_on_other IN barcode_status.on_other %]
  • [% item_on_other.biblio.title | html %] (Currently on "[% item_on_other.stockrotationitem.stage.rota.title | html %]")
  • [% END %]
    [% END %]

    Return to rota

    [% END %]
    [% MACRO jsinclude BLOCK %] [% Asset.js("js/tools-menu.js") | $raw %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'columns_settings.inc' %] [% Asset.js("js/pages/stockrotation.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]