Lines 136-141
function placeHold () {
Link Here
|
136 |
$("#hold_form").submit(); |
136 |
$("#hold_form").submit(); |
137 |
return false; |
137 |
return false; |
138 |
} |
138 |
} |
|
|
139 |
|
140 |
function forgetPatron(){ |
141 |
$.cookie("holdfor",null, { path: "/", expires: 0 }); |
142 |
$(".holdforlink").remove(); |
143 |
$("#placeholdc").empty(); |
144 |
new YAHOO.widget.Button({ |
145 |
id: "placehold", |
146 |
type: "button", |
147 |
label: _("Place hold"), |
148 |
container: "placeholdc", |
149 |
onclick: { fn: placeHold } |
150 |
}); |
151 |
} |
152 |
|
139 |
function addToList () { |
153 |
function addToList () { |
140 |
var checkedItems = $(".selection:checked"); |
154 |
var checkedItems = $(".selection:checked"); |
141 |
if ($(checkedItems).size() == 0) { |
155 |
if ($(checkedItems).size() == 0) { |
Lines 181-188
YAHOO.util.Event.onContentReady("searchheader", function () {
Link Here
|
181 |
} |
195 |
} |
182 |
var HoldForButtonMenu = [ |
196 |
var HoldForButtonMenu = [ |
183 |
{ text: "Place hold", onclick: { fn: holdFor }}, |
197 |
{ text: "Place hold", onclick: { fn: holdFor }}, |
184 |
{ text: "Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])", onclick: { fn: holdForPatron }} |
198 |
{ text: "Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])", onclick: { fn: holdForPatron }}, |
185 |
]; |
199 |
{ text: "Forget [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])", onclick: { fn: forgetPatron }}]; |
186 |
|
200 |
|
187 |
var HoldForButton = new YAHOO.widget.Button({ |
201 |
var HoldForButton = new YAHOO.widget.Button({ |
188 |
type: "split", |
202 |
type: "split", |
Lines 195-201
YAHOO.util.Event.onContentReady("searchheader", function () {
Link Here
|
195 |
[% ELSE %] |
209 |
[% ELSE %] |
196 |
new YAHOO.widget.Button({ |
210 |
new YAHOO.widget.Button({ |
197 |
id: "placehold", |
211 |
id: "placehold", |
198 |
type: "link", |
212 |
type: "button", |
199 |
label: _("Place hold"), |
213 |
label: _("Place hold"), |
200 |
container: "placeholdc", |
214 |
container: "placeholdc", |
201 |
onclick: { fn: placeHold } |
215 |
onclick: { fn: placeHold } |
Lines 499-505
YAHOO.util.Event.onContentReady("searchheader", function () {
Link Here
|
499 |
<span class="noholdstext">No holds allowed</span> |
513 |
<span class="noholdstext">No holds allowed</span> |
500 |
[% ELSE %] |
514 |
[% ELSE %] |
501 |
<a id="reserve_[% SEARCH_RESULT.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Holds</a> |
515 |
<a id="reserve_[% SEARCH_RESULT.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Holds</a> |
502 |
[% IF ( holdfor ) %] | <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]&findborrower=[% holdfor_cardnumber %]">Hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a>[% END %] |
516 |
[% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]&findborrower=[% holdfor_cardnumber %]">Hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></span>[% END %] |
503 |
[% END %] |
517 |
[% END %] |
504 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] |
518 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] |
505 |
| <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Edit record</a> |
519 |
| <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Edit record</a> |