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

(-)a/koha-tmpl/opac-tmpl/prog/en/css/opac.css (-1 / +4 lines)
Lines 1425-1430 div#changelanguage{ Link Here
1425
	color : #666;
1425
	color : #666;
1426
	font-size : 85%;
1426
	font-size : 85%;
1427
	padding : 1em;
1427
	padding : 1em;
1428
	margin-top : 2em;
1428
 }
1429
 }
1429
 
1430
 
1430
div#changelanguage a {
1431
div#changelanguage a {
Lines 2005-2008 div.ft { Link Here
2005
2006
2006
#plainmarc table { border: 0; margin: .7em 0 0 0; font-family: monospace; font-size: 95%; }
2007
#plainmarc table { border: 0; margin: .7em 0 0 0; font-family: monospace; font-size: 95%; }
2007
#plainmarc th { background-color : #FFF; border: 0; white-space: nowrap; text-align:left; vertical-align: top; padding: 2px; }
2008
#plainmarc th { background-color : #FFF; border: 0; white-space: nowrap; text-align:left; vertical-align: top; padding: 2px; }
2008
#plainmarc td { border: 0; padding : 2px; vertical-align: top; }
2009
#plainmarc td { border: 0; padding : 2px; vertical-align: top; }
2010
div.bibmessage { background-color : #ffffb0; border-radius : 5px; padding : 3px; margin : 2px; }
2011
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl (-188 / +178 lines)
Lines 160-186 Link Here
160
    <div id="bd">
160
    <div id="bd">
161
	  <div id="yui-g">
161
	  <div id="yui-g">
162
        <div id="holds" class="container">
162
        <div id="holds" class="container">
163
163
        <!-- TMPL_IF NAME="message" -->
164
          <!-- TMPL_IF NAME="message" -->
165
            <!-- TMPL_IF NAME="GNA" -->
164
            <!-- TMPL_IF NAME="GNA" -->
166
              <div class="dialog alert">
165
              <div id="gna" class="dialog alert">
167
                <strong>Sorry</strong>, you cannot place holds because the library doesn't have up-to-date <a href="/cgi-bin/koha/opac-userdetails.pl">contact information</a> on file.
166
                <p><strong>Sorry</strong>, you cannot place holds because the library doesn't have up-to-date <a href="/cgi-bin/koha/opac-userupdate.pl">contact information</a> on file.</p>
168
              </div>
167
              <p>Please contact your librarian, or use the <a href="/cgi-bin/koha/opac-userupdate.pl">online update form</a> to submit current information (<em>Please note:</em> there may be a delay in restoring your account if you submit online)</p>
169
              <div class="dialog alert">Please contact your librarian, or use the <a href="/cgi-bin/koha/opac-userupdate.pl">online update form</a> to submit current information (<em>Please note:</em> there may be a delay in restoring your account if you submit online)
170
              </div>
168
              </div>
171
            <!-- /TMPL_IF -->
169
            <!-- /TMPL_IF -->
172
            <!-- TMPL_IF NAME="lost" -->
170
            <!-- TMPL_IF NAME="lost" -->
173
              <div class="dialog alert">
171
              <div id="lost" class="dialog alert">
174
                <strong>Sorry</strong>, you cannot place holds because your library card has been marked as lost or stolen.
172
                <p><strong>Sorry</strong>, you cannot place holds because your library card has been marked as lost or stolen.</p>
175
              </div>
173
                <p>If this is an error, please take your card to the circulation desk at your local library and the error will be corrected.</p>
176
              <div class="dialog alert">If this is an error, please take your card to the circulation desk at your local library and the error will be corrected.
177
              </div>
174
              </div>
178
            <!-- /TMPL_IF -->
175
            <!-- /TMPL_IF -->
179
            <!-- TMPL_IF NAME="debarred" -->
176
            <!-- TMPL_IF NAME="debarred" -->
180
              <div class="dialog alert">
177
              <div id="debarred" class="dialog alert">
181
                <strong>Sorry</strong>, you cannot place holds because your account has been frozen.
178
                <p><strong>Sorry</strong>, you cannot place holds because your account has been frozen.</p>
182
              </div>
179
                <p>Usually the reason for freezing an account is old overdues or damage fees.   If <a href="/cgi-bin/koha/opac-user.pl">your account page</a> shows your account to be clear, please consult a librarian.</p>
183
              <div class="dialog alert">Usually the reason for freezing an account is old overdues or damage fees.   If <a href="/cgi-bin/koha/opac-user.pl">your account page</a> shows your account to be clear, please consult a librarian.
184
              </div>
180
              </div>
185
            <!-- /TMPL_IF -->
181
            <!-- /TMPL_IF -->
186
            <!-- TMPL_IF NAME="too_much_oweing" -->
182
            <!-- TMPL_IF NAME="too_much_oweing" -->
Lines 211-228 Link Here
211
            <!-- TMPL_IF NAME="bad_data" -->
207
            <!-- TMPL_IF NAME="bad_data" -->
212
              <div class="dialog alert">ERROR: Internal error: incomplete hold request.</div>
208
              <div class="dialog alert">ERROR: Internal error: incomplete hold request.</div>
213
            <!-- /TMPL_IF -->
209
            <!-- /TMPL_IF -->
210
          <!-- TMPL_ELSE -->
214
            <!-- TMPL_IF NAME="none_available" -->
211
            <!-- TMPL_IF NAME="none_available" -->
215
              <div class="dialog alert"><strong>Sorry</strong>, none of these items can be placed on hold.
212
                <div class="dialog alert"><strong>Sorry</strong>, none of these items can be placed on hold.
216
              </div>
213
                </div>
217
            <!-- /TMPL_IF -->
214
              <!-- /TMPL_IF -->
218
          <!-- /TMPL_IF --><!-- NAME="message" -->
215
          <!-- /TMPL_IF --><!-- NAME="message" -->
219
216
220
          <!-- TMPL_UNLESS NAME="message" -->
217
      <!-- TMPL_UNLESS NAME="message" --><!-- TMPL_UNLESS NAME="none_available" --><h3>Confirm holds for:
221
              <h3>Confirm holds for:
218
                      <!-- TMPL_LOOP NAME="USER_INFO" -->
222
                <!-- TMPL_LOOP NAME="USER_INFO" -->
219
                        <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)
223
                  <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)
