add %patron_display_name% macro to hold shelf collab/phasefx/hold_patron_display_name
authorJason Etheridge <jason@esilibrary.com>
Thu, 27 Sep 2012 14:35:06 +0000 (10:35 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 27 Sep 2012 14:35:06 +0000 (10:35 -0400)
commita1576fc47fd24a8a7f7d6f1400bf22270ed7dff4
treeb6ab3b1b227c972e83fe3dbd4b53baa19f02f2a3
parent4a2a2d03991ec30a2a61d71dca690b90ac84a30a
add %patron_display_name% macro to hold shelf

which shows either the patron alias or last name + first name + second name.

This is so we can, for example, mimic the print output of the very buried
Admin -> For Developers -> Local Administration -> Expired Holds Shelf Printable
Listing interface.

One could do this by setting their hold_slip template in the Receipt Template
Editor to look like this:

Header:
%SHORTNAME% %TODAY_TRIM%<br/>
<hr/>
<style type="text/css">
    body { font-size: 14pt; }
    td {
        padding-right: 1em;
        padding-bottom: 1em;
        border-bottom: 1px #999 dashed;
    }
    th {
        text-align: left; font-weight: bold;
        border-bottom: 1px #000 solid;
        border-right: 1px #000 solid;
        padding: 0.5em;
    }
</style>
<table>
<tr>
<th>Patron</th>
<th>Action</th>
<th>Type</th>
<th>Title</th>
<th>Author</th>
<th>Shelving Location</th>
<th>Call Number</th>
<th>Barcode</th>
</tr>

Lineitem:
<tr>
<td>%patron_display_name%</td>
<td>%post_clear_shelf_action%</td>
<td>%hold_type%</td>
<td>%title%</td>
<td>%author%</td>
<td>%current_copy_location%</td>
<td>%callnumber%</td>
<td>%current_copy%</td>
</tr>

Footer:
</table>

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
Open-ILS/xul/staff_client/server/circ/util.js
Open-ILS/xul/staff_client/server/locale/en-US/circ.properties
Open-ILS/xul/staff_client/server/patron/hold_details.js
Open-ILS/xul/staff_client/server/patron/holds.js