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

(-)a/koha-tmpl/opac-tmpl/prog/en/css/opac.css (-9 / +75 lines)
Lines 13-18 a:hover,#toolbar input.editshelf:hover,input.editshelf:hover,a.editshelf:hover,i Link Here
13
	color : #990033;
13
	color : #990033;
14
}
14
}
15
15
16
a.disabled {
17
	color : #888888 !important;
18
}
19
16
body {
20
body {
17
	background-color : white;
21
	background-color : white;
18
	text-align : left;
22
	text-align : left;
Lines 467-482 a .term { Link Here
467
471
468
/* toolbar buttons */
472
/* toolbar buttons */
469
473
470
#toolbar {
474
#toolbar,
475
#selections-toolbar {
471
background-color:#EEEEEE;
476
background-color:#EEEEEE;
472
border:1px solid #E8E8E8;
477
border:1px solid #E8E8E8;
473
margin : .5em 0;
478
margin : 0 0;
474
padding:3px 3px 5px 5px;
479
padding:3px 3px 5px 5px;
475
vertical-align:middle;
480
vertical-align:middle;
476
}
481
}
477
482
483
#basket #toolbar {
484
	padding: 7px 5px 9px 9px;
485
}
486
487
#selections-toolbar {
488
background: #E8E8E8; /* Old browsers */
489
background: -moz-linear-gradient(top, #b2b2b2 0%, #e0e0e0 14%, #e8e8e8 100%); /* FF3.6+ */
490
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b2b2b2), color-stop(14%,#e0e0e0), color-stop(100%,#e8e8e8)); /* Chrome,Safari4+ */
491
background: -webkit-linear-gradient(top, #b2b2b2 0%,#e0e0e0 14%,#e8e8e8 100%); /* Chrome10+,Safari5.1+ */
492
background: -o-linear-gradient(top, #b2b2b2 0%,#e0e0e0 14%,#e8e8e8 100%); /* Opera 11.10+ */
493
background: -ms-linear-gradient(top, #b2b2b2 0%,#e0e0e0 14%,#e8e8e8 100%); /* IE10+ */
494
background: linear-gradient(top, #b2b2b2 0%,#e0e0e0 14%,#e8e8e8 100%); /* W3C */
495
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e0e0e0', endColorstr='#e8e8e8',GradientType=0 ); /* IE6-9 */
496
	margin : 0 0 1em 0;
497
	padding-top : .5em;
498
	padding-left : 10px;
499
}
500
478
#toolbar a,
501
#toolbar a,
479
#toolbar input {
502
#selections-toolbar a,
503
#toolbar input,
504
#selections-toolbar input {
480
	white-space : nowrap;
505
	white-space : nowrap;
481
}
506
}
482
507
Lines 499-513 vertical-align:middle; Link Here
499
524
500
525
501
#toolbar a.print {
526
#toolbar a.print {
502
	background: transparent url(../../images/print-small.png) 5px 50% no-repeat;
527
	background: transparent url(../../images/print-small.png) 10px 50% no-repeat;
503
	text-decoration : none;
528
	text-decoration : none;
504
	padding-left : 23px;
529
	padding-left : 30px;
505
}
530
}
506
531
507
#toolbar a.brief {
532
#toolbar a.brief {
508
	background: transparent url(../../images/brief.gif) 5px 50% no-repeat;
533
	background: transparent url(../../images/brief.gif) 5px 50% no-repeat;
509
	text-decoration : none;
534
	text-decoration : none;
510
	padding-left : 23px;
535
	padding-left : 27px;
511
}
536
}
512
537
513
#toolbar a.detail {
538
#toolbar a.detail {
Lines 540-557 vertical-align:middle; Link Here
540
	padding-left : 26px;
565
	padding-left : 26px;
541
}
566
}
542
567
543
#toolbar a.hold {
568
#toolbar a.hold,
569
#selections-toolbar a.hold {
544
	background: transparent url(../../images/place-hold-small.png) 5px 50% no-repeat;
570
	background: transparent url(../../images/place-hold-small.png) 5px 50% no-repeat;
545
	text-decoration : none;
571
	text-decoration : none;
546
	padding-left : 23px;
572
	padding-left : 23px;
