Lines 155-180
function placeHold () {
Link Here
|
155 |
$("#hold_form").submit(); |
155 |
$("#hold_form").submit(); |
156 |
return false; |
156 |
return false; |
157 |
} |
157 |
} |
158 |
/** |
|
|
159 |
* This function checks to make sure a list title is assigned |
160 |
*/ |
161 |
function Check(f) { |
162 |
var _alertString=""; |
163 |
var alertString2; |
164 |
|
158 |
|
165 |
if($("#shelfname").val() == ""){ |
|
|
166 |
_alertString += "- "+_("You must enter a List Name") + "\n"; |
167 |
} |
168 |
|
169 |
if (_alertString.length==0) { |
170 |
f.submit(); |
171 |
} else { |
172 |
alertString2 = _("Form not submitted because of the following problem(s)"); |
173 |
alertString2 += "\n------------------------------------------------------------------------------------\n\n"; |
174 |
alertString2 += _alertString; |
175 |
alert(alertString2); |
176 |
} |
177 |
} |
178 |
function cartList(){ |
159 |
function cartList(){ |
179 |
var checkboxes = $("#searchresults").find(":checkbox"); |
160 |
var checkboxes = $("#searchresults").find(":checkbox"); |
180 |
var vshelf = vShelfAdd(checkboxes); |
161 |
var vshelf = vShelfAdd(checkboxes); |
Lines 440-453
function placeHold () {
Link Here
|
440 |
[% IF ( seflag ) %] |
421 |
[% IF ( seflag ) %] |
441 |
<div class="yui-ge"> |
422 |
<div class="yui-ge"> |
442 |
<div class="yui-u first"> |
423 |
<div class="yui-u first"> |
443 |
<form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl"> |
424 |
<form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl" class="validated"> |
444 |
<fieldset class="rows"> |
425 |
<fieldset class="rows"> |
445 |
|
426 |
|
446 |
[% IF ( shelves ) %] |
427 |
[% IF ( shelves ) %] |
447 |
<input type="hidden" name="shelves" value="1" /> |
|
|
448 |
<legend>Create a new list</legend> |
428 |
<legend>Create a new list</legend> |
|
|
429 |
<input type="hidden" name="shelves" value="1" /> |
449 |
<ol> |
430 |
<ol> |
450 |
<li><label class="required" for="addshelf">List name:</label><input id="addshelf" type="text" name="addshelf" size="25" /></li> |
431 |
<li><label class="required" for="addshelf">List name:</label><input id="addshelf" type="text" name="addshelf" size="25" required="required" class="required" /> |
|
|
432 |
<span class="required">Required</span> |
433 |
</li> |
451 |
<li><span class="label">Owner: </span><input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />[% loggedinusername %]</li> |
434 |
<li><span class="label">Owner: </span><input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />[% loggedinusername %]</li> |
452 |
<li><label for="sortfield" >Sort this list by: </label> |
435 |
<li><label for="sortfield" >Sort this list by: </label> |
453 |
<select name="sortfield" id="sortfield"> |
436 |
<select name="sortfield" id="sortfield"> |
Lines 466-477
function placeHold () {
Link Here
|
466 |
[% END %] |
449 |
[% END %] |
467 |
|
450 |
|
468 |
[% IF ( edit ) %] |
451 |
[% IF ( edit ) %] |
469 |
<input type="hidden" name="op" value="modifsave" /> |
|
|
470 |
[% IF ( showprivateshelves ) %]<input type="hidden" name="display" value="privateshelves" />[% END %] |
471 |
<input type="hidden" name="shelfnumber" value="[% shelfnumber %]" /> |
472 |
<legend>Edit list <i>[% shelfname | html %]</i></legend> |
452 |
<legend>Edit list <i>[% shelfname | html %]</i></legend> |
|
|
453 |
<input type="hidden" name="op" value="modifsave" /> |
454 |
[% IF ( showprivateshelves ) %]<input type="hidden" name="display" value="privateshelves" />[% END %] |
455 |
<input type="hidden" name="shelfnumber" value="[% shelfnumber %]" /> |
473 |
<ol> |
456 |
<ol> |
474 |
<li><label for="shelfname">Name: </label><input type="text" id="shelfname" name="shelfname" size="25" value="[% shelfname |html %]" /></li> |
457 |
<li><label for="shelfname" class="required">Name: </label><input type="text" id="shelfname" name="shelfname" size="25" value="[% shelfname |html %]" required="required" class="required" /> |
|
|
458 |
<span class="required">Required</span> |
459 |
</li> |
475 |
<li><label for="owner">Owner: </label><input type="hidden" id="owner" name="owner" value="[% IF ( owner ) %][% ownername %][% ELSE %][% loggedinusername %][% END %]" />[% IF ( owner ) %][% ownername %][% ELSE %][% loggedinusername %][% END %]</li> |
460 |
<li><label for="owner">Owner: </label><input type="hidden" id="owner" name="owner" value="[% IF ( owner ) %][% ownername %][% ELSE %][% loggedinusername %][% END %]" />[% IF ( owner ) %][% ownername %][% ELSE %][% loggedinusername %][% END %]</li> |
476 |
<li><label for="sortfield" >Sort this list by: </label> |
461 |
<li><label for="sortfield" >Sort this list by: </label> |
477 |
<select name="sortfield"> |
462 |
<select name="sortfield"> |
Lines 498-504
function placeHold () {
Link Here
|
498 |
[% END %] |
483 |
[% END %] |
499 |
|
484 |
|
500 |
</fieldset> |
485 |
</fieldset> |
501 |
<fieldset class="action"><input type="submit" onclick="Check(this.form); return false;" value="Save" class="submit" /> |
486 |
<fieldset class="action"><input type="submit" value="Save" class="submit" /> |
502 |
[% IF ( showprivateshelves ) %]<a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves" class="cancel">Cancel</a>[% ELSE %]<a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a>[% END %] |
487 |
[% IF ( showprivateshelves ) %]<a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves" class="cancel">Cancel</a>[% ELSE %]<a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a>[% END %] |
503 |
</fieldset> |
488 |
</fieldset> |
504 |
</form> |
489 |
</form> |
Lines 507-513
function placeHold () {
Link Here
|
507 |
<div class="help"><ul> |
492 |
<div class="help"><ul> |
508 |
<li>A <b>Private</b> list is managed by you and can be seen only by you.</li> |
493 |
<li>A <b>Private</b> list is managed by you and can be seen only by you.</li> |
509 |
<li> A <b>Public</b> list can be seen by everybody, but managed only by you.</li> |
494 |
<li> A <b>Public</b> list can be seen by everybody, but managed only by you.</li> |
510 |
<br/> |
|
|
511 |
<li>The owner of a list is always allowed to add entries, but needs permission to remove.</li> |
495 |
<li>The owner of a list is always allowed to add entries, but needs permission to remove.</li> |
512 |
</ul> |
496 |
</ul> |
513 |
</div> |
497 |
</div> |
514 |
- |
|
|