border-collapse: collapse;
}
+.hold_notes {
+ text-transform: none;
+ font-weight: normal;
+}
+
+.hold_note_title { font-weight: bold; }
+
#acct_checked_main_header td, #acct_holds_main_header td, #acct_checked_hist_header td, #acct_list_header td, #acct_list_header_anon td, #temp_list_holds td {
background: [% css_colors.accent_lighter2 %];
padding: 10px;
<th>[% l('Cancel if not filled by') %]</th>
<th>[% l('Active') %]</th>
<th>[% l('Status') %]</th>
+ <th>[% l('Notes') %]</th>
</tr>
</thead>
<tbody id="holds_temp_parent">
[% PROCESS get_hold_status hold=hold; %]
</div>
</td>
+ <td class="hold_notes">
+ [%- 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; %]
+ </td>
<td class="opac-auto-161">
<a href="[% mkurl(ctx.opac_root _ '/myopac/holds/edit', {id => ahr.id}) %]">Edit</a>
</td>
frozen,
thawdate
);
+
+ -- Create hold notes for staff-placed holds: 1 public, 1 private
+ IF requestor != patron_id THEN
+ INSERT INTO action.hold_request_note (hold, title, body, pub, staff)
+ VALUES (
+ currval('action.hold_request_id_seq'),
+ 'Public: Title of hold# ' || currval('action.hold_request_id_seq'),
+ 'Public: Hold note body for ' || currval('action.hold_request_id_seq'),
+ TRUE, TRUE
+ ), (
+ currval('action.hold_request_id_seq'),
+ 'Private: title of hold# ' || currval('action.hold_request_id_seq'),
+ 'Private: Hold note body for ' || currval('action.hold_request_id_seq'),
+ FALSE, TRUE
+ );
+ END IF;
END;
$$ LANGUAGE PLPGSQL;