547
}
573
}
548
574
575
#selections-toolbar a.hold.disabled {
576
	background: transparent url(../../images/place-hold-small-disabled.png) 5px 50% no-repeat;
577
}
578
549
#toolbar a.newshelf {
579
#toolbar a.newshelf {
550
	background : transparent url("../../images/shelf-new.gif") 5px 50% no-repeat;
580
	background : transparent url("../../images/shelf-new.gif") 5px 50% no-repeat;
551
	padding-left : 23px;
581
	padding-left : 23px;
552
	text-decoration : none;
582
	text-decoration : none;
553
}
583
}
554
584
585
#selections-toolbar a.removeitems {
586
	background: transparent url(../../images/shelf-delete.gif) 11px 50% no-repeat;
587
	text-decoration : none;
588
	padding-left : 25px;
589
}
590
591
592
#selections-toolbar a.removeitems.disabled {
593
	background: transparent url(../../images/shelf-delete-disabled.gif) 11px 50% no-repeat;
594
}
595
555
#toolbar a.send,
596
#toolbar a.send,
556
a.send {
597
a.send {
557
	background: transparent url(../../images/send.png) 2px 50% no-repeat;
598
	background: transparent url(../../images/send.png) 2px 50% no-repeat;
Lines 585-591 input.editshelf { Link Here
585
	text-decoration : none;
626
	text-decoration : none;
586
}
627
}
587
628
588
#toolbar input.newshelf {
629
#toolbar input.newshelf,
630
a.newshelf {
589
	background : transparent url("../../images/shelf-new.gif") center left no-repeat;
631
	background : transparent url("../../images/shelf-new.gif") center left no-repeat;
590
	border : 0;
632
	border : 0;
591
	color : #006699;
633
	color : #006699;
Lines 596-609 input.editshelf { Link Here
596
	text-decoration : none;
638
	text-decoration : none;
597
}
639
}
598
640
641
a.newshelf.disabled {
642
	background : transparent url("../../images/shelf-new-disabled.gif") center left no-repeat;
643
}
644
599
#toolbar input.deleteshelf,
645
#toolbar input.deleteshelf,
600
input.deleteshelf {
646
input.deleteshelf,
647
a.deleteshelf {
601
	background : transparent url("../../images/shelf-delete.gif") 7px 50% no-repeat;
648
	background : transparent url("../../images/shelf-delete.gif") 7px 50% no-repeat;
602
	border : 0;
649
	border : 0;
603
	color : #006699;
650
	color : #006699;
604
	cursor : pointer;
651
	cursor : pointer;
605
	font-size : 100%;
652
	font-size : 100%;
606
	padding-left : 20px;
653
	padding-left : 20px;
654
	text-decoration : none;
655
}
656
657
a.deleteshelf.disabled {
658
	background : transparent url("../../images/shelf-delete-disabled.gif") 7px 50% no-repeat;
607
}
659
}
608
660
609
#toolbar input.deleteshelf:hover {
661
#toolbar input.deleteshelf:hover {
Lines 618-623 input.deleteshelf:active { Link Here
618
	border : 0;
670
	border : 0;
619
}
671
}
620
672
673
#selections {
674
	font-weight : bold;
675
}
676
621
#tagsel_span input.submit,
677
#tagsel_span input.submit,
622
#tagsel_tag {
678
#tagsel_tag {
623
	background-image: url(../../images/tags-small.png);
679
	background-image: url(../../images/tags-small.png);
Lines 627-632 input.deleteshelf:active { Link Here
627
	text-decoration: none;
683
	text-decoration: none;
628
}
684
}
629
685
686
#tagsel_tag.disabled {
687
	background-image: url(../../images/tags-small-disabled.png);
688
}
689
630
#tagslist li { display : inline; }
690
#tagslist li { display : inline; }
631
691
632
#placehold input.submit:hover,
692
#placehold input.submit:hover,
Lines 2270-2272 p.patronimage.edit { Link Here
2270
	border-color:#E8E8E8;
2330
	border-color:#E8E8E8;
2271
	margin: 1em 1em 1em 0;
2331
	margin: 1em 1em 1em 0;
2272
}
2332
}
2333
2334
span.sep {
2335
	color: #888;
2336
	padding: 0 .2em;
2337
	text-shadow: 1px 1px 0 #FFF;
2338
}
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt (-34 / +51 lines)
Lines 22-32 Link Here
22
	<script type="text/javascript">
