Bugzilla – Attachment 81441 Details for
Bug 15184
Ability to duplicate existing order lines to a given basket
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15184: add missing filters
Bug-15184-add-missing-filters.patch (text/plain), 12.94 KB, created by
Katrin Fischer
on 2018-10-28 22:38:13 UTC
(
hide
)
Description:
Bug 15184: add missing filters
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-10-28 22:38:13 UTC
Size:
12.94 KB
patch
obsolete
>From d74753527d8335c8839a02bc14c15a2cb5a6177d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 29 Aug 2018 15:17:40 -0300 >Subject: [PATCH] Bug 15184: add missing filters >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/en/includes/filter-orders.inc | 2 +- > .../prog/en/modules/acqui/duplicate_orders.tt | 73 +++++++++++----------- > 2 files changed, 38 insertions(+), 37 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/filter-orders.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/filter-orders.inc >index 84c1bedb20..208b2dcef2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/filter-orders.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/filter-orders.inc >@@ -78,7 +78,7 @@ > [% ELSE %] > <option type="text" value="[% h_loo.budget_id | html %]" branchcode="[% h_loo.budget_branchcode | html %]"> > [% END %] >- [% h_loo.budget_display_name %] >+ [% h_loo.budget_display_name | html %] > </option> > [% END %] > </optgroup> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt >index e90933d919..63af15b558 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt >@@ -1,3 +1,4 @@ >+[% USE raw %] > [% USE Asset %] > [% USE Koha %] > [% USE KohaDates %] >@@ -5,11 +6,11 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Acquisitions › > [% UNLESS blocking_error %] >-Basket [% basket.basketno %] › Duplicate existing orders >+Basket [% basket.basketno | html %] › Duplicate existing orders > [% END %] > </title> > [% INCLUDE 'doc-head-close.inc' %] >-[% Asset.css("css/datatables.css") %] >+[% Asset.css("css/datatables.css") | $raw %] > <style type="text/css"> > .picked_to_duplicate > td { background-color: #bcdb89 !important; } > </style> >@@ -24,8 +25,8 @@ Basket [% basket.basketno %] › Duplicate existing orders > <a href="/cgi-bin/koha/mainpage.pl">Home</a> > › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> > [% UNLESS blocking_error %] >- › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id %]">[% vendor.name %]</a> >- › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]">Basket [% basket.basketno %]</a> >+ › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% vendor.id | uri %]">[% vendor.name | html %]</a> >+ › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">Basket [% basket.basketno | html %]</a> > › Duplicate existing orders > [% END %] > </div> >@@ -54,9 +55,9 @@ Basket [% basket.basketno %] › Duplicate existing orders > <div id="orders_filters"> > [% INCLUDE 'filter-orders.inc' %] > <input type="hidden" name="op" value="select" /> >- <input type="hidden" name="basketno" value="[% basket.basketno %]" /> >+ <input type="hidden" name="basketno" value="[% basket.basketno | html %]" /> > >- <input type="hidden" name="ordernumbers" value="[% ordernumbers.join(',') %]" /> >+ <input type="hidden" name="ordernumbers" value="[% ordernumbers.join(',') | html %]" /> > <fieldset class="action"><input type="submit" value="Search" /></fieldset> > </div> > </fieldset> >@@ -65,18 +66,18 @@ Basket [% basket.basketno %] › Duplicate existing orders > > [% BLOCK display_order_line %] > [% IF selected %] >- <tr class="picked_to_duplicate" data-ordernumber="[% order.ordernumber %]"> >+ <tr class="picked_to_duplicate" data-ordernumber="[% order.ordernumber | html %]"> > [% ELSE %] >- <tr data-ordernumber="[% order.ordernumber %]"> >+ <tr data-ordernumber="[% order.ordernumber | html %]"> > [% END %] > <td> > [% IF selected %] >- <input type="checkbox" name="ordernumber" value="[% order.ordernumber %]" checked="checked" /> >+ <input type="checkbox" name="ordernumber" value="[% order.ordernumber | html %]" checked="checked" /> > [% ELSE %] >- <input type="checkbox" name="ordernumber" value="[% order.ordernumber %]" /> >+ <input type="checkbox" name="ordernumber" value="[% order.ordernumber | html %]" /> > [% END %] > [% order.ordernumber %] >- [% IF order.ordernumber != order.parent_ordernumber %]([% order.parent_ordernumber %])[% END %] >+ [% IF order.ordernumber != order.parent_ordernumber %]([% order.parent_ordernumber | html %])[% END %] > </td> > <td> > [% SWITCH order.orderstatus %] >@@ -87,38 +88,38 @@ Basket [% basket.basketno %] › Duplicate existing orders > [% CASE 'cancelled' %]Cancelled > [% END %] > </td> >- <td>[% order.basketname %] (<a href="basket.pl?basketno=[% order.basketno %]">[% order.basketno %]</a>)</td> >- <td>[% order.authorisedbyname %]</td> >+ <td>[% order.basketname | html %] (<a href="basket.pl?basketno=[% order.basketno | uri %]">[% order.basketno | html %]</a>)</td> >+ <td>[% order.authorisedbyname | html %]</td> > <td> > [% IF ( order.basketgroupid ) %] >- [% order.groupname %] (<a href="basketgroup.pl?op=add&booksellerid=[% order.id %]&basketgroupid=[% order.basketgroupid %]">[% order.basketgroupid %]</a>) >+ [% order.groupname | html %] (<a href="basketgroup.pl?op=add&booksellerid=[% order.id | uri %]&basketgroupid=[% order.basketgroupid %]">[% order.basketgroupid | html %]</a>) > [% ELSE %] > > [% END %] > </td> > <td>[% IF ( order.invoicenumber ) %] >- <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% order.invoiceid %]">[% order.invoicenumber %]</a> >+ <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% order.invoiceid | uri %]">[% order.invoicenumber | html %]</a> > [% ELSE %] > > [% END %] > </td> > <td> >- <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title |html %]</a> >- <br />[% order.author %] <br /> [% order.isbn %] >+ <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]">[% order.title |html %]</a> >+ <br />[% order.author | html %] <br /> [% order.isbn | html %] > </td> >- <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.id %]">[% order.name %]</a></td> >+ <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.id | uri %]">[% order.name | html %]</a></td> > <td><span title="[% order.creationdate %]">[% order.creationdate | $KohaDates %]</span></td> > <td> > [% IF order.datereceived %] >- <span title="[% order.datereceived %]">[% order.datereceived | $KohaDates %]</span> >+ <span title="[% order.datereceived | html %]">[% order.datereceived | $KohaDates %]</span> > [% ELSE %] > <span title="0000-00-00"></span> > [% END %] > </td> >- <td>[% order.quantityreceived %]</td> >- <td>[% order.quantity %]</td> >- <td>[% order.ecost %]</td> >- <td>[% order.budget_name %]</td> >+ <td>[% order.quantityreceived | html %]</td> >+ <td>[% order.quantity | html %]</td> >+ <td>[% order.ecost | html %]</td> >+ <td>[% order.budget_name | html %]</td> > </tr> > [% END %] > >@@ -163,7 +164,7 @@ Basket [% basket.basketno %] › Duplicate existing orders > </table> > <fieldset class="action"> > <input type="hidden" name="op" value="batch_edit" /> >- <input type="hidden" name="basketno" value="[% basket.basketno %]" /> >+ <input type="hidden" name="basketno" value="[% basket.basketno | html %]" /> > <button type="submit" class="btn btn-default go_to_batch_edit">Next <i class="fa fa-fw fa-arrow-right"></i></button> > </fieldset> > </form> >@@ -188,9 +189,9 @@ Basket [% basket.basketno %] › Duplicate existing orders > <select name="all_currency" id="all_currency"> > [% FOREACH currency IN currencies %] > [% IF currency.currency == vendor.listprice %] >- <option value="[% currency.currency %]" selected="selected">[% currency.currency %]</option> >+ <option value="[% currency.currency | html %]" selected="selected">[% currency.currency | html %]</option> > [% ELSIF not currency.archived %] >- <option value="[% currency.currency %]">[% currency.currency %]</option> >+ <option value="[% currency.currency | html %]">[% currency.currency | html %]</option> > [% END %] > [% END %] > </select> >@@ -202,8 +203,8 @@ Basket [% basket.basketno %] › Duplicate existing orders > <select id="all_budget_id" size="1" name="all_budget_id"> > <option value="">Select a fund</option> > [% FOREACH budget_loo IN budget_loop %] >- [% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %]</option> >- [% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %] (inactive)</option> >+ [% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id | html %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]">[% budget_loo.b_txt | html %]</option> >+ [% ELSE %]<option value="[% budget_loo.b_id | html %]" class="b_inactive" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]">[% budget_loo.b_txt | html %] (inactive)</option> > [% END %] > [% END %] > </select> >@@ -244,10 +245,10 @@ Basket [% basket.basketno %] › Duplicate existing orders > > <fieldset class="action"> > [% FOREACH ordernumber IN ordernumbers %] >- <input type="hidden" name="ordernumber" value="[% ordernumber %]" /> >+ <input type="hidden" name="ordernumber" value="[% ordernumber | html %]" /> > [% END %] > <input type="hidden" name="op" value="do_duplicate" /> >- <input type="hidden" name="basketno" value="[% basket.basketno %]" /> >+ <input type="hidden" name="basketno" value="[% basket.basketno | html %]" /> > <button type="submit" class="btn btn-default">Duplicate orders</button> > <a class="cancel" href="/cgi-bin/koha/acqui/duplicate_orders.pl?basketno=[% basket.basketno %]">Cancel</a> > </fieldset> >@@ -297,14 +298,14 @@ Basket [% basket.basketno %] › Duplicate existing orders > </div> > > [% MACRO jsinclude BLOCK %] >- [% Asset.js("js/acquisitions-menu.js") %] >+ [% Asset.js("js/acquisitions-menu.js") | $raw %] > [% INCLUDE 'calendar.inc' %] > [% INCLUDE 'datatables.inc' %] > [% INCLUDE 'columns_settings.inc' %] >- [% Asset.js("js/autocomplete/patrons.js") %] >- [% Asset.js("js/acq.js") %] >- [% Asset.js("js/funds_sorts.js") %] >- [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %] >+ [% Asset.js("js/autocomplete/patrons.js") | $raw %] >+ [% Asset.js("js/acq.js") | $raw %] >+ [% Asset.js("js/funds_sorts.js") | $raw %] >+ [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] > <script> > function update_ordernumber_list(){ > var ordernumbers = []; >@@ -319,7 +320,7 @@ Basket [% basket.basketno %] › Duplicate existing orders > var MSG_NO_FUND_SELECTED = _("No fund selected."); > $(document).ready(function() { > $('.hint').hide(); >- var columns_settings;// = [% ColumnsSettings.GetColumns( 'acqui', 'histsearch', 'histsearcht', 'json' ) %]; >+ var columns_settings;// = [% ColumnsSettings.GetColumns( 'acqui', 'histsearch', 'histsearcht', 'json' ) | $raw %]; > KohaTable("table_orders", { > "aoColumnDefs": [ > { "sType": "anti-the", "aTargets" : [ "anti-the" ] }, >-- >2.11.0
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 15184
:
77314
|
77315
|
77316
|
77317
|
77318
|
77513
|
77514
|
77515
|
77516
|
77517
|
77966
|
77967
|
77968
|
77969
|
77970
|
78074
|
78075
|
78076
|
78077
|
78078
|
78277
|
78278
|
78279
|
78280
|
78281
|
78282
|
78283
|
78284
|
78285
|
78340
|
78535
|
78536
|
78537
|
78538
|
78539
|
78697
|
78698
|
78699
|
78700
|
78701
|
78702
|
78703
|
78704
|
78705
|
78706
|
78898
|
78911
|
78927
|
78958
|
78959
|
78960
|
78961
|
78962
|
78963
|
78964
|
78965
|
78966
|
78967
|
78968
|
78969
|
78970
|
80485
|
80486
|
80487
|
80488
|
80489
|
80490
|
80491
|
80492
|
80493
|
80494
|
80495
|
80638
|
81435
|
81436
|
81437
|
81438
|
81439
|
81440
| 81441 |
81442
|
81443
|
81444
|
81445
|
81446
|
81447
|
81448
|
82079