220
                      <!-- /TMPL_LOOP -->
224
                <!-- /TMPL_LOOP -->
221
                    </h3><!-- /TMPL_UNLESS -->
225
              </h3>
226
222
227
            <form action="/cgi-bin/koha/opac-reserve.pl" method="post">
223
            <form action="/cgi-bin/koha/opac-reserve.pl" method="post">
228
            <input type="hidden" name="place_reserve" value="1"/>
224
            <input type="hidden" name="place_reserve" value="1"/>
Lines 232-239 Link Here
232
            <input type="hidden" name="selecteditems" id="selections"/>
228
            <input type="hidden" name="selecteditems" id="selections"/>
233
            <div id="bigloop">
229
            <div id="bigloop">
234
              <table id="bibitemloop">
230
              <table id="bibitemloop">
235
                <tr>
231
                <!-- TMPL_UNLESS NAME="none_available" --><tr>
236
                  <th colspan="2">Hold</th>
232
                  <th>Hold</th>
237
                  <th>Title</th>
233
                  <th>Title</th>
238
                  <!-- TMPL_UNLESS NAME="item-level_itypes" -->
234
                  <!-- TMPL_UNLESS NAME="item-level_itypes" -->
239
                    <th>Item Type</th>
235
                    <th>Item Type</th>
Lines 251-262 Link Here
251
                  <!-- TMPL_UNLESS NAME="singleBranchMode" -->
247
                  <!-- TMPL_UNLESS NAME="singleBranchMode" -->
252
                    <th>Pickup Location</th>
248
                    <th>Pickup Location</th>
253
                  <!-- /TMPL_UNLESS -->
249
                  <!-- /TMPL_UNLESS -->
254
                </tr>
250
                </tr><!-- TMPL_ELSE --><tr><th colspan="5">Title</th></tr><!-- /TMPL_UNLESS -->
