6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Stock rotation details for [% INCLUDE 'biblio-title-head.inc' %] › Catalog › Koha</title>
8 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="catalog_stockrotation" class="catalog">
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'cat-search.inc' %]
15 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
18 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
21 <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
24 [% INCLUDE 'biblio-title.inc' link = 1 %]
27 <a href="#" aria-current="page">
28 Stock rotation details
34 <div class="main container-fluid">
36 <div class="col-sm-10 col-sm-push-2">
39 <div id="catalogue_detail_biblio">
42 <h1 class="title">Stock rotation details for [% INCLUDE 'biblio-title.inc' %]</h1>
43 [% IF rotas.count > 0 && items.size > 0 %]
45 <table class="items_table dataTable no-footer" role="grid">
53 <th>Stages & duration in days<br>(current stage highlighted)</th>
58 [% FOREACH item IN items %]
60 <td>[% item.bib_item.barcode | html %]</td>
61 <td>[% item.bib_item.itemcallnumber | html %]</td>
63 [% item.rota.title | html %]
67 [% IF !item.rota.active %]
68 <span class="highlighted-row">
70 [% IF item.rota.active %]
75 [% IF !item.rota.active %]
81 [% IF item.bib_item.get_transfer %]
88 [% FOREACH this_stage IN item.stages %]
89 [% IF this_stage.stage_id == item.stockrotationitem.stage.stage_id %]
90 <span class="stage highlight_stage">
94 [% Branches.GetName(this_stage.branchcode_id) | html %] ([% this_stage.duration | html %])
98 [% IF item.stages.size > 0 %]
100 [% IF item.rota.cyclical %]
109 [% IF item.stockrotationitem %]
110 [% in_transit = item.bib_item.get_transfer %]
111 [% IF !in_transit && item.stages.size > 1 %]
112 <a class="btn btn-default btn-xs" href="?op=move_to_next_stage&stage_id=[% item.stockrotationitem.stage.stage_id | uri %]&item_id=[% item.bib_item.id | uri %]&biblionumber=[% biblionumber | uri %]">
114 <a class="btn btn-default btn-xs" disabled>
116 <i class="fa fa-arrow-right"></i>
120 <a class="btn btn-default btn-xs" href="?op=toggle_in_demand&stage_id=[% item.stockrotationitem.stage.stage_id | uri %]&item_id=[% item.bib_item.id | uri %]&biblionumber=[% biblionumber | uri %]">
122 <a class="btn btn-default btn-xs" disabled>
124 <i class="fa fa-fire"></i>
125 [% IF item.stockrotationitem.indemand %]
132 <a class="btn btn-default btn-xs" href="?op=confirm_remove_from_rota&stage_id=[% item.stockrotationitem.stage.stage_id | uri %]&item_id=[% item.bib_item.id | uri %]&biblionumber=[% biblionumber | uri %]">
134 <a class="btn btn-default btn-xs" disabled>
136 <i class="fa fa-trash"></i>
140 <form class="rota_select_form" method="post" enctype="multipart/form-data">
141 <select class="item_select_rota" name="rota_id">
142 [% FOREACH rota IN rotas %]
143 <option value="[% rota.rota_id | uri %]">[% rota.title | html %]</option>
146 <button class="btn btn-default btn-xs" type="submit"><i class="fa fa-plus"></i> Add to rota</button>
147 <input type="hidden" name="op" value="add_item_to_rota" />
148 <input type="hidden" name="item_id" value="[% item.bib_item.id | uri %]" />
149 <input type="hidden" name="biblionumber" value="[% biblionumber | uri %]" />
158 [% IF !items || items.size == 0 %]
159 <h1>No physical items for this record</h1>
161 [% IF !rotas || rotas.count == 0 %]
162 <h1>There are no rotas with stages assigned</h1>
164 [% ELSIF op == 'confirm_remove_from_rota' %]
165 <div class="dialog alert">
166 <h3>Are you sure you want to remove this item from it's rota?</h3>
168 <a class="btn btn-default btn-xs approve" href="?op=remove_item_from_stage&stage_id=[% stage_id | uri %]&item_id=[% item_id | uri %]&biblionumber=[% biblionumber | uri %]"><i class="fa fa-fw fa-check"></i>Yes</a>
169 <a class="btn btn-default btn-xs deny" href="?biblionumber=[% biblionumber | uri %]"><i class="fa fa-fw fa-remove"></i>No</a>
177 </div> <!-- /.col-sm-10.col-sm-push-2 -->
179 <div class="col-sm-2 col-sm-pull-10">
181 [% INCLUDE 'biblio-view-menu.inc' %]
183 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
184 </div> <!-- /.row -->
186 [% MACRO jsinclude BLOCK %]
187 [% Asset.js("js/browser.js") | $raw %]
189 var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
194 [% INCLUDE 'intranet-bottom.inc' %]