22
	<script type="text/javascript">
23
	//<![CDATA[
23
	//<![CDATA[
24
24
25
var MSG_NO_RECORD_SELECTED = _("Please select one or more items");
25
$(document).ready(function()
26
$(document).ready(function()
26
    {
27
    {
27
        $("#itemst").tablesorter({
28
        $("#itemst").tablesorter({
28
                        headers: { 0: { sorter: false },4:{sorter:false}}
29
                        headers: { 0: { sorter: false },4:{sorter:false}}
29
                });
30
                });
31
    $(".cb").click(function(){
32
      enableCheckboxActions();
33
    });
30
    }
34
    }
31
);
35
);
32
36
Lines 76-95 function tagAdded() { Link Here
76
	$(document).ready(function(){
80
	$(document).ready(function(){
77
		$("#CheckAll").click(function(){
81
		$("#CheckAll").click(function(){
78
		var checked = [];
82
		var checked = [];
79
		$("#bookbag_form").checkCheckboxes("*", true).each(
83
		$(".checkboxed").checkCheckboxes("*", true).each(
80
		    function() {
84
		    function() {
81
				selRecord(this.value,true);
85
				selRecord(this.value,true);
82
			}
86
			}
83
		);
87
		);
88
        enableCheckboxActions();
84
	        return false;
89
	        return false;
85
	    });
90
	    });
86
	    $("#CheckNone").click(function(){
91
	    $("#CheckNone").click(function(){
87
	    var checked = [];
92
	    var checked = [];
88
		$("#bookbag_form").unCheckCheckboxes("*",true).each(
93
		$(".checkboxed").unCheckCheckboxes("*",true).each(
89
		    function() {
94
		    function() {
90
				selRecord(this.value,false);
95
				selRecord(this.value,false);
91
			}
96
			}
92
		);
97
		);
98
        enableCheckboxActions();
93
	        return false;
99
	        return false;
94
	    });
100
	    });
95
101
Lines 110-115 function tagAdded() { Link Here
110
        }
116
        }
111
    }
117
    }
112
[% END %][% END %]
118
[% END %][% END %]
119
function enableCheckboxActions(){
120
    // Enable/disable controls if checkboxes are checked
121
    var checkedBoxes = $(".checkboxed input:checkbox:checked");
122
    if ($(checkedBoxes).size()) {
123
      $("#selections").html(_("With selected titles: "));
124
      $("#selections-toolbar .links a").removeClass("disabled");
125
    } else {
126
      $("#selections").html(_("Select titles to: "));
127
      $("#selections-toolbar .links a").addClass("disabled");
128
    }
129
}
113
	//]]>
130
	//]]>
114
	</script>
131
	</script>
115
	[% END %]
132
	[% END %]
Lines 134-149 function tagAdded() { Link Here
134
        [% END %]
151
        [% END %]
135
152
136
[% IF ( verbose ) %]
153
[% IF ( verbose ) %]
137
	[% UNLESS ( print_basket ) %]<p style="padding: 7px 0; border-top : 1px solid #E8E8E8;"><a id="CheckAll" href="#">Select All</a> <a id="CheckNone" href="#">Clear All</a> | <b>Selected items :</b>
154
	[% UNLESS ( print_basket ) %]<div id="selections-toolbar"><a id="CheckAll" href="#">Select all</a> <a id="CheckNone" href="#">Clear all</a> <span class="sep">|</span> <span class="links"><span id="selections">Select titles to: </span>
138
<span id="tag_hides">
155
<span id="tag_hides">
139
<a href="#" onclick="delSelRecords(); return false;">Remove</a>
156
<a href="#" class="deleteshelf disabled" onclick="delSelRecords(); return false;">Remove</a>
140
[% IF ( opacuserlogin ) %]
157
[% IF ( opacuserlogin ) %]
141
    [% IF ( virtualshelves ) %][% IF ( loggedinusername ) %]
158
    [% IF ( virtualshelves ) %][% IF ( loggedinusername ) %]
142
         | <a href="#" onclick="addSelToShelf(); return false;">Add to a list</a>
159
         | <a href="#" class="newshelf disabled" onclick="addSelToShelf(); return false;">Add to a list</a>
143
    [% END %][% END %]
160
    [% END %][% END %]
144
    [% IF ( RequestOnOpac ) %]| <a href="#" onclick="holdSel(); return false;">Place hold</a>[% END %]
161
    [% IF ( RequestOnOpac ) %]| <a href="#" class="hold disabled" onclick="holdSel(); return false;">Place hold</a>[% END %]
145
    [% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
162
    [% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
146
    | <a href="#" onclick="tagSelected(); return false;">Tag</a>[% END %][% END %]
163
    | <a href="#" id="tagsel_tag" class="disabled" onclick="tagSelected(); return false;">Tag</a>[% END %][% END %]
147
[% END %]
164
[% END %]
148
</span>
165
</span>
149
     <span id="tagsel_form" style="display:none">
166
     <span id="tagsel_form" style="display:none">
Lines 153-170 function tagAdded() { Link Here
153
           type="submit" value="Add" style="display:inline" />
170
           type="submit" value="Add" style="display:inline" />
154
       <a href="#" id="tagsel_cancel" onclick="tagCanceled(); return false;" style="display:inline">Cancel</a>
171
       <a href="#" id="tagsel_cancel" onclick="tagCanceled(); return false;" style="display:inline">Cancel</a>
155
     </span>
172
     </span>
156
</p>[% END %]
173
     </span>
157
            <form action="opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form">
174
</div>[% END %]
175
            <form action="opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
158
    [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
176
    [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
159
    <h3>
177
    <h3>
160
        [% IF ( print_basket ) %]
178
        [% IF ( print_basket ) %]
161
            [% BIBLIO_RESULT.title |html %]
179
            [% BIBLIO_RESULT.title |html %]
162
                [% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %][% subtitl.subfield |html %][% END %][% END %]
180
                [% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield |html %] [% END %][% END %]
163
                [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author |html %][% END %]
181
                [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author |html %][% END %]
164
        [% ELSE %]
182
        [% ELSE %]
165
                <input type="checkbox" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]" onclick="selRecord(value,checked)" />
183
                <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]" onclick="selRecord(value,checked)" />
166
                [% BIBLIO_RESULT.title |html %]
184
                [% BIBLIO_RESULT.title |html %]
167
                [% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %][% subtitl.subfield |html %][% END %][% END %]
185
                [% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield |html %] [% END %][% END %]
168
                [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author |html %][% END %]
186
                [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author |html %][% END %]
169
        [% END %]
187
        [% END %]
170
    </h3>
188
    </h3>
Lines 306-334 function tagAdded() { Link Here
306
324
307
[% ELSE %]
325
[% ELSE %]
308
[% UNLESS ( print_basket ) %]
326
[% UNLESS ( print_basket ) %]
309
<form action="/cgi-bin/koha/opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form">
327
<form action="/cgi-bin/koha/opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
310
<p style="border-top : 1px solid #E8E8E8;padding:5px 0;">
328
<div id="selections-toolbar">
311
    <a id="CheckAll" href="#">Select All</a>
329
    <a id="CheckAll" href="#">Select All</a>
312
    <a id="CheckNone" href="#">Clear All</a>
330
    <a id="CheckNone" href="#">Clear All</a>
313
    | <b>Selected items :</b>
331
    <span class="sep">|</span> <span class="links"><span id="selections">Select titles to: </span>
314
<span id="tag_hides">
332
        <a href="#" class="deleteshelf disabled" onclick="delSelRecords(); return false;">Remove</a>
315
<a href="#" onclick="delSelRecords(); return false;">Remove</a>
333
    [% IF ( opacuserlogin ) %]
316
[% IF ( opacuserlogin ) %]
334
        [% IF ( virtualshelves ) %][% IF ( loggedinusername ) %]
317
    [% IF ( virtualshelves ) %][% IF ( loggedinusername ) %]
335
          <a href="#" class="newshelf disabled" onclick="addSelToShelf(); return false;">Add to a list</a>
318
     | <a href="#" onclick="addSelToShelf(); return false;">Add to a list</a>
336
        [% END %][% END %]
319
    [% END %][% END %]
337
        [% IF ( RequestOnOpac ) %] <a href="#" class="hold disabled" onclick="holdSel(); return false;">Place hold</a>[% END %]
320
    [% IF ( RequestOnOpac ) %]| <a href="#" onclick="holdSel(); return false;">Place hold</a>[% END %]
338
        [% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
321
    [% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
339
         <a href="#" class="disabled" id="tagsel_tag" onclick="tagSelected(); return false;">Tag</a>[% END %][% END %]
322
    | <a href="#" onclick="tagSelected(); return false;">Tag</a>[% END %][% END %]
340
    [% END %]
323
[% END %]
341
    </span>
324
</span>
342
         [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]<span id="tagsel_form" style="display:none">
325
     [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]<span id="tagsel_form" style="display:none">
343
           <label for="tagsel_new" style="display:inline">New&nbsp;Tag:</label>
326
       <label for="tagsel_new" style="display:inline">New&nbsp;Tag:</label>
344
           <input name="tagsel_new" id="tagsel_new" maxlength="100"  style="display:inline"/>
327
       <input name="tagsel_new" id="tagsel_new" maxlength="100"  style="display:inline"/>
345
           <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="tagsel_button" type="submit" value="Add"  style="display:inline"/>
328
       <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="tagsel_button" type="submit" value="Add"  style="display:inline"/>
346
           <a href="#" id="tagsel_cancel" onclick="tagCanceled(); return false;" style="display:inline">Cancel</a>
329
       <a href="#" id="tagsel_cancel" onclick="tagCanceled(); return false;" style="display:inline">Cancel</a>
347
         </span>[% END %][% END %][% END %]</span>
330
     </span>[% END %][% END %][% END %]
348
</div>
331
</p>
332
[% END %]
349
[% END %]
333
    <table id="itemst">
350
    <table id="itemst">
334
	<thead><tr>
351
	<thead><tr>
Lines 346-352 function tagAdded() { Link Here
346
                <tr>
363
                <tr>
347
            [% END %]
364
            [% END %]
348
            [% UNLESS ( print_basket ) %]<td>
365
            [% UNLESS ( print_basket ) %]<td>
349
                        <input type="checkbox" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]" onclick="selRecord(value,checked);" />
366
                        <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]" onclick="selRecord(value,checked);" />
350
367
351
                </td> [% END %]
368
                </td> [% END %]
352
            <td>
369
            <td>
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt (-37 / +76 lines)
Lines 6-15 Link Here
6
var MSG_NO_TAG_SPECIFIED = _("No tag was specified.");
6
var MSG_NO_TAG_SPECIFIED = _("No tag was specified.");
7
var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
7
var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
8
var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?");
8
var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to delete this list?");
9
var MSG_NO_RECORD_SELECTED = _("Please select one or more items");
9
10
10
[% IF ( opacuserlogin ) %][% IF ( RequestOnOpac ) %]
11
[% IF ( opacuserlogin ) %][% IF ( RequestOnOpac ) %]
11
function holdSelections() {
12
function holdSelections() {
12
    var checkedBoxes = $(":checkbox:checked");
13
    var checkedBoxes = $("input:checkbox:checked");
13
    if ($(checkedBoxes).size() == 0) {
14
    if ($(checkedBoxes).size() == 0) {
14
        alert(MSG_NO_RECORD_SELECTED);
15
        alert(MSG_NO_RECORD_SELECTED);
15
    } else {
16
    } else {
Lines 63-95 function tagAdded() { Link Here
63
    return false;
64
    return false;
64
}[% END %][% END %][% END %]
65
}[% END %][% END %][% END %]
65
66
67
function enableCheckboxActions(){
68
    // Enable/disable controls if checkboxes are checked
69
    var checkedBoxes = $(".checkboxed input:checkbox:checked");
70
    if ($(checkedBoxes).size()) {
71
      $("#selections").html(_("With selected titles: "));
72
      $("#selections-toolbar .links a").removeClass("disabled");
73
    } else {
74
      $("#selections").html(_("Select titles to: "));
75
      $("#selections-toolbar .links a").addClass("disabled");
76
    }
77
}
78
66
$(function() {
79
$(function() {
67
    [% IF ( opacbookbag ) %]$(".addtocart").show();[% END %]
80
    [% IF ( opacbookbag ) %]$(".addtocart").show();[% END %]
68
    $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_('Clear All')+"<\/a>|");
81
    $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_('Clear all')+"<\/a>");
69
    $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_('Select All')+"<\/a>");
82
    $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_('Select all')+"<\/a>");
70
  $("a.print").show();
83
  $("a.print").show();
71
84
72
    [% IF ( opacuserlogin ) %][% IF ( RequestOnOpac ) %]$("#placehold").html("<a href=\"#\" class=\"hold tag_hides\">"+_('Place Hold')+"<\/a>");
85
    [% IF ( opacuserlogin ) %][% IF ( RequestOnOpac ) %]$("#placehold").html("<a href=\"#\" class=\"hold tag_hides disabled\">"+_('Place hold')+"<\/a>");
73
      $("#toolbar a.hold").click(function(){
86
      $("#selections-toolbar a.hold").click(function(){
74
         holdSelections();
87
         holdSelections();
75
         return false;
88
         return false;
76
      });[% END %][% END %]
89
      });[% END %][% END %]
77
90
78
    $("#CheckAll").click(function(){
91
    $("#CheckAll").click(function(){
79
        $(".checkboxed").checkCheckboxes();
92
        $(".checkboxed").checkCheckboxes();
93
        enableCheckboxActions();
80
        return false;
94
        return false;
81
    });
95
    });
82
    $("#CheckNone").click(function(){
96
    $("#CheckNone").click(function(){
83
        $(".checkboxed").unCheckCheckboxes();
97
        $(".checkboxed").unCheckCheckboxes();
98
        enableCheckboxActions();
84
        return false;
99
        return false;
85
    });
100
    });
86
101
102
    $(".cb").click(function(){
103
      enableCheckboxActions();
104
    });
105
87
    [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
106
    [% IF ( opacuserlogin ) %][% IF ( loggedinusername ) %][% IF ( TagsEnabled ) %]
88
          $("#addtags").click(function(){
107
          $("#addtags").click(function(){
89
            tagSelected();
108
            tagSelected();
90
            return false;
109
            return false;
91
          });
110
          });
92
          $("#addtags").html("<a id=\"tagsel_tag\" href=\"#\">"+_("Tag")+"<\/a> |");
111
          $("#addtags").html("<a id=\"tagsel_tag\" href=\"#\" class=\"disabled\">"+_("Tag")+"<\/a> ");
93
112
94
        $(".tagbutton").click(KOHA.Tags.add_tag_button);
113
        $(".tagbutton").click(KOHA.Tags.add_tag_button);
95
      [% IF ( loggedinusername ) %]
114
      [% IF ( loggedinusername ) %]
Lines 112-117 $(function() { Link Here
112
            });
131
            });
113
        [% END %]
132
        [% END %]
114
        [% END %][% END %][% END %]
133
        [% END %][% END %][% END %]
134
  [% IF ( loggedinusername && manageshelf ) %]
135
  $("#myform").submit(function(){
136
    var checkedBoxes = $(".checkboxed input:checkbox:checked");
137
    if ($(checkedBoxes).size()) {
138
      return confirmDelete(MSG_REMOVE_FROM_LIST);
139
    } else {
140
      alert(MSG_NO_RECORD_SELECTED);
141
      return false;
142
    }
143
  });
144
    $("#removeitems").html("<a href=\"#\" class=\"removeitems tag_hides disabled\">"+_("Remove from list")+"</a>")
145
    .click(function(){
146
      $("#myform").submit();
147
      return false;
148
    });
149
  [% END %]
115
  [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
150
  [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
116
});
151
});
117
      function Check(f) {
152
      function Check(f) {
Lines 185-218 $(function() { Link Here
185
            [% IF ( viewshelf ) %]<!--  Viewing a particular shelf -->
220
            [% IF ( viewshelf ) %]<!--  Viewing a particular shelf -->
186
              <h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> <img src="[% themelang %]/../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> <em>[% shelfname |html %]</em></h3>
221
              <h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> <img src="[% themelang %]/../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> <em>[% shelfname |html %]</em></h3>
187
              [% IF ( itemsloop ) %]
222
              [% IF ( itemsloop ) %]
188
                  <div id="toolbar" class="list-actions"> <span class="checkall"></span>
223
                  <div id="toolbar" class="list-actions">
189
                    <span class="clearall"></span>
224
190
225
                      <a href="/cgi-bin/koha/opac-downloadshelf.pl?shelfid=[% shelfnumber %]" class="download" onclick="open(CGIBIN+'opac-downloadshelf.pl?shelfid=[% shelfnumber %]','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false;">Download List</a>
191
[% IF ( RequestOnOpac ) %]
226
192
                      <span id="placehold"></span>[% UNLESS ( TagsEnabled ) %] |[% END %]
227
[% IF ( opacuserlogin ) %]<span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelfnumber %]" class="send" onclick="open(CGIBIN+'opac-sendshelf.pl?shelfid=[% shelfnumber %]','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false; ">Send List</a></span>[% END %]
193
[% END %]
228
194
[% IF ( loggedinusername ) %]
229
<a class="print" href="opac-shelves.pl" onclick="print(); return false;">Print List</a>
195
    [% IF ( TagsEnabled ) %]
230
196
                    <span id="addtags"></span>
231
                [% IF ( manageshelf ) %] <span class="sep">|</span> <form method="get" action="opac-shelves.pl"><input type="hidden" name="op" value="modif" />
197
                    <span id="tagsel_form" style="display:none">
198
                      <label for="tagsel_new" style="display:inline">New&nbsp;Tag:</label>
199
                      <input name="tagsel_new" id="tagsel_new" maxlength="100" style="display:inline"/>
200
                      <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="tagsel_button"
201
                             type="submit" value="Add" style="display:inline" />
202
                      <a href="#" id="tagsel_cancel" onclick="tagCanceled(); return false;" style="display:inline">Cancel</a>
203
                  </span>
204
    [% END %][% END %]
205
206
                      <a href="/cgi-bin/koha/opac-downloadshelf.pl?shelfid=[% shelfnumber %]" class="download tag_hides" onclick="open(CGIBIN+'opac-downloadshelf.pl?shelfid=[% shelfnumber %]','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false;">Download List</a>
207
208
[% IF ( opacuserlogin ) %]<span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelfnumber %]" class="send tag_hides" onclick="open(CGIBIN+'opac-sendshelf.pl?shelfid=[% shelfnumber %]','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false; ">Send List</a></span>[% END %]
209
210
<a class="print tag_hides" href="opac-shelves.pl" onclick="print(); return false;">Print List</a>
211
212
                [% IF ( manageshelf ) %] | <form method="get" action="opac-shelves.pl" class="tag_hides"><input type="hidden" name="op" value="modif" />
213
                <input type="hidden" name="display" value="viewshelf" />
232
                <input type="hidden" name="display" value="viewshelf" />
214
                <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" /> <input type="submit" class="editshelf tag_hides" value="Edit List" /></form>
233
                <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" /> <input type="submit" class="editshelf" value="Edit List" /></form>
215
                      <form method="post" action="opac-shelves.pl" class="tag_hides">
234
235
                      <form method="post" action="opac-shelves.pl">
216
                        <input type="hidden" value="1" name="shelves"/>
236
                        <input type="hidden" value="1" name="shelves"/>
217
                         <input type="hidden" value="1" name="DEL-[% shelfnumber %]"/>
237
                         <input type="hidden" value="1" name="DEL-[% shelfnumber %]"/>
218
                         <input type="submit" class="deleteshelf" value="Delete List" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
238
                         <input type="submit" class="deleteshelf" value="Delete List" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"/>
Lines 220-227 $(function() { Link Here
220
240
221
241
222
                  </div>
242
                  </div>
223
243
                  <div id="selections-toolbar" class="list-actions">
224
                  <form action="/cgi-bin/koha/opac-shelves.pl" method="post" name="myform" class="checkboxed">
244
                  <span class="checkall"></span> <span class="clearall"></span> <span class="sep">|</span>
245
                  <span class="links"><span id="selections">Select titles to: </span>
246
                                      [% IF ( RequestOnOpac ) %]
247
                                        <span id="placehold"></span>
248
                                      [% END %]
249
                                      [% IF ( loggedinusername ) %]
250
                                        [% IF ( TagsEnabled ) %]
251
                                          <span id="addtags"></span>
252
                                          <span id="tagsel_form" style="display:none">
253
                                          <label for="tagsel_new" style="display:inline">New&nbsp;Tag:</label>
254
                                          <input name="tagsel_new" id="tagsel_new" maxlength="100" style="display:inline"/>
255
                                          <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="tagsel_button" type="submit" value="Add" style="display:inline" />
256
                                          <a href="#" id="tagsel_cancel" onclick="tagCanceled(); return false;" style="display:inline">Cancel</a>
257
                                          </span>
258
                                        [% END %]
259
                                      [% END %]
260
                    [% IF ( loggedinusername && manageshelf ) %]<span id="removeitems"></span>[% END %]</span>
261
                  </div>
262
                  <form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="myform" name="myform" class="checkboxed">
225
                [% IF ( manageshelf ) %]
263
                [% IF ( manageshelf ) %]
226
                    <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
264
                    <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
227
                    <input type="hidden" name="modifyshelfcontents" value="1" />
265
                    <input type="hidden" name="modifyshelfcontents" value="1" />
Lines 235-241 $(function() { Link Here
235
                    [% ELSE %]
273
                    [% ELSE %]
236
                      <tr>
274
                      <tr>
237
                    [% END %]
275
                    [% END %]
238
                        <td><input type="checkbox" name="REM-[% itemsloo.biblionumber %]"
276
                        <td><input type="checkbox" class="cb" name="REM-[% itemsloo.biblionumber %]"
239
                                   value="[% itemsloo.biblionumber %]" /></td>
277
                                   value="[% itemsloo.biblionumber %]" /></td>
240
                    [% UNLESS ( item_level_itypes ) %]
278
                    [% UNLESS ( item_level_itypes ) %]
241
                        <td>
279
                        <td>
Lines 258-263 $(function() { Link Here
258
                                [% END %]
296
                                [% END %]
259
                [% IF ( itemsloo.title ) %][% itemsloo.title |html %][% ELSE %]No title[% END %] [% FOREACH subtitl IN itemsloo.subtitle %][% subtitl.subfield|html %][% END %]</a>
297
                [% IF ( itemsloo.title ) %][% itemsloo.title |html %][% ELSE %]No title[% END %] [% FOREACH subtitl IN itemsloo.subtitle %][% subtitl.subfield|html %][% END %]</a>
260
                                [% IF ( itemsloo.author ) %]by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% itemsloo.author |url %]" title="Search for works by this author" class="author">[% itemsloo.author %]</a>
298
                                [% IF ( itemsloo.author ) %]by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% itemsloo.author |url %]" title="Search for works by this author" class="author">[% itemsloo.author %]</a>
299
261
                                [% ELSE %]&nbsp;
300
                                [% ELSE %]&nbsp;
262
                                [% END %]
301
                                [% END %]
263
        <span class="results_summary"><span class="label">Publication:</span>
302
        <span class="results_summary"><span class="label">Publication:</span>
Lines 360-366 $(function() { Link Here
360
              [% IF ( itemsloop ) %]
399
              [% IF ( itemsloop ) %]
361
                <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
400
                <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
362
                <input type="hidden" name="modifyshelfcontents" value="1" />
401
                <input type="hidden" name="modifyshelfcontents" value="1" />
363
                <input type="hidden" name="viewshelf" value="[% shelfnumber %]" /><input type="submit" value="Remove Selected Items" class="icon delete" onclick="return confirmDelete(MSG_REMOVE_FROM_LIST)" />
402
                <input type="hidden" name="viewshelf" value="[% shelfnumber %]" /><input type="submit" value="Remove Selected Items" class="icon delete" />
364
              [% ELSE %]
403
              [% ELSE %]
365
                <form method="post" action="opac-shelves.pl">
404
                <form method="post" action="opac-shelves.pl">
366
                  <input type="hidden" name="DEL-[% shelfnumber %]" value="1" />
405
                  <input type="hidden" name="DEL-[% shelfnumber %]" value="1" />

Return to bug 7719