255
251
256
                <!-- TMPL_LOOP name="bibitemloop" -->
252
                <!-- TMPL_LOOP name="bibitemloop" -->
257
                  <tr>
253
                  <tr>
258
                      <!-- TMPL_IF NAME="holdable" -->
254
                      <!-- TMPL_IF NAME="holdable" -->
259
					  <td colspan="2">
255
					  <td>
260
                      <input class="reserve_mode" name="reserve_mode" type="hidden" value="single"/>
256
                      <input class="reserve_mode" name="reserve_mode" type="hidden" value="single"/>
261
                      <input class="single_bib" name="single_bib" type="hidden" value="<!-- TMPL_VAR NAME="biblionumber" -->"/>
257
                      <input class="single_bib" name="single_bib" type="hidden" value="<!-- TMPL_VAR NAME="biblionumber" -->"/>
262
                        <span class="confirmjs_hold" title="<!-- TMPL_VAR NAME="biblionumber" -->"></span>
258
                        <span class="confirmjs_hold" title="<!-- TMPL_VAR NAME="biblionumber" -->"></span>
Lines 269-443 Link Here
269
                        </span>
265
                        </span>
270
					</td>
266
					</td>
271
                      <!-- TMPL_ELSE -->
267
                      <!-- TMPL_ELSE -->
272
					  <td>
268
					  <!-- TMPL_UNLESS NAME="none_available" --><td>&nbsp;</td><!-- /TMPL_UNLESS -->
273
                      <input class="reserve_mode" name="reserve_mode" type="hidden" value="single"/>
269
                      <!-- /TMPL_IF -->
274
                      <input class="single_bib" name="single_bib" type="hidden" value="<!-- TMPL_VAR NAME="biblionumber" -->"/>
270
                    <!-- TMPL_IF NAME="holdable" --><td><!-- TMPL_ELSE --><td colspan="5"><!-- /TMPL_IF -->
275
                        <span class="confirmjs_nohold" title="<!-- TMPL_VAR NAME="biblionumber" -->"></span>
271
                      <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --><!-- TMPL_IF NAME="subtitle" --> <!-- TMPL_LOOP NAME="subtitle" --><!--TMPL VAR Name="subfield"--><!--/TMPL_LOOP--><!-- /TMPL_IF --></a>
276
                        <span class="confirm_nonjs">
272
                      <!-- TMPL_IF NAME="author" -->,  by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --> 
277
                          <input type="radio" class="confirmbox checkitem <!-- TMPL_VAR NAME="checkitem_bib" -->"
273
278
                                 name="<!-- TMPL_VAR NAME="checkitem_bib" -->" disabled="disabled"
274
                      <!-- TMPL_UNLESS NAME="holdable" -->
279
                                 id="<!-- TMPL_VAR NAME="checkitem_bib" -->"
275
280
                                 value="any" />
281
                        </span>
282
					</td><td>
283
                        <!-- TMPL_IF NAME="already_reserved" -->
276
                        <!-- TMPL_IF NAME="already_reserved" -->
284
                          <div class="bibmessage">You have already requested this title.</div>
277
                          <div class="bibmessage">You have already requested this title.</div>
285
                        <!-- /TMPL_IF -->
286
                        <!-- TMPL_UNLESS NAME="bib_available" -->
287
                          <div class="bibmessage">No available items.</div>
288
                        <!-- TMPL_ELSE -->
278
                        <!-- TMPL_ELSE -->
289
                          <div class="bibmessage">This title cannot be requested.</div>
279
                          <!-- TMPL_UNLESS NAME="bib_available" -->
280
                            <div class="bibmessage">No available items.</div>
281
                          <!-- TMPL_ELSE -->
282
                            <div class="bibmessage">This title cannot be requested.</div>
283
                          <!-- /TMPL_UNLESS -->
284
                        <!-- /TMPL_IF -->
285
286
290
                        <!-- /TMPL_UNLESS -->
287
                        <!-- /TMPL_UNLESS -->
288
291
                    </td>
289
                    </td>
292
                      <!-- /TMPL_IF -->
290
                    <!-- TMPL_IF NAME="holdable" --><!-- TMPL_UNLESS NAME="item-level_itypes" -->
