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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt (-17 / +80 lines)
Lines 18-33 Link Here
18
                        [% UNLESS ( print_basket ) %]
18
                        [% UNLESS ( print_basket ) %]
19
                            <div id="toolbar" class="toolbar">
19
                            <div id="toolbar" class="toolbar">
20
                                [% IF ( verbose ) %]
20
                                [% IF ( verbose ) %]
21
                                    <a href="opac-basket.pl" class="brief" onclick="showLess(); return false;">Brief display</a>
21
                                    <a href="opac-basket.pl" class="brief">Brief display</a>
22
                                [% ELSE %]
22
                                [% ELSE %]
23
                                    <a href="opac-basket.pl" class="detail" onclick="showMore(); return false;">More details</a>
23
                                    <a href="opac-basket.pl" class="detail">More details</a>
24
                                [% END %]
24
                                [% END %]
25
                                [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
25
                                [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
26
                                    <a class="send" href="opac-basket.pl" onclick="sendBasket(); return false;">Send</a>
26
                                    <a class="send" href="opac-basket.pl">Send</a>
27
                                [% END %]
27
                                [% END %]
28
                                <a class="download" href="opac-basket.pl" onclick="downloadBasket(); return false;">Download</a>
28
                                <a class="download" href="opac-basket.pl">Download</a>
29
                                <a class="print-large" href="opac-basket.pl" onclick="printBasket(); return false;">Print</a>
29
                                <a class="print-large" href="opac-basket.pl">Print</a>
30
                                <a class="empty" href="opac-basket.pl" onclick="delBasket(); return false;">Empty and close</a>
30
                                <a class="empty" href="opac-basket.pl">Empty and close</a>
31
                                <a class="hide close" href="opac-basket.pl">Hide window</a>
31
                                <a class="hide close" href="opac-basket.pl">Hide window</a>
32
                            </div>
32
                            </div>
33
33
Lines 37-52 Link Here
37
                                <span class="sep">|</span>
37
                                <span class="sep">|</span>
38
                                <span class="links" id="tag_hides">
38
                                <span class="links" id="tag_hides">
39
                                    <span id="selections">Select titles to: </span>
39
                                    <span id="selections">Select titles to: </span>
40
                                    <a href="#" class="deleteshelf disabled" onclick="delSelRecords(); return false;">Remove</a>
40
                                    <a href="#" class="deleteshelf disabled">Remove</a>
41
                                    [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
41
                                    [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
42
                                        [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
42
                                        [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
43
                                            <a href="#" class="newshelf disabled" onclick="addSelToShelf(); return false;">Add to a list</a>
43
                                            <a href="#" class="newshelf disabled">Add to a list</a>
44
                                        [% END %]
44
                                        [% END %]
45
                                        [% IF ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
45
                                        [% IF ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
46
                                            <a href="#" class="hold disabled" onclick="holdSel(); return false;">Place hold</a>
46
                                            <a href="#" class="hold disabled">Place hold</a>
47
                                        [% END %]
47
                                        [% END %]
48
                                        [% IF ( TagsInputEnabled && loggedinusername ) %]
48
                                        [% IF ( TagsInputEnabled && loggedinusername ) %]
49
                                            <a href="#" id="tagsel_tag" class="disabled" onclick="tagSelected(); return false;">Tag</a>
49
                                            <a href="#" id="tagsel_tag" class="disabled">Tag</a>
50
                                        [% END %]
50
                                        [% END %]
51
                                    [% END # / IF opacuserlogin %]
51
                                    [% END # / IF opacuserlogin %]
52
                                </span>
52
                                </span>
Lines 54-61 Link Here
54
                                <span id="tagsel_form" style="display:none">
54
                                <span id="tagsel_form" style="display:none">
55
                                    <label for="tagsel_new">New tag:</label>
55
                                    <label for="tagsel_new">New tag:</label>
56
                                    <input name="tagsel_new" id="tagsel_new" maxlength="100" />
56
                                    <input name="tagsel_new" id="tagsel_new" maxlength="100" />
57
                                    <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="Add" type="submit" value="Add" onclick="tagAdded(); return false;" />
57
                                    <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="Add" type="submit" value="Add">
58
                                    <a href="#" id="tagsel_cancel" onclick="tagCanceled(); return false;">Cancel</a>
58
                                    <a href="#" id="tagsel_cancel">Cancel</a>
59
                                </span>
59
                                </span>
60
                                [% END %]
60
                                [% END %]
61
                            </div>
61
                            </div>
Lines 70-76 Link Here
70
                                                [% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield |html %] [% END %][% END %]
70
                                                [% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield |html %] [% END %][% END %]
71
                                                [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author |html %][% END %]
71
                                                [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author |html %][% END %]
72
                                        [% ELSE %]
72
                                        [% ELSE %]
73
                                                <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]" onclick="selRecord(value,checked)" />
73
                                                <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]">
74
                                                [% BIBLIO_RESULT.title |html %]
74
                                                [% BIBLIO_RESULT.title |html %]
75
                                                [% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield |html %] [% END %][% END %]
75
                                                [% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield |html %] [% END %][% END %]
76
                                                [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author |html %][% END %]
76
                                                [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author |html %][% END %]
Lines 259-265 Link Here
259
                                        <tr>
259
                                        <tr>
260
                                            [% UNLESS ( print_basket ) %]
260
                                            [% UNLESS ( print_basket ) %]
261
                                                <td>
261
                                                <td>
262
                                                <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]" onclick="selRecord(value,checked);" />
262
                                                <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]">
263
                                                </td>
263
                                                </td>
264
                                            [% END %]
264
                                            [% END %]
265
                                            <td>
265
                                            <td>
Lines 370-375 Link Here
370
            [% END # / TagsInputEnabled && loggedinusername %]
370
            [% END # / TagsInputEnabled && loggedinusername %]
371
371
372
            $(document).ready(function(){
372
            $(document).ready(function(){
373
                $(".brief").click(function(){
374
                    showLess();
375
                    return false;
376
                });
377
378
                $(".detail").click(function(){
379
                    showMore();
380
                    return false;
381
                });
382
383
                $(".send").click(function(){
384
                    sendBasket();
385
                    return false;
386
                });
387
388
                $(".download").click(function(){
389
                    downloadBasket();
390
                    return false;
391
                });
392
393
                $(".print-large").click(function(){
394
                    e.preventDefault();
395
                    printBasket();
396
                    return false;
397
                });
398
399
                $(".empty").click(function(){
400
                    delBasket();
401
                    return false;
402
                });
403
404
                $(".deleteshelf").click(function(){
405
                    delSelRecords();
406
                    return false;
407
                });
408
409
                $(".newshelf").click(function(){
410
                    addSelToShelf();
411
                    return false;
412
                });
413
414
                $(".hold").click(function(){
415
                    holdSel();
416
                    return false;
417
                });
418
419
                $("#tagsel_tag").click(function(){
420
                    tagSelected();
421
                    return false;
422
                });
423
424
                $("#tagsel_button").click(function(){
425
                    tagAdded();
426
                    return false;
427
                });
428
429
                $("#tagsel_cancel").click(function(){
430
                    tagCanceled();
431
                    return false;
432
                });
433
373
                $("#CheckAll").click(function(){
434
                $("#CheckAll").click(function(){
374
                    var checked = [];
435
                    var checked = [];
375
                    $(".checkboxed").checkCheckboxes("*", true).each(
436
                    $(".checkboxed").checkCheckboxes("*", true).each(
Lines 406-415 Link Here
406
                    ]
467
                    ]
407
                }));
468
                }));
408
469
409
                $(".cb").click(function(){
470
                $(".cb").change(function(){
471
                    if ($(this).prop("checked")){
472
                        selRecord($(this).val(), true);
473
                    }
410
                    enableCheckboxActions();
474
                    enableCheckboxActions();
475
                    return false;
411
                });
476
                });
412
                enableCheckboxActions();
413
            });
477
            });
414
478
415
            function enableCheckboxActions(){
479
            function enableCheckboxActions(){
416
- 

Return to bug 18545