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

(-)a/acqui/transferorder.pl (-4 / +1 lines)
Lines 77-85 if( $basketno && $ordernumber) { Link Here
77
77
78
    TransferOrder($ordernumber, $basketno);
78
    TransferOrder($ordernumber, $basketno);
79
79
80
    my $referrer = $input->param('referrer');
80
    $template->param(transferred => 1)
81
    print $input->redirect($referrer);
82
    exit;
83
} elsif ( $bookselleridto && $ordernumber) {
81
} elsif ( $bookselleridto && $ordernumber) {
84
    # Show open baskets for this bookseller
82
    # Show open baskets for this bookseller
85
    my $order = GetOrder( $ordernumber );
83
    my $order = GetOrder( $ordernumber );
Lines 138-144 $template->param( Link Here
138
    booksellertoname    => $booksellertoname,
136
    booksellertoname    => $booksellertoname,
139
    ordernumber         => $ordernumber,
137
    ordernumber         => $ordernumber,
140
    basketno            => $basketno,
138
    basketno            => $basketno,
141
    referrer            => $input->param('referrer')
142
);
139
);
143
140
144
output_html_with_http_headers $input, $cookie, $template->output;
141
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-2 / +8 lines)
Lines 53-59 Link Here
53
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber;
53
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber;
54
                }
54
                }
55
            }
55
            }
56
            
56
57
            function confirm_delete_biblio(ordernumber, biblionumber) {
57
            function confirm_delete_biblio(ordernumber, biblionumber) {
58
                var is_confirmed = confirm(_('Are you sure you want to delete this catalog record and order ?'));
58
                var is_confirmed = confirm(_('Are you sure you want to delete this catalog record and order ?'));
59
                if (is_confirmed) {
59
                if (is_confirmed) {
Lines 61-66 Link Here
61
                    }
61
                    }
62
            }
62
            }
63
63
64
            function transfer_order_popup(ordernumber) {
65
                var url = "/cgi-bin/koha/acqui/transferorder.pl?"
66
                    + "ordernumber=" + ordernumber
67
                window.open(url, 'TransferOrder');
68
            }
69
64
//]]>
70
//]]>
65
</script>
71
</script>
66
[% ELSE %]
72
[% ELSE %]
Lines 360-366 Link Here
360
                                <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&amp;booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]">Modify</a>
366
                                <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&amp;booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]">Modify</a>
361
                                [% UNLESS (books_loo.order_received) %]
367
                                [% UNLESS (books_loo.order_received) %]
362
                                    <br />
368
                                    <br />
363
                                    <a href="/cgi-bin/koha/acqui/transferorder.pl?ordernumber=[% books_loo.ordernumber %]&referrer=[% "/cgi-bin/koha/acqui/basket.pl?basketno=$basketno" | uri %]">Transfer</a>
369
                                    <a href="#" onclick="transfer_order_popup([% books_loo.ordernumber %]); return false;">Transfer</a>
364
                                [% END %]
370
                                [% END %]
365
                            </td>
371
                            </td>
366
                            <td>
372
                            <td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt (-1 / +8 lines)
Lines 125-130 Link Here
125
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&delbiblio=1";
125
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&delbiblio=1";
126
                    }
126
                    }
127
            }
127
            }
128
129
            function transfer_order_popup(ordernumber) {
130
                var url = "/cgi-bin/koha/acqui/transferorder.pl?"
131
                    + "ordernumber=" + ordernumber
132
                window.open(url, 'TransferOrder');
133
            }
134
128
//]]>
135
//]]>
129
</script>
136
</script>
130
</head>
137
</head>
Lines 248-254 Link Here
248
				<td>
255
				<td>
249
                              <a href="orderreceive.pl?ordernumber=[% loop_order.ordernumber %]&amp;invoiceid=[% invoiceid %]">Receive</a>
256
                              <a href="orderreceive.pl?ordernumber=[% loop_order.ordernumber %]&amp;invoiceid=[% invoiceid %]">Receive</a>
250
                    <br />
257
                    <br />
251
                    <a href="/cgi-bin/koha/acqui/transferorder.pl?ordernumber=[% loop_order.ordernumber %]&amp;referrer=[% "/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]" | uri %]">Transfer</a>
258
                    <a href="#" onclick="transfer_order_popup([% loop_order.ordernumber %]); return false;">Transfer</a>
252
				</td>
259
				</td>
253
				<td>
260
				<td>
254
                        [% IF ( loop_order.left_holds_on_order ) %]
