Bugzilla – Attachment 10463 Details for
Bug 5349
Moving an order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Follow-up: run transferorder.pl in a popup
0002-Bug-5349-follow-up-run-transferorder.pl-in-a-popup.patch (text/plain), 7.47 KB, created by
Julian Maurice
on 2012-06-25 09:06:13 UTC
(
hide
)
Description:
Follow-up: run transferorder.pl in a popup
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2012-06-25 09:06:13 UTC
Size:
7.47 KB
patch
obsolete
>From 3b8d5dedbdfa824dd6cba7e691e4551d02a036d4 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 11 Jun 2012 13:56:58 +0200 >Subject: [PATCH 2/2] Bug 5349 follow-up: run transferorder.pl in a popup > >--- > acqui/transferorder.pl | 5 +--- > .../intranet-tmpl/prog/en/modules/acqui/parcel.tt | 10 ++++++-- > .../prog/en/modules/acqui/transferorder.tt | 26 +++++++++----------- > 3 files changed, 20 insertions(+), 21 deletions(-) > >diff --git a/acqui/transferorder.pl b/acqui/transferorder.pl >index 27c4509..6a0c63e 100755 >--- a/acqui/transferorder.pl >+++ b/acqui/transferorder.pl >@@ -77,9 +77,7 @@ if( $basketno && $ordernumber) { > > TransferOrder($ordernumber, $basketno); > >- my $referrer = $input->param('referrer'); >- print $input->redirect($referrer); >- exit; >+ $template->param(transferred => 1) > } elsif ( $bookselleridto && $ordernumber) { > # Show open baskets for this bookseller > my $order = GetOrder( $ordernumber ); >@@ -138,7 +136,6 @@ $template->param( > booksellertoname => $booksellertoname, > ordernumber => $ordernumber, > basketno => $basketno, >- referrer => $input->param('referrer') > ); > > output_html_with_http_headers $input, $cookie, $template->output; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >index f54793a..4dfefc2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt >@@ -135,7 +135,7 @@ > + '<td>' > + '<a href="orderreceive.pl?ordernumber=' + order.ordernumber + '&datereceived=[% invoicedatereceived %]&invoice=[% invoice %]&gst=' + gst + '&freight=' + order.freight + '&booksellerid=[% booksellerid %]">Receive</a>' > + '<br />' >- + '<a href="/cgi-bin/koha/acqui/transferorder.pl?ordernumber=[% loop_order.ordernumber %]&referrer=[% "/cgi-bin/koha/acqui/parcel.pl?booksellerid=$booksellerid&datereceived=$invoicedatereceived&invoice=$invoice" | uri %]">Transfer</a>' >+ + '<a href="#" onclick="transfer_order_popup(' + order.ordernumber + '); return false;">Transfer</a>' > + '</td><td></td></tr>').appendTo("table#pendingt"); > } > >@@ -177,6 +177,12 @@ > } > } > >+ function transfer_order_popup(ordernumber) { >+ var url = "/cgi-bin/koha/acqui/transferorder.pl?" >+ + "ordernumber=" + ordernumber >+ window.open(url, 'TransferOrder'); >+ } >+ > //]]> > </script> > >@@ -284,7 +290,7 @@ > <td> > <a href="orderreceive.pl?ordernumber=[% loop_order.ordernumber %]&datereceived=[% invoicedatereceived %]&invoice=[% invoice %]&gst=[% loop_order.gst %]&freight=[% loop_order.freight %]&booksellerid=[% loop_order.booksellerid %]">Receive</a> > <br /> >- <a href="/cgi-bin/koha/acqui/transferorder.pl?ordernumber=[% loop_order.ordernumber %]&referrer=[% "/cgi-bin/koha/acqui/parcel.pl?booksellerid=$booksellerid&datereceived=$invoicedatereceived&invoice=$invoice" | uri %]">Transfer</a> >+ <a href="#" onclick="transfer_order_popup([% loop_order.ordernumber %]); return false;">Transfer</a> > > </td> > <td> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt >index f694c1f..c44b583 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt >@@ -1,16 +1,16 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Acquisitions › Transfer order</title> > [% INCLUDE 'doc-head-close.inc' %] >+[% IF transferred %] >+ <script type="text/javascript"> >+ //<![CDATA[ >+ opener.location.reload(); >+ window.close(); >+ //]]> >+ </script> >+[% END %] > </head> > <body> >-[% INCLUDE 'header.inc' %] >-[% INCLUDE 'acquisitions-search.inc' %] >- >-<div id="breadcrumbs"> >- <a href="/cgi-bin/koha/mainpage.pl">Home</a> >- › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> >- › Transfer order >-</div> > > <div id="doc3" class="yui-t2"> > <div id="bd"> >@@ -32,7 +32,7 @@ > <td>[% basket.basketname %] (#[% basket.basketno %])</td> > <td>[% basket.createdby %]</td> > <td>[% basket.creationdate %]</td> >- <td><a href="transferorder.pl?basketno=[% basket.basketno %]&ordernumber=[% ordernumber %][% IF (referrer) %]&referrer=[% referrer | uri %][% END %]" onclick="return confirm('Do you want to transfer order [% ordernumber %] from basket [% basketfromname %] ([% booksellerfromname %]) to basket [% basket.basketname %] ([% booksellertoname %]) ?');">Choose</a> >+ <td><a href="transferorder.pl?basketno=[% basket.basketno %]&ordernumber=[% ordernumber %]" onclick="return confirm('Do you want to transfer order [% ordernumber %] from basket [% basketfromname %] ([% booksellerfromname %]) to basket [% basket.basketname %] ([% booksellertoname %]) ?');">Choose</a> > </tr> > [% END %] > </tbody> >@@ -59,7 +59,7 @@ > [% IF ( ordersloo.isbn ) %] – [% ordersloo.isbn %][% END %] > [% IF ( ordersloo.publishercode ) %]<br />Publisher :[% ordersloo.publishercode %][% END %] > </td> >- <td><a href="transferorder.pl?bookselleridfrom=[% ordersloo.bookselleridfrom %]&ordernumber=[% ordersloo.ordernumber %][% IF (referrer) %]&referrer=[% referrer | uri %][% END %]">Transfer</a></td> >+ <td><a href="transferorder.pl?bookselleridfrom=[% ordersloo.bookselleridfrom %]&ordernumber=[% ordersloo.ordernumber %]">Transfer</a></td> > </tr> > [% END %] > </tbody> >@@ -81,7 +81,7 @@ > [% FOREACH bookseller IN booksellersloop %] > <tr> > <td>[% bookseller.name %]</td> >- <td><a href="transferorder.pl?[% IF (bookselleridfrom) %]bookselleridto[% ELSE %]bookselleridfrom[% END %]=[% bookseller.id %][% IF (ordernumber) %]&ordernumber=[% ordernumber %][% END %][% IF (referrer) %]&referrer=[% referrer | uri %][% END %]">Choose</a></td> >+ <td><a href="transferorder.pl?[% IF (bookselleridfrom) %]bookselleridto[% ELSE %]bookselleridfrom[% END %]=[% bookseller.id %][% IF (ordernumber) %]&ordernumber=[% ordernumber %][% END %]">Choose</a></td> > </tr> > [% END %] > </tbody> >@@ -98,7 +98,6 @@ > [% END %] > <form method="get" action="transferorder.pl"> > <input type="hidden" name="op" value="do_search" /> >- <input type="hidden" name="referrer" value="[% referrer %]" /> > [% IF ( ordernumber ) %] > <input type="hidden" name="ordernumber" value="[% ordernumber %]" /> > [% END %] >@@ -113,9 +112,6 @@ > </div> > </div> > >-<div class="yui-b"> >- [% INCLUDE 'acquisitions-menu.inc' %] >-</div> > </div> > </div> > [% INCLUDE 'intranet-bottom.inc' %] >-- >1.7.10 >
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 5349
:
8961
|
8962
|
9909
|
10032
|
10190
|
10375
|
10376
|
10441
|
10462
|
10463
|
10636
|
11117
|
11118
|
11385
|
11386
|
12236
|
12237
|
12238
|
12420
|
12421
|
12422
|
12462
|
12463
|
12464
|
14441
|
14442
|
14443
|
16499
|
16500
|
16501
|
18931
|
18933
|
18934
|
18935
|
19332
|
19333
|
19336
|
19917
|
19918
|
19919
|
19920
|
19921
|
19922
|
20476
|
20477
|
20478
|
20479
|
20480
|
20481
|
20691
|
20692
|
20693
|
20694
|
20695
|
20696