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 [% WRAPPER 'header.inc' %]
13 [% INCLUDE 'cat-search.inc' %]
16 [% WRAPPER 'sub-header.inc' %]
17 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
20 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
23 <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
26 [% INCLUDE 'biblio-title.inc' link = 1 %]
29 <a href="#" aria-current="page">
30 Stock rotation details
37 <div class="main container-fluid">
39 <div class="col-sm-10 col-sm-push-2">
42 <div id="catalogue_detail_biblio">
45 <h1 class="title">Stock rotation details for [% INCLUDE 'biblio-title.inc' %]</h1>
46 [% IF rotas.count > 0 && items.size > 0 %]
48 <table class="items_table dataTable no-footer" role="grid">
56 <th>Stages & duration in days<br>(current stage highlighted)</th>
61 [% FOREACH item IN items %]
63 <td>[% item.bib_item.barcode | html %]</td>
64 <td>[% item.bib_item.itemcallnumber | html %]</td>
66 [% item.rota.title | html %]
70 [% IF !item.rota.active %]
71 <span class="highlighted-row">
73 [% IF item.rota.active %]
78 [% IF !item.rota.active %]
84 [% IF item.bib_item.get_transfer %]
91 [% FOREACH this_stage IN item.stages %]
92 [% IF this_stage.stage_id == item.stockrotationitem.stage.stage_id %]
93 <span class="stage highlight_stage">
97 [% Branches.GetName(this_stage.branchcode_id) | html %] ([% this_stage.duration | html %])
101 [% IF item.stages.size > 0 %]
103 [% IF item.rota.cyclical %]
112 [% IF item.stockrotationitem %]
113 [% in_transit = item.bib_item.get_transfer %]
114 [% IF !in_transit && item.stages.size > 1 %]
115 <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 %]">
117 <a class="btn btn-default btn-xs" disabled>
119 <i class="fa fa-arrow-right"></i>
123 <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 %]">
125 <a class="btn btn-default btn-xs" disabled>
127 <i class="fa fa-fire"></i>
128 [% IF item.stockrotationitem.indemand %]
135 <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 %]">
137 <a class="btn btn-default btn-xs" disabled>
139 <i class="fa fa-trash"></i>
143 <form class="rota_select_form" method="post" enctype="multipart/form-data">
144 <select class="item_select_rota" name="rota_id">
145 [% FOREACH rota IN rotas %]
146 <option value="[% rota.rota_id | uri %]">[% rota.title | html %]</option>
149 <button class="btn btn-default btn-xs" type="submit"><i class="fa fa-plus"></i> Add to rota</button>
150 <input type="hidden" name="op" value="add_item_to_rota" />
151 <input type="hidden" name="item_id" value="[% item.bib_item.id | uri %]" />
152 <input type="hidden" name="biblionumber" value="[% biblionumber | uri %]" />
161 [% IF !items || items.size == 0 %]
162 <h1>No physical items for this record</h1>
164 [% IF !rotas || rotas.count == 0 %]
165 <h1>There are no rotas with stages assigned</h1>
167 [% ELSIF op == 'confirm_remove_from_rota' %]
168 <div class="dialog alert">
169 <h3>Are you sure you want to remove this item from it's rota?</h3>
171 <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>
172 <a class="btn btn-default btn-xs deny" href="?biblionumber=[% biblionumber | uri %]"><i class="fa fa-fw fa-remove"></i>No</a>
180 </div> <!-- /.col-sm-10.col-sm-push-2 -->
182 <div class="col-sm-2 col-sm-pull-10">
184 [% INCLUDE 'biblio-view-menu.inc' %]
186 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
187 </div> <!-- /.row -->
189 [% MACRO jsinclude BLOCK %]
190 [% Asset.js("js/browser.js") | $raw %]
192 var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
197 [% INCLUDE 'intranet-bottom.inc' %]