Lines 370-377
Link Here
|
370 |
[% IF stage.stockrotationitems.count > 0 %] |
370 |
[% IF stage.stockrotationitems.count > 0 %] |
371 |
<p>This stage contains the following item(s):</p> |
371 |
<p>This stage contains the following item(s):</p> |
372 |
<ul> |
372 |
<ul> |
373 |
[% FOREACH item IN stage.stockrotationitems %] |
373 |
[% FOREACH sritem IN stage.stockrotationitems %] |
374 |
<li>[% item.itemnumber.biblio.title | html %] (Barcode: [% item.itemnumber.barcode | html %])</li> |
374 |
<li>[% sritem.item.biblio.title | html %] (Barcode: [% sritem.item.barcode | html %])</li> |
375 |
[% END %] |
375 |
[% END %] |
376 |
</ul> |
376 |
</ul> |
377 |
[% END %] |
377 |
[% END %] |
Lines 436-442
Link Here
|
436 |
</form> <!-- /#dd_rota_item_form --> |
436 |
</form> <!-- /#dd_rota_item_form --> |
437 |
</div> <!-- /#addItemsModal --> |
437 |
</div> <!-- /#addItemsModal --> |
438 |
|
438 |
|
439 |
[% IF items.count > 0 %] |
439 |
[% IF sritems.count > 0 %] |
440 |
<table id="stock_rotation_manage_items" class="items_table" role="grid"> |
440 |
<table id="stock_rotation_manage_items" class="items_table" role="grid"> |
441 |
<thead> |
441 |
<thead> |
442 |
<tr> |
442 |
<tr> |
Lines 450-465
Link Here
|
450 |
</tr> |
450 |
</tr> |
451 |
</thead> |
451 |
</thead> |
452 |
<tbody> |
452 |
<tbody> |
453 |
[% FOREACH item IN items %] |
453 |
[% FOREACH sritem IN sritems %] |
454 |
<tr> |
454 |
<tr> |
455 |
<td><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.id | uri %]&biblionumber=[% item.itemnumber.biblio.id | uri %]#item[% item.id | uri %]">[% item.itemnumber.barcode | html %]</a></td> |
455 |
<td><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% sritem.id | uri %]&biblionumber=[% sritem.item.biblio.id | uri %]#item[% sritem.id | uri %]">[% sritem.item.barcode | html %]</a></td> |
456 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.itemnumber.biblio.id | uri %]">[% item.itemnumber.biblio.title | html %]</a></td> |
456 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% sritem.item.biblio.id | uri %]">[% sritem.item.biblio.title | html %]</a></td> |
457 |
<td>[% item.itemnumber.biblio.author | html %]</td> |
457 |
<td>[% sritem.item.biblio.author | html %]</td> |
458 |
<td>[% item.itemnumber.itemcallnumber | html %]</td> |
458 |
<td>[% sritem.item.itemcallnumber | html %]</td> |
459 |
<td>[% item.itemnumber.get_transfer ? 'Yes' : 'No' | html %]</td> |
459 |
<td>[% sritem.item.get_transfer ? 'Yes' : 'No' | html %]</td> |
460 |
<td> |
460 |
<td> |
461 |
[% FOREACH this_stage IN stages %] |
461 |
[% FOREACH this_stage IN stages %] |
462 |
[% IF this_stage.stage_id == item.stage.stage_id %] |
462 |
[% IF this_stage.stage_id == sritem.stage.stage_id %] |
463 |
<span class="stage highlight_stage"> |
463 |
<span class="stage highlight_stage"> |
464 |
[% ELSE %] |
464 |
[% ELSE %] |
465 |
<span class="stage"> |
465 |
<span class="stage"> |
Lines 473-481
Link Here
|
473 |
[% END %] |
473 |
[% END %] |
474 |
</td> |
474 |
</td> |
475 |
<td class="actions"> |
475 |
<td class="actions"> |
476 |
[% in_transit = item.itemnumber.get_transfer %] |
476 |
[% in_transit = sritem.item.get_transfer %] |
477 |
[% IF !in_transit && stages.size > 1 %] |
477 |
[% IF !in_transit && stages.size > 1 %] |
478 |
<a class="btn btn-default btn-xs" href="?op=move_to_next_stage&rota_id=[% rota.id | uri %]&item_id=[% item.id | uri %]&stage_id=[% item.stage.stage_id | uri %]"> |
478 |
<a class="btn btn-default btn-xs" href="?op=move_to_next_stage&rota_id=[% rota.id | uri %]&item_id=[% sritem.id | uri %]&stage_id=[% sritem.stage.stage_id | uri %]"> |
479 |
[% ELSE %] |
479 |
[% ELSE %] |
480 |
<a class="btn btn-default btn-xs" disabled> |
480 |
<a class="btn btn-default btn-xs" disabled> |
481 |
[% END %] |
481 |
[% END %] |
Lines 483-501
Link Here
|
483 |
Move to next stage |
483 |
Move to next stage |
484 |
</a> |
484 |
</a> |
485 |
[% IF !in_transit %] |
485 |
[% IF !in_transit %] |
486 |
<a class="btn btn-default btn-xs" href="?op=toggle_in_demand&stage_id=[% item.stage.stage_id | uri %]&item_id=[% item.id | uri %]&rota_id=[% rota.id | uri %]"> |
486 |
<a class="btn btn-default btn-xs" href="?op=toggle_in_demand&stage_id=[% sritem.stage.stage_id | uri %]&item_id=[% sritem.id | uri %]&rota_id=[% rota.id | uri %]"> |
487 |
[% ELSE %] |
487 |
[% ELSE %] |
488 |
<a class="btn btn-default btn-xs" disabled> |
488 |
<a class="btn btn-default btn-xs" disabled> |
489 |
[% END %] |
489 |
[% END %] |
490 |
<i class="fa fa-fire"></i> |
490 |
<i class="fa fa-fire"></i> |
491 |
[% IF item.indemand %] |
491 |
[% IF sritem.indemand %] |
492 |
<span>Remove "In demand"</span> |
492 |
<span>Remove "In demand"</span> |
493 |
[% ELSE %] |
493 |
[% ELSE %] |
494 |
<span>Add "In demand"</span> |
494 |
<span>Add "In demand"</span> |
495 |
[% END %] |
495 |
[% END %] |
496 |
</a> |
496 |
</a> |
497 |
[% IF !in_transit %] |
497 |
[% IF !in_transit %] |
498 |
<a class="btn btn-default btn-xs" href="?op=confirm_remove_from_rota&stage_id=[% item.stage.stage_id | uri %]&item_id=[% item.id | uri %]&rota_id=[% rota.id | uri %]"> |
498 |
<a class="btn btn-default btn-xs" href="?op=confirm_remove_from_rota&stage_id=[% sritem.stage.stage_id | uri %]&item_id=[% sritem.id | uri %]&rota_id=[% rota.id | uri %]"> |
499 |
[% ELSE %] |
499 |
[% ELSE %] |
500 |
<a class="btn btn-default btn-xs" disabled> |
500 |
<a class="btn btn-default btn-xs" disabled> |
501 |
[% END %] |
501 |
[% END %] |