6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha › Catalog › Stock rotation details for [% INCLUDE 'biblio-title-head.inc' %]</title>
8 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="catalog_stockrotation" class="catalog">
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'cat-search.inc' %]
15 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> › Stock rotation details for <i>[% INCLUDE 'biblio-title.inc' %]</i></div>
17 <div class="main container-fluid">
19 <div class="col-sm-10 col-sm-push-2">
22 <div id="catalogue_detail_biblio">
25 <h1 class="title">Stock rotation details for [% INCLUDE 'biblio-title.inc' %]</h1>
26 [% IF rotas.count > 0 && items.size > 0 %]
28 <table class="items_table dataTable no-footer" role="grid">
36 <th>Stages & duration in days<br>(current stage highlighted)</th>
41 [% FOREACH item IN items %]
43 <td>[% item.bib_item.barcode | html %]</td>
44 <td>[% item.bib_item.itemcallnumber | html %]</td>
46 [% item.rota.title | html %]
50 [% IF !item.rota.active %]
51 <span class="highlighted-row">
53 [% IF item.rota.active %]
58 [% IF !item.rota.active %]
64 [% IF item.bib_item.get_transfer %]
71 [% FOREACH this_stage IN item.stages %]
72 [% IF this_stage.stage_id == item.stockrotationitem.stage.stage_id %]
73 <span class="stage highlight_stage">
77 [% Branches.GetName(this_stage.branchcode_id) | html %] ([% this_stage.duration | html %])
81 [% IF item.stages.size > 0 %]
83 [% IF item.rota.cyclical %]
92 [% IF item.stockrotationitem %]
93 [% in_transit = item.bib_item.get_transfer %]
94 [% IF !in_transit && item.stages.size > 1 %]
95 <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 %]">
97 <a class="btn btn-default btn-xs" disabled>
99 <i class="fa fa-arrow-right"></i>
103 <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 %]">
105 <a class="btn btn-default btn-xs" disabled>
107 <i class="fa fa-fire"></i>
108 [% IF item.stockrotationitem.indemand %]
115 <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 %]">
117 <a class="btn btn-default btn-xs" disabled>
119 <i class="fa fa-trash"></i>
123 <form class="rota_select_form" method="post" enctype="multipart/form-data">
124 <select class="item_select_rota" name="rota_id">
125 [% FOREACH rota IN rotas %]
126 <option value="[% rota.rota_id | uri %]">[% rota.title | html %]</option>
129 <button class="btn btn-default btn-xs" type="submit"><i class="fa fa-plus"></i> Add to rota</button>
130 <input type="hidden" name="op" value="add_item_to_rota" />
131 <input type="hidden" name="item_id" value="[% item.bib_item.id | uri %]" />
132 <input type="hidden" name="biblionumber" value="[% biblionumber | uri %]" />
141 [% IF !items || items.size == 0 %]
142 <h1>No physical items for this record</h1>
144 [% IF !rotas || rotas.count == 0 %]
145 <h1>There are no rotas with stages assigned</h1>
147 [% ELSIF op == 'confirm_remove_from_rota' %]
148 <div class="dialog alert">
149 <h3>Are you sure you want to remove this item from it's rota?</h3>
151 <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>
152 <a class="btn btn-default btn-xs deny" href="?biblionumber=[% biblionumber | uri %]"><i class="fa fa-fw fa-remove"></i>No</a>
160 </div> <!-- /.col-sm-10.col-sm-push-2 -->
162 <div class="col-sm-2 col-sm-pull-10">
164 [% INCLUDE 'biblio-view-menu.inc' %]
166 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
167 </div> <!-- /.row -->
169 [% MACRO jsinclude BLOCK %]
170 [% INCLUDE 'strings.inc' %]
171 [% Asset.js("js/browser.js") | $raw %]
173 var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
178 [% INCLUDE 'intranet-bottom.inc' %]