| 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 |  | 
            
              | 165 | 	    if($("#shelfname").val() == ""){ | 
            
              | 166 |             _alertString += "- "+_("You must enter a List Name") + "\n"; | 
            
              | 167 | 		} | 
        
          | 168 |  | 158 |  | 
            
              | 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-478
          function placeHold () {
      
      
        Link Here | 
        
          | 466 |     [% END %] | 449 |     [% END %] | 
        
          | 467 |  | 450 |  | 
        
          | 468 |     [% IF ( edit ) %] | 451 |     [% IF ( edit ) %] | 
          
            
              | 469 | 		<input type="hidden" name="op" value="modifsave" /> | 452 |         <legend>Edit list <i>[% shelfname | html %]</i></legend> | 
        
          | 470 |         <input type="hidden" name="display" value="[% display %]" /> | 453 |         <input type="hidden" name="display" value="[% display %]" /> | 
            
              |  |  | 454 |         <input type="hidden" name="op" value="modifsave" /> | 
        
          | 471 |         [% IF ( showprivateshelves ) %]<input type="hidden" name="display" value="privateshelves" />[% END %] | 455 |         [% IF ( showprivateshelves ) %]<input type="hidden" name="display" value="privateshelves" />[% END %] | 
          
            
              | 472 | 		<input type="hidden" name="shelfnumber" value="[% shelfnumber %]" /> | 456 |         <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" /> | 
            
              | 473 |         <legend>Edit list <i>[% shelfname | html %]</i></legend> |  |  | 
        
          | 474 | 		<ol> | 457 | 		<ol> | 
          
            
              | 475 | 		<li><label for="shelfname">Name: </label><input type="text" id="shelfname" name="shelfname" size="25" value="[% shelfname |html %]" /></li> | 458 |             <li><label for="shelfname" class="required">Name: </label><input type="text" id="shelfname" name="shelfname" size="25" value="[% shelfname |html %]" required="required" class="required" /> | 
            
              |  |  | 459 |             <span class="required">Required</span> | 
            
              | 460 |         </li> | 
        
          | 476 | 		<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> | 461 | 		<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> | 
        
          | 477 | 		<li><label for="sortfield" >Sort this list by: </label> | 462 | 		<li><label for="sortfield" >Sort this list by: </label> | 
        
          | 478 | 		<select name="sortfield"> | 463 | 		<select name="sortfield"> | 
  
    | Lines 499-505
          function placeHold () {
      
      
        Link Here | 
        
          | 499 | 	[% END %] | 484 | 	[% END %] | 
        
          | 500 |  | 485 |  | 
        
          | 501 | 		</fieldset> | 486 | 		</fieldset> | 
          
            
              | 502 | 		<fieldset class="action"><input type="submit" onclick="Check(this.form); return false;" value="Save" class="submit" /> | 487 |  | 
            
              |  |  | 488 |     <fieldset class="action"><input type="submit" value="Save" class="submit" /> | 
        
          | 503 |         [% IF ( showprivateshelves ) %] | 489 |         [% IF ( showprivateshelves ) %] | 
        
          | 504 |             <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves" class="cancel">Cancel</a> | 490 |             <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves" class="cancel">Cancel</a> | 
        
          | 505 |         [% ELSE %] | 491 |         [% ELSE %] | 
  
    | Lines 516-522
          function placeHold () {
      
      
        Link Here | 
        
          | 516 |         <div class="help"><ul> | 502 |         <div class="help"><ul> | 
        
          | 517 |             <li>A <b>Private</b> list is managed by you and can be seen only by you.</li> | 503 |             <li>A <b>Private</b> list is managed by you and can be seen only by you.</li> | 
        
          | 518 |             <li> A <b>Public</b> list can be seen by everybody, but managed only by you.</li> | 504 |             <li> A <b>Public</b> list can be seen by everybody, but managed only by you.</li> | 
            
              | 519 |             <br/> |  |  | 
        
          | 520 |             <li>The owner of a list is always allowed to add entries, but needs permission to remove.</li> | 505 |             <li>The owner of a list is always allowed to add entries, but needs permission to remove.</li> | 
        
          | 521 |         </ul> | 506 |         </ul> | 
        
          | 522 |         </div> | 507 |         </div> | 
            
              | 523 | -  |  |  |