Bugzilla – Attachment 129103 Details for
Bug 28909
Allow interlibrary loans illview method to use backend template
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29809: Update stockration tool to reflect method name change
Bug-29809-Update-stockration-tool-to-reflect-metho.patch (text/plain), 7.85 KB, created by
Nick Clemens (kidclamp)
on 2022-01-06 16:39:18 UTC
(
hide
)
Description:
Bug 29809: Update stockration tool to reflect method name change
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2022-01-06 16:39:18 UTC
Size:
7.85 KB
patch
obsolete
>From 9e76d9509ac6e3f6b2fa75b70bc189bb8af0e1de Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 6 Jan 2022 13:58:26 +0000 >Subject: [PATCH] Bug 29809: Update stockration tool to reflect method name > change > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> > >https://bugs.koha-community.org/show_bug.cgi?id=28909 >--- > .../prog/en/modules/tools/stockrotation.tt | 30 +++++++++---------- > tools/stockrotation.pl | 2 +- > 2 files changed, 16 insertions(+), 16 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt >index 9cdaf56000..0deccf65ce 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt >@@ -370,8 +370,8 @@ > [% IF stage.stockrotationitems.count > 0 %] > <p>This stage contains the following item(s):</p> > <ul> >- [% FOREACH item IN stage.stockrotationitems %] >- <li>[% item.itemnumber.biblio.title | html %] (Barcode: [% item.itemnumber.barcode | html %])</li> >+ [% FOREACH sritem IN stage.stockrotationitems %] >+ <li>[% sritem.item.biblio.title | html %] (Barcode: [% sritem.item.barcode | html %])</li> > [% END %] > </ul> > [% END %] >@@ -436,7 +436,7 @@ > </form> <!-- /#dd_rota_item_form --> > </div> <!-- /#addItemsModal --> > >- [% IF items.count > 0 %] >+ [% IF sritems.count > 0 %] > <table id="stock_rotation_manage_items" class="items_table" role="grid"> > <thead> > <tr> >@@ -450,16 +450,16 @@ > </tr> > </thead> > <tbody> >- [% FOREACH item IN items %] >+ [% FOREACH sritem IN sritems %] > <tr> >- <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> >- <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.itemnumber.biblio.id | uri %]">[% item.itemnumber.biblio.title | html %]</a></td> >- <td>[% item.itemnumber.biblio.author | html %]</td> >- <td>[% item.itemnumber.itemcallnumber | html %]</td> >- <td>[% item.itemnumber.get_transfer ? 'Yes' : 'No' | html %]</td> >+ <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> >+ <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% sritem.item.biblio.id | uri %]">[% sritem.item.biblio.title | html %]</a></td> >+ <td>[% sritem.item.biblio.author | html %]</td> >+ <td>[% sritem.item.itemcallnumber | html %]</td> >+ <td>[% sritem.item.get_transfer ? 'Yes' : 'No' | html %]</td> > <td> > [% FOREACH this_stage IN stages %] >- [% IF this_stage.stage_id == item.stage.stage_id %] >+ [% IF this_stage.stage_id == sritem.stage.stage_id %] > <span class="stage highlight_stage"> > [% ELSE %] > <span class="stage"> >@@ -473,9 +473,9 @@ > [% END %] > </td> > <td class="actions"> >- [% in_transit = item.itemnumber.get_transfer %] >+ [% in_transit = sritem.item.get_transfer %] > [% IF !in_transit && stages.size > 1 %] >- <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 %]"> >+ <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 %]"> > [% ELSE %] > <a class="btn btn-default btn-xs" disabled> > [% END %] >@@ -483,19 +483,19 @@ > Move to next stage > </a> > [% IF !in_transit %] >- <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 %]"> >+ <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 %]"> > [% ELSE %] > <a class="btn btn-default btn-xs" disabled> > [% END %] > <i class="fa fa-fire"></i> >- [% IF item.indemand %] >+ [% IF sritem.indemand %] > <span>Remove "In demand"</span> > [% ELSE %] > <span>Add "In demand"</span> > [% END %] > </a> > [% IF !in_transit %] >- <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 %]"> >+ <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 %]"> > [% ELSE %] > <a class="btn btn-default btn-xs" disabled> > [% END %] >diff --git a/tools/stockrotation.pl b/tools/stockrotation.pl >index b1d2548456..4523c99174 100755 >--- a/tools/stockrotation.pl >+++ b/tools/stockrotation.pl >@@ -268,7 +268,7 @@ if (!defined $op) { > $template->param( > rota_id => $params{rota_id}, > error => $params{error}, >- items => $items, >+ sritems => $sritems, > branches => get_branches(), > stages => get_stages($rota), > rota => $rota, >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28909
:
124174
|
124270
|
124271
|
129102
|
129103
|
129104
|
138856
|
138857
|
138858
|
138922
|
138923