<h3 class="sr-only">[% l('My Holds') %]</h3>
<div id='myopac_holds_div'>
- <!--
- <div id="acct_holds_tabs">
+ <div id="acct_holds_tabs">
<div class="align selected">
<a href='#'>[% l("Items on Hold") %]</a>
</div>
<a href='[% mkurl('hold_history', {}, ['limit','offset','available','sort','sort_type']) %]'>[% l("Holds History") %]</a>
</div>
</div>
- -->
<div class="header_middle">
<span id="acct_holds_header" style="float:left;">
</span>
</div>
- <p style="font-style:italic;">If you require assistance placing a hold or have a question about a hold that you have placed,
- please <a href="http://www.georgialibraries.org/lib/directories/pineslibdir.html" target="_blank">contact your local library.</a></p>
<div class="clear-both"></div>
<div id='holds_main'>
<p>If you require assistance placing a hold or have a question about a hold that you have placed, please contact your
<option value='cancel'>[% l("Cancel selected holds") %]</option>
</select>
</td>
- <td style="padding-left:6px;padding-right:30px;">
+ <td style="padding-left:9px;">
<input type="submit" value="[% l('Go') %]"
title="[% l('Go') %]" class="opac-button" />
</td>
<!-- Not using this link right now
<td style="padding-left:5px;">
- <!-- <a href="#"><img
+ <a href="#"><img
alt="[% l('Holds Help') %]"
title="[% l('Actions for selected holds') %]"
src="[% ctx.media_prefix %]/images/question-mark.png[% ctx.cache_key %]" /></a>
- -->
</td>
-->
<td style="padding-left:5px;" class='error'>
</td>
<td align="right">
[% IF CGI.param("available") -%]
- <a href="[% mkurl('holds', {}, ['limit','offset','available']) %]">[% l('Show All Holds') %]</a> |
- <strong>[% l("Showing Holds That Are Ready to Pick Up") %]</strong>
+ <a href="[% mkurl('holds', {}, ['limit','offset','available']) %]">[% l('Show all holds') %]</a> |
+ <strong>[% l("Holds that are ready to pick up") %]</strong>
[% ELSE -%]
- <strong>[% l("Show all holds") %]</strong> |
+ <strong>[% l("All holds") %]</strong> |
<a href="[% mkurl('holds',{available => 1},['limit','offset']) %]">[% l("Show holds that are ready to pick up") %]</a>
[% END -%]
</td>
class="table_no_border_space">
<thead id='acct_holds_main_header'>
<tr>
- <th>
+ <th align="center">
<input type="checkbox" title="[% l('Select All Holds') %]"
onclick="var inputs=document.getElementsByTagName('input'); for (i = 0; i < inputs.length; i++) { if (inputs[i].name == 'hold_id' && !inputs[i].disabled) inputs[i].checked = this.checked;}"/>
</th>
<th>[% l('Cancel if not filled by') %]</th>
<th>[% l('Active?') %]</th>
<th>[% l('Status') %]</th>
- <th>[% l('Notes') %]</th>
<th>[% l('Edit') %]</th>
</tr>
</thead>
ahr = hold.hold.hold %]
<tr name="acct_holds_temp"
class="acct_holds_temp[% ahr.frozen == 't' ? ' inactive-hold' : '' %]">
- <td valign="top"><div>
+ <td align="center" style="text-align:center;">
<input type="checkbox" name="hold_id" value="[% ahr.id %]"
-
[% html_text_attr('title', l('Select hold [_1]', attrs.title)) %]/>
- </div>
- </td>
- <td valign="top">
- <div>
- <a href="[% mkurl(ctx.opac_root _ '/results',
- {qtype => 'author', query => hold.ATTRS.author.replace('[,\.:;]', '')},
- 1
- ) %]">[% hold.ATTRS.author | html %]</a>
- </div>
</td>
- <td style="text-align:center;">
- <div class="format_icon">
- [%
- formats = attrs.all_formats;
- IF ahr.hold_type == 'M';
- # only show selected formats for metarecords
- formats = [];
- FOR ccvm IN hold.metarecord_selected_filters.icons;
- NEXT IF ccvm.opac_visible == 'f';
- format = {};
- format.label = ccvm.search_label || ccvm.value;
- format.icon = PROCESS get_ccvm_icon ccvm=ccvm;
- formats.push(format);
- END;
- END;
- FOR format IN formats
- %]
- <img title="[% format.label | html %]"
- alt="[% format.label | html %]" src="[% format.icon %]" />
- [% END %]<br/>
- <!-- MOVED NOTES HERE -->
- [%- FOREACH pubnote IN ahr.notes;
- IF pubnote.pub == 't';
- %]
- <div class="hold_note">
- <span class="hold_note_title">[% pubnote.title | html %]</span>
- <br />
- <span class="hold_note_body">[% pubnote.body | html %]</span>
- </div>
- [%- END; END; %]
- </div>
+ <td>
+ <div>
+ [% title = hold.ATTRS.title;
+ IF ahr.hold_type == 'P';
+ title = l('[_1] ([_2])', title, hold.hold.part.label);
+ END; %]
+
+ <a href="[% mkurl(ctx.opac_root _ '/record/' _
+ hold.hold.bre_id, {}, 1) %]"
+ name="[% l('Catalog record') %]"><span[%- deemphasize_class -%]>
+ [%- title.substr(0,hold.ATTRS.nonfiling_characters) | html %]</span>
+ [%- title.substr(hold.ATTRS.nonfiling_characters) | html %]</a><br/>
+ <!-- MOVED PUBNOTES HERE INSTEAD OF IN THEIR OWN COLUMN -->
+ [%- FOREACH pubnote IN ahr.notes;
+ IF pubnote.pub == 't';
+ %]
+ <div class="hold_note">
+ <span class="hold_note_title">[% pubnote.title | html %]</span>
+ <br />
+ <span class="hold_note_body">[% pubnote.body | html %]</span>
+ </div>
+ [%- END; END; %]
</div>
</td>
- <td valign="top">
+ <td>
<div>
<a href="[% mkurl(ctx.opac_root _ '/results',
{qtype => 'author', query => hold.ATTRS.author.replace('[,\.:;]', '')},
) %]">[% hold.ATTRS.author | html %]</a>
</div>
</td>
- <td valign="top">
- <div name="acct_holds_status">
- [% PROCESS get_hold_status hold=hold; %]
- </div>
- </td>
- <td valign="top" style="text-align:center;">
- <div>
- [% l(ahr.frozen == 'f' ? 'Yes' : 'No') %]
- </div>
- </td>
- <!-- Moved format underneath title
- <td>
+ <td style="text-align:center;">
<div class="format_icon">
[%
formats = hold.ATTRS.all_formats;
FOR format IN formats
%]
<img title="[% format.label | html %]"
- alt="[% format.label | html %]" src="[% format.icon %][% ctx.cache_key %]" />
+ alt="[% format.label | html %]" src="[% format.icon %]" />
[% END %]
</div>
</td>
- -->
- <td valign="top">
- <div style="text-align:center;">
+ <td>
+ [% ctx.get_aou(ahr.pickup_lib).name | html %]
+ </td>
+ <td>
[% IF ahr.frozen == 't' AND ahr.thaw_date;
date.format(ctx.parse_datetime(ahr.thaw_date), DATE_FORMAT);
END %]
- </div>
</td>
- <td valign="top">
- <div style="text-align:center;">
+ <td>
[% IF ahr.expire_time;
date.format(ctx.parse_datetime(ahr.expire_time), DATE_FORMAT);
END %]
- </div>
</td>
- <td valign="top">
- <div>
- [% ctx.get_aou(ahr.pickup_lib).name | html %]
- </div>
+ <td>
+ [% l(ahr.frozen == 'f' ? 'Active' : 'Suspended') %]
</td>
- <!-- Moved notes under title
- <td class="hold_notes" valign="top">
- [%- FOREACH pubnote IN ahr.notes;
- IF pubnote.pub == 't';
- %]
- <div class="hold_note">
- <span class="hold_note_title">[% pubnote.title | html %]</span>
- <br />
- <span class="hold_note_body">[% pubnote.body | html %]</span>
+ <td>
+ <div name="acct_holds_status">
+ [% PROCESS get_hold_status hold=hold; %]
</div>
- [%- END; END; %]
</td>
- -->
- <td class="opac-auto-161" valign="top">
- <div>
+ <td class="opac-auto-161">
<a href="[% mkurl(ctx.opac_root _ '/myopac/holds/edit', {id => ahr.id}) %]"
[% html_text_attr('title', l('Edit hold for item [_1]', attrs.title)) %]>
[% l('Edit') %]
</a>
- </div>
</td>
</tr>
[% END %]