293
                    <td>
291
                                          <td>
294
                      <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --><!-- TMPL_IF NAME="subtitle" --> <!-- TMPL_LOOP NAME="subtitle" --><!--TMPL VAR Name="subfield"--><!--/TMPL_LOOP--><!-- /TMPL_IF --></a>
292
                                            <!-- TMPL_IF NAME="imageurl" --><img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="" /><!-- /TMPL_IF -->
295
                      <!-- TMPL_IF NAME="author" -->,  by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF -->
293
                                <!-- TMPL_VAR NAME="description" -->
296
                    </td>
294
                                          </td>
297
                    <!-- TMPL_UNLESS NAME="item-level_itypes" -->
295
                                        <!-- /TMPL_UNLESS --><!-- /TMPL_IF -->
298
                      <td>
296
                    <!-- TMPL_IF NAME="holdable" --><!-- TMPL_IF NAME="showpriority" --><td><!-- TMPL_VAR name="rank" --> out of <!-- TMPL_VAR NAME="reservecount" --></td><!-- /TMPL_IF --><!-- /TMPL_IF -->
299
                        <!-- TMPL_UNLESS NAME="noItemTypeImages" -->
300
                        <!-- TMPL_IF NAME="imageurl" --><img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="" /><!-- /TMPL_IF -->
301
                        <!-- /TMPL_UNLESS -->
302
						<!-- TMPL_VAR NAME="description" -->
303
                      </td>
304
                    <!-- /TMPL_UNLESS -->
305
                    <!-- TMPL_IF NAME="showpriority" --><td><!-- TMPL_VAR name="rank" --> out of <!-- TMPL_VAR NAME="reservecount" --></td><!-- /TMPL_IF -->
306
		    <!-- TMPL_IF NAME="reserve_in_future" -->
297
		    <!-- TMPL_IF NAME="reserve_in_future" -->
307
		    <td>
298
		    <!-- TMPL_IF NAME="holdable" --><td>
308
			<input name="reserve_date_<!-- TMPL_VAR NAME="biblionumber" -->" id="reserve_date_<!-- TMPL_VAR NAME="biblionumber" -->" size="10">
299
              <input name="reserve_date_<!-- TMPL_VAR NAME="biblionumber" -->" id="reserve_date_<!-- TMPL_VAR NAME="biblionumber" -->" size="10">
309
		  <script language="JavaScript" type="text/javascript">
300
              <script language="JavaScript" type="text/javascript">
310
			//<![CDATA[
301
              //<![CDATA[
311
			$("#reserve_date_<!-- TMPL_VAR NAME="biblionumber" -->").attr( 'readonly', 'readonly' );
302
              $("#reserve_date_<!-- TMPL_VAR NAME="biblionumber" -->").attr( 'readonly', 'readonly' );
312
303
313
			var cal_img = document.createElement('img');
304
              var cal_img = document.createElement('img');
314
			cal_img.src = "<!-- TMPL_VAR NAME="themelang" -->/lib/calendar/cal.gif";
305
              cal_img.src = "<!-- TMPL_VAR NAME="themelang" -->/lib/calendar/cal.gif";
315
			cal_img.alt = "Show Calendar";
306
              cal_img.alt = "Show Calendar";
316
			cal_img.border = "0";
307
              cal_img.border = "0";
317
			cal_img.id = "CalendarReserveDate<!-- TMPL_VAR NAME="biblionumber" -->";
308
              cal_img.id = "CalendarReserveDate<!-- TMPL_VAR NAME="biblionumber" -->";
318
			cal_img.style.cursor = "pointer";
309
              cal_img.style.cursor = "pointer";
319
			document.getElementById("reserve_date_<!-- TMPL_VAR NAME="biblionumber" -->").parentNode.appendChild( cal_img );
310
              document.getElementById("reserve_date_<!-- TMPL_VAR NAME="biblionumber" -->").parentNode.appendChild( cal_img );
