View | Details | Raw Unified | Return to bug 29809
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt (-15 / +15 lines)
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 %]&amp;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 %]&amp;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&amp;rota_id=[% rota.id | uri %]&amp;item_id=[% item.id | uri %]&amp;stage_id=[% item.stage.stage_id | uri %]">
478
                                                <a class="btn btn-default btn-xs" href="?op=move_to_next_stage&amp;rota_id=[% rota.id | uri %]&amp;item_id=[% sritem.id | uri %]&amp;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&amp;stage_id=[% item.stage.stage_id | uri %]&amp;item_id=[% item.id | uri %]&amp;rota_id=[% rota.id | uri %]">
486
                                                <a class="btn btn-default btn-xs" href="?op=toggle_in_demand&amp;stage_id=[% sritem.stage.stage_id | uri %]&amp;item_id=[% sritem.id | uri %]&amp;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 &quot;In demand&quot;</span>
492
                                                <span>Remove &quot;In demand&quot;</span>
493
                                                [% ELSE %]
493
                                                [% ELSE %]
494
                                                <span>Add &quot;In demand&quot;</span>
494
                                                <span>Add &quot;In demand&quot;</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&amp;stage_id=[% item.stage.stage_id | uri %]&amp;item_id=[% item.id | uri %]&amp;rota_id=[% rota.id | uri %]">
498
                                                <a class="btn btn-default btn-xs" href="?op=confirm_remove_from_rota&amp;stage_id=[% sritem.stage.stage_id | uri %]&amp;item_id=[% sritem.id | uri %]&amp;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 %]
(-)a/tools/stockrotation.pl (-2 / +1 lines)
Lines 268-274 if (!defined $op) { Link Here
268
    $template->param(
268
    $template->param(
269
        rota_id  => $params{rota_id},
269
        rota_id  => $params{rota_id},
270
        error    => $params{error},
270
        error    => $params{error},
271
        items    => $items,
271
        sritems  => $sritems,
272
        branches => get_branches(),
272
        branches => get_branches(),
273
        stages   => get_stages($rota),
273
        stages   => get_stages($rota),
274
        rota     => $rota,
274
        rota     => $rota,
275
- 

Return to bug 29809