261
                        [% IF ( loop_order.left_holds_on_order ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt (-16 / +11 lines)
Lines 1-16 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Acquisitions &rsaquo; Transfer order</title>
2
<title>Koha &rsaquo; Acquisitions &rsaquo; Transfer order</title>
3
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% IF transferred %]
5
    <script type="text/javascript">
6
    //<![CDATA[
7
        opener.location.reload();
8
        window.close();
9
    //]]>
10
    </script>
11
[% END %]
4
</head>
12
</head>
5
<body>
13
<body>
6
[% INCLUDE 'header.inc' %]
7
[% INCLUDE 'acquisitions-search.inc' %]
8
9
<div id="breadcrumbs">
10
    <a href="/cgi-bin/koha/mainpage.pl">Home</a>
11
    &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
12
    &rsaquo; Transfer order
13
</div>
14
14
15
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
16
<div id="bd">
16
<div id="bd">
Lines 32-38 Link Here
32
                            <td>[% basket.basketname %] (#[% basket.basketno %])</td>
32
                            <td>[% basket.basketname %] (#[% basket.basketno %])</td>
33
                            <td>[% basket.createdby %]</td>
33
                            <td>[% basket.createdby %]</td>
34
                            <td>[% basket.creationdate %]</td>
34
                            <td>[% basket.creationdate %]</td>
35
                            <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>
35
                            <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>
36
                          </tr>
36
                          </tr>
37
                        [% END %]
37
                        [% END %]
38
                    </tbody>
38
                    </tbody>
Lines 59-65 Link Here
59
                            [% IF ( ordersloo.isbn ) %] &ndash; [% ordersloo.isbn %][% END %]
59
                            [% IF ( ordersloo.isbn ) %] &ndash; [% ordersloo.isbn %][% END %]
60
                            [% IF ( ordersloo.publishercode ) %]<br />Publisher :[% ordersloo.publishercode %][% END %]
60
                            [% IF ( ordersloo.publishercode ) %]<br />Publisher :[% ordersloo.publishercode %][% END %]
61
                        </td>
61
                        </td>
62
                        <td><a href="transferorder.pl?bookselleridfrom=[% ordersloo.bookselleridfrom %]&ordernumber=[% ordersloo.ordernumber %][% IF (referrer) %]&referrer=[% referrer | uri %][% END %]">Transfer</a></td>
62
                        <td><a href="transferorder.pl?bookselleridfrom=[% ordersloo.bookselleridfrom %]&ordernumber=[% ordersloo.ordernumber %]">Transfer</a></td>
63
                      </tr>
63
                      </tr>
64
                    [% END %]
64
                    [% END %]
65
                </tbody>
65
                </tbody>
Lines 81-87 Link Here
81
                        [% FOREACH bookseller IN booksellersloop %]
81
                        [% FOREACH bookseller IN booksellersloop %]
82
                          <tr>
82
                          <tr>
83
                            <td>[% bookseller.name %]</td>
83
                            <td>[% bookseller.name %]</td>
84
                            <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>
84
                            <td><a href="transferorder.pl?[% IF (bookselleridfrom) %]bookselleridto[% ELSE %]bookselleridfrom[% END %]=[% bookseller.id %][% IF (ordernumber) %]&ordernumber=[% ordernumber %][% END %]">Choose</a></td>
85
                          </tr>
85
                          </tr>
86
                        [% END %]
86
                        [% END %]
87
                    </tbody>
87
                    </tbody>
Lines 98-104 Link Here
98
            [% END %]
98
            [% END %]
99
            <form method="get" action="transferorder.pl">
99
            <form method="get" action="transferorder.pl">
100
                <input type="hidden" name="op" value="do_search" />
100
                <input type="hidden" name="op" value="do_search" />
101
                <input type="hidden" name="referrer" value="[% referrer %]" />
102
                [% IF ( ordernumber ) %]
101
                [% IF ( ordernumber ) %]
103
                    <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
102
                    <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
104
                [% END %]
103
                [% END %]
Lines 113-121 Link Here
113
    </div>
112
    </div>
114
</div>
113
</div>
115
114
116
<div class="yui-b">
117
    [% INCLUDE 'acquisitions-menu.inc' %]
118
</div>
119
</div>
115
</div>
120
</div>
116
</div>
121
[% INCLUDE 'intranet-bottom.inc' %]
117
[% INCLUDE 'intranet-bottom.inc' %]
122
- 

Return to bug 5349