320
311
321
			function validate<!-- TMPL_VAR NAME="biblionumber" -->(date) {
312
              function validate<!-- TMPL_VAR NAME="biblionumber" -->(date) {
322
			    var today = new Date();
313
                  var today = new Date();
323
                if ( (date > today) ||
314
                        if ( (date > today) ||
324
                        ( date.getDate() == today.getDate() &&
315
                                ( date.getDate() == today.getDate() &&
325
                          date.getMonth() == today.getMonth() &&
316
                                  date.getMonth() == today.getMonth() &&
326
                          date.getFullYear() == today.getFullYear() ) ) {
317
                                  date.getFullYear() == today.getFullYear() ) ) {
327
                    return false;
318
                            return false;
328
                } else {
319
                        } else {
329
                    return true;
320
                            return true;
330
                }
321
                        }
331
			};
322
              };
332
			Calendar.setup(
323
              Calendar.setup(
333
			{
324
              {
334
				inputField : "reserve_date_<!-- TMPL_VAR NAME="biblionumber" -->",
325
                inputField : "reserve_date_<!-- TMPL_VAR NAME="biblionumber" -->",
335
				ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
326
                ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
336
				button : "CalendarReserveDate<!-- TMPL_VAR NAME="biblionumber" -->",
327
                button : "CalendarReserveDate<!-- TMPL_VAR NAME="biblionumber" -->",
337
				disableFunc : validate<!-- TMPL_VAR NAME="biblionumber" -->,
328
                disableFunc : validate<!-- TMPL_VAR NAME="biblionumber" -->,
338
				dateStatusFunc : validate<!-- TMPL_VAR NAME="biblionumber" -->,
329
                dateStatusFunc : validate<!-- TMPL_VAR NAME="biblionumber" -->,
339
			}
330
              }
340
			);
331
              );
341
			//]]>
332
              //]]>
342
			</script>
333
              </script>
343
		    </td>
334
                </td><!-- /TMPL_IF -->
344
335
345
		    <!-- /TMPL_IF -->
336
		    <!-- /TMPL_IF -->
346
	<td>
337
	<!-- TMPL_IF NAME="holdable" --><td>
347
	    <input name="expiration_date_<!-- TMPL_VAR NAME="biblionumber" -->" id="expiration_date_<!-- TMPL_VAR NAME="biblionumber" -->" size="10" readonly="readonly" />
338
        <input name="expiration_date_<!-- TMPL_VAR NAME="biblionumber" -->" id="expiration_date_<!-- TMPL_VAR NAME="biblionumber" -->" size="10" readonly="readonly" />
348
	    <img src="<!-- TMPL_VAR NAME="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="CalendarExpirationDate_<!-- TMPL_VAR NAME="biblionumber" -->" style="cursor: pointer;" />
339
        <img src="<!-- TMPL_VAR NAME="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="CalendarExpirationDate_<!-- TMPL_VAR NAME="biblionumber" -->" style="cursor: pointer;" />
349
	    <script language="JavaScript" type="text/javascript">
340
        <script language="JavaScript" type="text/javascript">
350
		//<![CDATA[
341
      //<![CDATA[
351
		function validate1(date) {
342
      function validate1(date) {
352
			var today = new Date();
343
        var today = new Date();
353
			if ( (date > today) ||
344
        if ( (date > today) ||
354
                    ( date.getDate() == today.getDate() &&
345
                      ( date.getDate() == today.getDate() &&
355
                      date.getMonth() == today.getMonth() &&
346
                        date.getMonth() == today.getMonth() &&
356
                      date.getFullYear() == today.getFullYear() ) ) {
347
                        date.getFullYear() == today.getFullYear() ) ) {
357
				return false;
348
          return false;
358
			} else {
349
        } else {
359
				return true;
350
          return true;
360
			}
351
        }
361
		};
352
      };
362
		Calendar.setup(
353
      Calendar.setup(
363
			{
354
        {
364
				inputField : "expiration_date_<!-- TMPL_VAR NAME="biblionumber" -->",
355
          inputField : "expiration_date_<!-- TMPL_VAR NAME="biblionumber" -->",
365
				ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
356
          ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
366
				button : "CalendarExpirationDate_<!-- TMPL_VAR NAME="biblionumber" -->",
357
          button : "CalendarExpirationDate_<!-- TMPL_VAR NAME="biblionumber" -->",
367
				disableFunc : validate1,
358
          disableFunc : validate1,
368
				dateStatusFunc : validate1,
359
          dateStatusFunc : validate1,
369
			}
360
        }
370
		);
361
      );
