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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt (-17 / +49 lines)
Lines 14-30 Link Here
14
<script type="text/javascript">
14
<script type="text/javascript">
15
//<![CDATA[
15
//<![CDATA[
16
$(document).ready(function() {
16
$(document).ready(function() {
17
    [% IF (dateformat == 'metric') %]
18
        dt_add_type_uk_date();
19
    [% END %]
20
    $("table.baskets").dataTable($.extend(true, {}, dataTablesDefaults, {
17
    $("table.baskets").dataTable($.extend(true, {}, dataTablesDefaults, {
21
        'sDom': 't',
18
        'sDom': 't',
22
        'bPaginate': false,
19
        'bPaginate': false,
23
        'bFilter': false,
20
        'bFilter': false,
24
        'bInfo': false,
21
        'bInfo': false,
25
        "aaSorting": [[ 1, "asc" ]],
22
        "aaSorting": [[ 1, "asc" ]],
23
        "aoColumns": [
24
            null,null,null,null,null,null,{ "sType": "title-string" },{ "sType": "title-string" },null,null
25
        ],
26
        'aoColumnDefs': [
26
        'aoColumnDefs': [
27
            { 'aTargets': [-1], 'bSortable': false }
27
            { 'aTargets': [-1,-2], 'bSortable': false }
28
        ]
28
        ]
29
    }));
29
    }));
30
    $("#supplierlist").change(function() {
30
    $("#supplierlist").change(function() {
Lines 63-71 $(document).ready(function() { Link Here
63
        </p>
63
        </p>
64
    [% END %]
64
    [% END %]
65
    [% IF ( allbaskets ) %]
65
    [% IF ( allbaskets ) %]
66
        <p><a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&booksellerid=[% booksellerid %]">Show active baskets only</a></p>
66
        <p><a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&amp;booksellerid=[% booksellerid %]">Show active baskets only</a></p>
67
    [% ELSE %]
67
    [% ELSE %]
68
        <p><a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&booksellerid=[% booksellerid %]&allbaskets=1">Show all baskets</a></p>
68
        <p><a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&amp;booksellerid=[% booksellerid %]&amp;allbaskets=1">Show all baskets</a></p>
69
    [% END %]
69
    [% END %]
70
    <div id="acqui_order_supplierlist">
70
    <div id="acqui_order_supplierlist">
71
        [% FOREACH supplier IN loop_suppliers %]
71
        [% FOREACH supplier IN loop_suppliers %]
Lines 80-91 $(document).ready(function() { Link Here
80
                <span class="action">
80
                <span class="action">
81
                    [% IF ( CAN_user_acquisition_order_manage ) %]
81
                    [% IF ( CAN_user_acquisition_order_manage ) %]
82
                        [% IF ( supplier.active ) %]
82
                        [% IF ( supplier.active ) %]
83
                            <input type="button" value="New basket" onclick="window.location.href='/cgi-bin/koha/acqui/basketheader.pl?booksellerid=[% supplier.booksellerid %]&amp;op=add_form'" />
83
                            <a class="btn btn-small" href="/cgi-bin/koha/acqui/basketheader.pl?booksellerid=[% supplier.booksellerid %]&amp;op=add_form"><i class="icon-plus"></i> New basket</a>
84
                        [% ELSE %]
84
                        [% ELSE %]
85
                            (inactive)
85
                            (inactive)
86
                        [% END %]
86
                        [% END %]
87
                    [% END %]
87
                    [% END %]
88
                    <input type="button" value="Receive shipment" onclick="window.location.href='/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% supplier.booksellerid %]'" />
88
                    <a class="btn btn-small" href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% supplier.booksellerid %]"><i class="icon-inbox"></i> Receive shipment</a>
89
                </span>
89
                </span>
90
                <div class="baskets">
90
                <div class="baskets">
91
                    [% IF ( supplier.loop_basket.size ) %]
91
                    [% IF ( supplier.loop_basket.size ) %]
Lines 99-104 $(document).ready(function() { Link Here
99
                                    <th>Items expected</th>
99
                                    <th>Items expected</th>
100
                                    <th>Created by</th>
100
                                    <th>Created by</th>
101
                                    <th>Date</th>
101
                                    <th>Date</th>
102
                                    <th>Closed</th>
103
                                    <th>&nbsp;</th>
102
                                    <th>&nbsp;</th>
104
                                    <th>&nbsp;</th>
103
                                </tr>
105
                                </tr>
104
                            </thead>
106
                            </thead>
Lines 118-140 $(document).ready(function() { Link Here
118
                                            [% basket.authorisedby_firstname %]
120
                                            [% basket.authorisedby_firstname %]
119
                                            [% basket.authorisedby_surname %]
121
                                            [% basket.authorisedby_surname %]
120
                                        </td>
122
                                        </td>
121
                                        <td>[% basket.creationdate | $KohaDates %]</td>
123
                                        <td><span title="[% basket.creationdate %]">[% basket.creationdate | $KohaDates %]</span></td>
122
                                        <td>
124
                                        <td>
123
                                            [% IF ( basket.closedate ) %]
125
                                            [% IF ( basket.closedate ) %]
124
                                                closed on [% basket.closedate | $KohaDates %]
126
                                                <span title="[% basket.closedate %]">[% basket.closedate | $KohaDates %]</span>
125
                                                <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]">View</a>
126
                                            [% ELSE %]
127
                                            [% ELSE %]
127
                                                [% IF ( basket.active ) %]
128
                                                <span title="9999-99-99"></span>
128
                                                    <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]">Modify</a>
129
                                            [% END %]
129
                                                [% ELSE %]
130
                                        </td>
130
                                                    <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]">View</a>
131
                                        <td>
131
                                                [% END %]
132
                                            <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]">View</a>
133
                                        </td>
134
                                        <td>
135
                                            [% UNLESS ( basket.closedate ) %]
136
                                                <a id="addtoBasketLabel[% basket.basketno %]" href="#addtoBasket[% basket.basketno %]" role="button" data-toggle="modal">Add to basket</a>
137
                                                <!-- Modal -->
138
                                                <div id="addtoBasket[% basket.basketno %]" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel[% basket.basketno %]" aria-hidden="true">
139
                                                    <div class="modal-body">
140
                                                        <fieldset>
141
                                                            <legend>Add order to [% supplier.name %] basket [% basket.basketname %]</legend>
142
                                                              <ul>
143
                                                                <li>
144
                                                                  <label for="q[% basket.basketno %]">From an existing record: </label>
145
                                                                  <form method="post" action="/cgi-bin/koha/acqui/neworderbiblio.pl">
146
                                                                    <input type="hidden" value="[% supplier.booksellerid %]" name="booksellerid">
147
                                                                    <input type="hidden" value="[% basket.basketno %]" name="basketno">
148
                                                                    <input type="text" name="q" size="25" id="q[% basket.basketno %]">
149
                                                                    <input type="submit" value="Search" class="submit">
150
                                                                  </form>
151
                                                                </li>
152
                                                                <li><a href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=[% supplier.booksellerid %]&amp;basketno=[% basket.basketno %]">From a suggestion</a></li>
153
                                                                <li><a href="/cgi-bin/koha/acqui/newordersubscription.pl?booksellerid=[% supplier.booksellerid %]&amp;basketno=[% basket.basketno %]">From a subscription</a></li>
154
                                                                <li><a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% supplier.booksellerid %]&amp;basketno=[% basket.basketno %]">From a new (empty) record</a></li>
155
                                                                <li><a href="/cgi-bin/koha/acqui/z3950_search.pl?booksellerid=[% supplier.booksellerid %]&amp;basketno=[% basket.basketno %]">From an external source</a></li>
156
                                                                <li><a href="/cgi-bin/koha/acqui/addorderiso2709.pl?booksellerid=[% supplier.booksellerid %]&amp;basketno=[% basket.basketno %]"> From a staged file</a></li>
157
                                                              </ul>
158
                                                        </fieldset>
159
                                                    </div>
160
                                                    <div class="modal-footer">
161
                                                        <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
162
                                                    </div>
163
                                                </div>
132
                                            [% END %]
164
                                            [% END %]
133
                                        </td>
165
                                        </td>
134
                                    </tr>
166
                                    </tr>
135
                                [% END %][%# FOREACH basket IN supplier.loop_basket %]
167
                                [% END %][%# FOREACH basket IN supplier.loop_basket %]
136
                            </tbody>
168
                            </tbody>
137
                        </table>
169
                        </table>
170
138
                    [% ELSE %]
171
                    [% ELSE %]
139
                        <p>No pending baskets</p>
172
                        <p>No pending baskets</p>
140
                    [% END %][%# IF ( supplier.loop_basket.size ) %]
173
                    [% END %][%# IF ( supplier.loop_basket.size ) %]
141
- 

Return to bug 10737