These were also missing from the Holds Pull grid.
This patch also corrects the determination of whether a hold
was staff-placed or not.
Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
{{item.patron_barcode}}
</a>
</eg-grid-field>
+ <eg-grid-field label="[% l('Patron alias') %]" path="patron_alias" hidden></eg-grid-field>
+ <eg-grid-field label="[% l('Patron First') %]" path="patron_first" hidden></eg-grid-field>
+ <eg-grid-field label="[% l('Patron Last') %]" path="patron_last" hidden></eg-grid-field>
<eg-grid-field name="pickup_lib_name" path="pickup_lib.name"
hidden label="[% l('Pickup Library') %]"></eg-grid-field>
<eg-grid-field name="pickup_lib_shortname" path="pickup_lib.shortname"
// check if this is a staff-created hold
// i.e requestor's profile != 2 (patron)
- item['_is_staff_hold'] = item.hold.requestor().profile != 2;
+ item['_is_staff_hold'] = item.hold.requestor().id() != item.hold.usr().id();
});
}