Lines 273-279
Link Here
|
273 |
</div> <!-- /#addStageModal --> |
273 |
</div> <!-- /#addStageModal --> |
274 |
|
274 |
|
275 |
[% IF existing_stages.size > 0 %] |
275 |
[% IF existing_stages.size > 0 %] |
276 |
<div id="manage_stages"> |
276 |
<div id="manage_stages" class="page-section"> |
277 |
<div id="manage_stages_help"> |
277 |
<div id="manage_stages_help"> |
278 |
Stages can be re-ordered by using the <i class="drag_handle fa fa-lg fa-bars"></i>handle to drag and drop them to their new position |
278 |
Stages can be re-ordered by using the <i class="drag_handle fa fa-lg fa-bars"></i>handle to drag and drop them to their new position |
279 |
</div> |
279 |
</div> |
Lines 442-517
Link Here
|
442 |
</div> <!-- /#addItemsModal --> |
442 |
</div> <!-- /#addItemsModal --> |
443 |
|
443 |
|
444 |
[% IF sritems.count > 0 %] |
444 |
[% IF sritems.count > 0 %] |
445 |
<table id="stock_rotation_manage_items" class="items_table" role="grid"> |
445 |
<div class="page-section"> |
446 |
<thead> |
446 |
<table id="stock_rotation_manage_items" class="items_table" role="grid"> |
447 |
<tr> |
447 |
<thead> |
448 |
<th>Barcode</th> |
|
|
449 |
<th>Title</th> |
450 |
<th>Author</th> |
451 |
<th>Call number</th> |
452 |
<th class="NoSearch">In transit</th> |
453 |
<th class="NoSort noExport">Stages & duration in days<br>(current stage highlighted)</th> |
454 |
<th class="NoSort noExport"> </th> |
455 |
</tr> |
456 |
</thead> |
457 |
<tbody> |
458 |
[% FOREACH sritem IN sritems %] |
459 |
<tr> |
448 |
<tr> |
460 |
<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> |
449 |
<th>Barcode</th> |
461 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% sritem.item.biblio.id | uri %]">[% sritem.item.biblio.title | html %]</a></td> |
450 |
<th>Title</th> |
462 |
<td>[% sritem.item.biblio.author | html %]</td> |
451 |
<th>Author</th> |
463 |
<td>[% sritem.item.itemcallnumber | html %]</td> |
452 |
<th>Call number</th> |
464 |
<td>[% sritem.item.get_transfer ? 'Yes' : 'No' | html %]</td> |
453 |
<th class="NoSearch">In transit</th> |
465 |
<td> |
454 |
<th class="NoSort noExport">Stages & duration in days<br>(current stage highlighted)</th> |
466 |
[% FOREACH this_stage IN stages %] |
455 |
<th class="NoSort noExport"> </th> |
467 |
[% IF this_stage.stage_id == sritem.stage.stage_id %] |
456 |
</tr> |
468 |
<span class="stage highlight_stage"> |
457 |
</thead> |
|
|
458 |
<tbody> |
459 |
[% FOREACH sritem IN sritems %] |
460 |
<tr> |
461 |
<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> |
462 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% sritem.item.biblio.id | uri %]">[% sritem.item.biblio.title | html %]</a></td> |
463 |
<td>[% sritem.item.biblio.author | html %]</td> |
464 |
<td>[% sritem.item.itemcallnumber | html %]</td> |
465 |
<td>[% sritem.item.get_transfer ? 'Yes' : 'No' | html %]</td> |
466 |
<td> |
467 |
[% FOREACH this_stage IN stages %] |
468 |
[% IF this_stage.stage_id == sritem.stage.stage_id %] |
469 |
<span class="stage highlight_stage"> |
470 |
[% ELSE %] |
471 |
<span class="stage"> |
472 |
[% END %] |
473 |
[% Branches.GetName(this_stage.branchcode_id) | html %] ([% this_stage.duration | html %]) |
474 |
</span> |
475 |
» |
476 |
[% END %] |
477 |
[% IF stages.size > 0 %] |
478 |
<span class="stage">[% rota.cyclical ? 'START' : 'END' | html %]</span> |
479 |
[% END %] |
480 |
</td> |
481 |
<td class="actions"> |
482 |
[% in_transit = sritem.item.get_transfer %] |
483 |
[% IF !in_transit && stages.size > 1 %] |
484 |
<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 %]"> |
469 |
[% ELSE %] |
485 |
[% ELSE %] |
470 |
<span class="stage"> |
486 |
<a class="btn btn-default btn-xs" disabled> |
471 |
[% END %] |
487 |
[% END %] |
472 |
[% Branches.GetName(this_stage.branchcode_id) | html %] ([% this_stage.duration | html %]) |
488 |
<i class="fa fa-arrow-right"></i> |
473 |
</span> |
489 |
Move to next stage |
474 |
» |
490 |
</a> |
475 |
[% END %] |
491 |
[% IF !in_transit %] |
476 |
[% IF stages.size > 0 %] |
492 |
<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 %]"> |
477 |
<span class="stage">[% rota.cyclical ? 'START' : 'END' | html %]</span> |
|
|
478 |
[% END %] |
479 |
</td> |
480 |
<td class="actions"> |
481 |
[% in_transit = sritem.item.get_transfer %] |
482 |
[% IF !in_transit && stages.size > 1 %] |
483 |
<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 %]"> |
484 |
[% ELSE %] |
485 |
<a class="btn btn-default btn-xs" disabled> |
486 |
[% END %] |
487 |
<i class="fa fa-arrow-right"></i> |
488 |
Move to next stage |
489 |
</a> |
490 |
[% IF !in_transit %] |
491 |
<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 %]"> |
492 |
[% ELSE %] |
493 |
<a class="btn btn-default btn-xs" disabled> |
494 |
[% END %] |
495 |
<i class="fa fa-fire"></i> |
496 |
[% IF sritem.indemand %] |
497 |
<span>Remove "In demand"</span> |
498 |
[% ELSE %] |
493 |
[% ELSE %] |
499 |
<span>Add "In demand"</span> |
494 |
<a class="btn btn-default btn-xs" disabled> |
500 |
[% END %] |
495 |
[% END %] |
501 |
</a> |
496 |
<i class="fa fa-fire"></i> |
502 |
[% IF !in_transit %] |
497 |
[% IF sritem.indemand %] |
503 |
<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 %]"> |
498 |
<span>Remove "In demand"</span> |
504 |
[% ELSE %] |
499 |
[% ELSE %] |
505 |
<a class="btn btn-default btn-xs" disabled> |
500 |
<span>Add "In demand"</span> |
506 |
[% END %] |
501 |
[% END %] |
507 |
<i class="fa fa-trash"></i> |
502 |
</a> |
508 |
Remove from rota |
503 |
[% IF !in_transit %] |
509 |
</a> |
504 |
<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 %]"> |
510 |
</td> |
505 |
[% ELSE %] |
511 |
</tr> |
506 |
<a class="btn btn-default btn-xs" disabled> |
512 |
[% END %] |
507 |
[% END %] |
513 |
</tbody> |
508 |
<i class="fa fa-trash"></i> |
514 |
</table> |
509 |
Remove from rota |
|
|
510 |
</a> |
511 |
</td> |
512 |
</tr> |
513 |
[% END %] |
514 |
</tbody> |
515 |
</table> |
516 |
</div> <!-- /.page-section --> |
515 |
[% ELSE %] |
517 |
[% ELSE %] |
516 |
|
518 |
|
517 |
<div class="dialog message"> |
519 |
<div class="dialog message"> |
Lines 525-535
Link Here
|
525 |
|
527 |
|
526 |
[% ELSIF op == 'add_items_to_rota' %] |
528 |
[% ELSIF op == 'add_items_to_rota' %] |
527 |
|
529 |
|
528 |
<div class="dialog message"> |
530 |
<h1>Add items to rota report</h1> |
529 |
<h1>Add items to rota report</h1> |
|
|
530 |
</div> |
531 |
|
531 |
|
532 |
<div> |
532 |
<div class="page-section"> |
533 |
[% IF barcode_status.ok.size > 0 %] |
533 |
[% IF barcode_status.ok.size > 0 %] |
534 |
<h4>Items added to rota:</h4> |
534 |
<h4>Items added to rota:</h4> |
535 |
<ul> |
535 |
<ul> |
Lines 563-568
Link Here
|
563 |
</ul> |
563 |
</ul> |
564 |
[% END %] |
564 |
[% END %] |
565 |
</div> |
565 |
</div> |
|
|
566 |
|
566 |
[% IF barcode_status.on_other.size > 0 %] |
567 |
[% IF barcode_status.on_other.size > 0 %] |
567 |
<form id="add_rota_item_form" method="post" enctype="multipart/form-data"> |
568 |
<form id="add_rota_item_form" method="post" enctype="multipart/form-data"> |
568 |
<fieldset> |
569 |
<fieldset> |
569 |
- |
|
|