371
		//]]>
362
      //]]>
372
	    </script>
363
        </script>
373
		<p style="margin:.3em 2em;">
364
      <p style="margin:.3em 2em;">
374
		<a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('expiration_date_<!-- TMPL_VAR NAME="biblionumber" -->').value='';return false;">Clear Date</a></p>
365
      <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('expiration_date_<!-- TMPL_VAR NAME="biblionumber" -->').value='';return false;">Clear Date</a></p>
375
	</td>
366
    </td><!-- /TMPL_IF -->
376
367
377
                    <!-- TMPL_IF NAME="OPACItemHolds" -->
368
                    <!-- TMPL_IF NAME="holdable" --><!-- TMPL_IF NAME="OPACItemHolds" -->
378
                      <td class="place_on_type" style="display:none">
369
                                          <td class="place_on_type" style="display:none">
379
                        <table>
370
                                            <table>
380
                          <tr>
371
                                              <tr>
381
                            <td>
372
                                                <td>
382
                              <!-- TMPL_UNLESS NAME="holdable" -->
373
                                                  <!-- TMPL_UNLESS NAME="holdable" -->
383
                                <input type="radio" name="reqtype_<!-- TMPL_VAR NAME="biblionumber" -->"
374
                                                    <input type="radio" name="reqtype_<!-- TMPL_VAR NAME="biblionumber" -->"
384
                                       id="reqany_<!-- TMPL_VAR NAME="biblionumber" -->"
375
                                                           id="reqany_<!-- TMPL_VAR NAME="biblionumber" -->"
385
                                       class="selectany"
376
                                                           class="selectany"
386
                                       value="Any"
377
                                                           value="Any"
387
                                       disabled="disabled"
378
                                                           disabled="disabled"
388
                                />
379
                                                    />
389
                              <!-- TMPL_ELSE -->
380
                                                  <!-- TMPL_ELSE -->
390
                                <input type="radio" name="reqtype_<!-- TMPL_VAR NAME="biblionumber" -->"
381
                                                    <input type="radio" name="reqtype_<!-- TMPL_VAR NAME="biblionumber" -->"
391
                                       id="reqany_<!-- TMPL_VAR NAME="biblionumber" -->"
382
                                                           id="reqany_<!-- TMPL_VAR NAME="biblionumber" -->"
392
                                       class="selectany"
383
                                                           class="selectany"
393
                                       value="Any"
384
                                                           value="Any"
394
                                       checked="checked"
385
                                                           checked="checked"
395
                                />
386
                                                    />
396
                              <!-- /TMPL_UNLESS -->
387
                                                  <!-- /TMPL_UNLESS -->
397
                              <label for="reqany_<!-- TMPL_VAR NAME="biblionumber" -->">Next available copy</label>
388
                                                  <label for="reqany_<!-- TMPL_VAR NAME="biblionumber" -->">Next available copy</label>
398
                            </td>
389
                                                </td>
399
                          </tr>
390
                                              </tr>
400
                          <tr>
391
                                              <tr>
401
                            <td>
392
                                                <td>
402
                              <!-- TMPL_UNLESS NAME="holdable" -->
393
                                                  <!-- TMPL_UNLESS NAME="holdable" -->
403
                                <input type="radio" name="reqtype_<!-- TMPL_VAR NAME="biblionumber" -->"
394
                                                    <input type="radio" name="reqtype_<!-- TMPL_VAR NAME="biblionumber" -->"
404
                                       id="reqspecific_<!-- TMPL_VAR NAME="biblionumber" -->"
395
                                                           id="reqspecific_<!-- TMPL_VAR NAME="biblionumber" -->"
405
                                       class="selectspecific"
396
                                                           class="selectspecific"
406
                                       disabled="disabled"
397
                                                           disabled="disabled"
407
                                       value="Specific"
398
                                                           value="Specific"
408
                                />
399
                                                    />
