6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha › Catalog › Stock rotation details for [% biblio.title | html %]</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 [% INCLUDE 'browser-strings.inc' %]
11 <body id="catalog_stockrotation" class="catalog">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'cat-search.inc' %]
16 <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>[% biblio.title | html %][% FOREACH subtitle IN biblio.subtitles %][% subtitle.subfield | html %][% END %]</i></div>
18 <div id="doc3" class="yui-t2">
24 <div id="catalogue_detail_biblio">
27 <h1 class="title">Stock rotation details for [% biblio.title | html %]</h1>
28 [% IF rotas.count > 0 && items.size > 0 %]
30 <table class="items_table dataTable no-footer" role="grid">
38 <th>Stages & duration in days<br>(current stage highlighted)</th>
43 [% FOREACH item IN items %]
45 <td>[% item.bib_item.barcode | html %]</td>
46 <td>[% item.bib_item.itemcallnumber | html %]</td>
48 [% item.rota.title | html %]
52 [% IF !item.rota.active %]
53 <span class="highlighted-row">
55 [% IF item.rota.active %]
60 [% IF !item.rota.active %]
66 [% IF item.bib_item.get_transfer %]
73 [% FOREACH this_stage IN item.stages %]
74 [% IF this_stage.stage_id == item.stockrotationitem.stage.stage_id %]
75 <span class="stage highlight_stage">
79 [% Branches.GetName(this_stage.branchcode_id) | html %] ([% this_stage.duration | html %])
83 [% IF item.stages.size > 0 %]
85 [% IF item.rota.cyclical %]
94 [% IF item.stockrotationitem %]
95 [% in_transit = item.bib_item.get_transfer %]
96 [% IF !in_transit && item.stages.size > 1 %]
97 <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 %]">
99 <a class="btn btn-default btn-xs" disabled>
101 <i class="fa fa-arrow-right"></i>
105 <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 %]">
107 <a class="btn btn-default btn-xs" disabled>
109 <i class="fa fa-fire"></i>
110 [% IF item.stockrotationitem.indemand %]
117 <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 %]">
119 <a class="btn btn-default btn-xs" disabled>
121 <i class="fa fa-trash"></i>
125 <form class="rota_select_form" method="post" enctype="multipart/form-data">
126 <select class="item_select_rota" name="rota_id">
127 [% FOREACH rota IN rotas %]
128 <option value="[% rota.rota_id | uri %]">[% rota.title | html %]</option>
131 <button class="btn btn-default btn-xs" type="submit"><i class="fa fa-plus"></i> Add to rota</button>
132 <input type="hidden" name="op" value="add_item_to_rota"></input>
133 <input type="hidden" name="item_id" value="[% item.bib_item.id | uri %]"></input>
134 <input type="hidden" name="biblionumber" value="[% biblionumber | uri %]"></input>
143 [% IF !items || items.size == 0 %]
144 <h1>No physical items for this record</h1>
146 [% IF !rotas || rotas.count == 0 %]
147 <h1>There are no rotas with stages assigned</h1>
149 [% ELSIF op == 'confirm_remove_from_rota' %]
150 <div class="dialog alert">
151 <h3>Are you sure you want to remove this item from it's rota?</h3>
153 <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>
154 <a class="btn btn-default btn-xs deny" href="?biblionumber=[% biblionumber | uri %]"><i class="fa fa-fw fa-remove"></i>No</a>
164 [% INCLUDE 'biblio-view-menu.inc' %]
168 [% MACRO jsinclude BLOCK %]
169 [% Asset.js("js/browser.js") | $raw %]
170 <script type="text/javascript">
171 var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
176 [% INCLUDE 'intranet-bottom.inc' %]