409
                              <!-- TMPL_ELSE -->
400
                                                  <!-- TMPL_ELSE -->
410
                                <input type="radio" name="reqtype_<!-- TMPL_VAR NAME="biblionumber" -->"
401
                                                    <input type="radio" name="reqtype_<!-- TMPL_VAR NAME="biblionumber" -->"
411
                                       id="reqspecific_<!-- TMPL_VAR NAME="biblionumber" -->"
402
                                                           id="reqspecific_<!-- TMPL_VAR NAME="biblionumber" -->"
412
                                       class="selectspecific"
403
                                                           class="selectspecific"
413
                                       value="Specific"
404
                                                           value="Specific"
414
                                />
405
                                                    />
415
                              <!-- /TMPL_UNLESS -->
406
                                                  <!-- /TMPL_UNLESS -->
416
                              <label for="reqspecific_<!-- TMPL_VAR NAME="biblionumber"-->">A specific copy</label>
407
                                                  <label for="reqspecific_<!-- TMPL_VAR NAME="biblionumber"-->">A specific copy</label>
417
                            </td>
408
                                                </td>
418
                          </tr>
409
                                              </tr>
419
                        </table>
410
                                            </table>
420
                      </td>
411
                                          </td>
421
                    <!-- /TMPL_IF -->
412
                                        <!-- /TMPL_IF --><!-- /TMPL_IF -->
422
413
423
                    <!-- TMPL_UNLESS NAME="singleBranchMode" -->
414
                    <!-- TMPL_UNLESS NAME="singleBranchMode" -->
424
                      <td>
415
                      <!-- TMPL_IF NAME="holdable" --><td>
425
                        <select name="branch" id="branch_<!-- TMPL_VAR NAME="biblionumber" -->"
416
                                              <select name="branch" id="branch_<!-- TMPL_VAR NAME="biblionumber" -->"
426
                          <!-- TMPL_UNLESS NAME="holdable" -->disabled="disabled"<!-- /TMPL_UNLESS --> >
417
                                                <!-- TMPL_UNLESS NAME="holdable" -->disabled="disabled"<!-- /TMPL_UNLESS --> >
427
                          <!-- TMPL_LOOP NAME="branchChoicesLoop" -->
418
                                                <!-- TMPL_LOOP NAME="branchChoicesLoop" -->
428
                            <!-- TMPL_IF name="selected" -->
419
                                                  <!-- TMPL_IF name="selected" -->
429
                              <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
420
                                                    <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
430
                            <!-- TMPL_ELSE -->
421
                                                  <!-- TMPL_ELSE -->
431
                              <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
422
                                                    <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
432
                            <!-- /TMPL_IF -->
423
                                                  <!-- /TMPL_IF -->
433
                          <!-- /TMPL_LOOP -->
424
                                                <!-- /TMPL_LOOP -->
434
                        </select>
425
                                              </select>
435
                      </td>
426
                                            </td><!-- /TMPL_IF -->
436
                    <!-- /TMPL_UNLESS -->
427
                    <!-- /TMPL_UNLESS -->
437
                  </tr>
428
                  </tr>
438
429
439
                  <!-- TMPL_IF NAME="OPACItemHolds" -->
430
                  <!-- TMPL_IF NAME="OPACItemHolds" -->
440
                  <!-- TMPL_IF NAME="bib_available" -->
431
                  <!-- TMPL_IF NAME="holdable" -->
441
                    <tr class="copiesrow" id="copiesrow_<!-- TMPL_VAR NAME="biblionumber"-->">
432
                    <tr class="copiesrow" id="copiesrow_<!-- TMPL_VAR NAME="biblionumber"-->">
442
                      <td colspan="1">
433
                      <td colspan="1">
443
                      </td>
434
                      </td>
Lines 521-538 Link Here
521
                  <!-- /TMPL_IF --><!-- OPACItemHolds -->
512
                  <!-- /TMPL_IF --><!-- OPACItemHolds -->
522
                <!-- /TMPL_LOOP -->
513
                <!-- /TMPL_LOOP -->
523
              </table><!-- bibitemloop -->
514
              </table><!-- bibitemloop -->
515
              <!-- /TMPL_UNLESS --> <!-- if message -->
524
            </div><!-- bigloop -->
516
            </div><!-- bigloop -->
525
517
526
            <!-- TMPL_IF NAME="none_available" -->
518
            <!-- TMPL_UNLESS NAME="message" -->
527
            <input type="submit" disabled="disabled" value="Place Hold" />
519
            <!-- TMPL_UNLESS NAME="none_available" -->
528
            <!-- TMPL_ELSE -->
529
            <input type="submit" value="Place Hold" class="placehold" />
520
            <input type="submit" value="Place Hold" class="placehold" />
530
            <!-- /TMPL_IF -->
521
            <!-- /TMPL_UNLESS -->
522
            <!-- /TMPL_UNLESS -->
531
523
532
            </form>
524
            </form>
533
525
534
          <!-- /TMPL_UNLESS --><!-- message -->
535
536
        </div><!-- holds -->
526
        </div><!-- holds -->
537
      </div><!-- yui-g -->
527
      </div><!-- yui-g -->
538
    </div><!-- bd    -->
528
    </div><!-- bd    -->
(-)a/opac/opac-reserve.pl (-5 / +6 lines)
Lines 289-294 my $notforloan_label_of = get_notforloan_label_of(); Link Here
289
my $biblioLoop = [];
289
my $biblioLoop = [];
290
my $numBibsAvailable = 0;
290
my $numBibsAvailable = 0;
291
my $itemdata_enumchron = 0;
291
my $itemdata_enumchron = 0;
292
my $anyholdable;
292
my $itemLevelTypes = C4::Context->preference('item-level_itypes');
293
my $itemLevelTypes = C4::Context->preference('item-level_itypes');
293
$template->param('item-level_itypes' => $itemLevelTypes);
294
$template->param('item-level_itypes' => $itemLevelTypes);
294
295
Lines 336-343 foreach my $biblioNum (@biblionumbers) { Link Here
336
        }
337
        }
337
    }
338
    }
338
339
339
    $biblioLoopIter{itemTypeDescription} = $itemTypes->{$biblioData->{itemtype}}{description};
340
341
    $biblioLoopIter{itemLoop} = [];
340
    $biblioLoopIter{itemLoop} = [];
342
    my $numCopiesAvailable = 0;
341
    my $numCopiesAvailable = 0;
343
    foreach my $itemInfo (@{$biblioData->{itemInfos}}) {
342
    foreach my $itemInfo (@{$biblioData->{itemInfos}}) {
Lines 455-473 foreach my $biblioNum (@biblionumbers) { Link Here
455
        $numBibsAvailable++;
454
        $numBibsAvailable++;
456
        $biblioLoopIter{bib_available} = 1;
455
        $biblioLoopIter{bib_available} = 1;
457
        $biblioLoopIter{holdable} = 1;
456
        $biblioLoopIter{holdable} = 1;
457
        $anyholdable = 1;
458
    }
458
    }
459
    if ($biblioLoopIter{already_reserved}) {
459
    if ($biblioLoopIter{already_reserved}) {
460
        $biblioLoopIter{holdable} = undef;
460
        $biblioLoopIter{holdable} = undef;
461
        $anyholdable = undef;
461
    }
462
    }
462
    if(not CanBookBeReserved($borrowernumber,$biblioNum)){
463
    if(not CanBookBeReserved($borrowernumber,$biblioNum)){
463
        $biblioLoopIter{holdable} = undef;
464
        $biblioLoopIter{holdable} = undef;
465
        $anyholdable = undef;
464
    }
466
    }
465
467
466
    push @$biblioLoop, \%biblioLoopIter;
468
    push @$biblioLoop, \%biblioLoopIter;
467
}
469
}
468
470
469
if ( $numBibsAvailable == 0 ) {
471
if ( $numBibsAvailable == 0 || !$anyholdable) {
470
    $template->param( none_available => 1, message => 1 );
472
    $template->param( none_available => 1 );
471
}
473
}
472
474
473
my $itemTableColspan = 5;
475
my $itemTableColspan = 5;
474
- 

Return to bug 4950