+<div class="row">
+ <div class="col-md-4">
+ <div class="form-group">
+ <label>[% l('View pull list for: ') %] </label>
+ <eg-org-selector id="org_unit" selected="org_unit"
+ onchange="update_org_unit" disable-test="cant_have_volumes">
+ </eg-org-selector>
+ </div>
+ </div>
+</div>
<eg-grid
id-field="id"
idl-class="ahopl"
egCore.strings.setPageTitle(egCore.strings['PULL_LIST_TITLE']);
+ function current_query() {
+ var org_id = $scope.org_unit ? $scope.org_unit.id() :
+ egCore.auth.user().ws_ou();
+ return {'copy_circ_lib_id' : org_id};
+ }
+
$scope.gridControls = {
- setQuery : function() {
- return {'copy_circ_lib_id' : egCore.auth.user().ws_ou()}
- },
+ setQuery : current_query,
setSort : function() {
return ['copy_location_order_position','call_number_sort_key']
},
).finally(egProgressDialog.close);
}
+ $scope.update_org_unit = function (org) {
+ $scope.org_unit = org;
+ $scope.gridControls.setQuery(current_query());
+ $scope.gridControls.refresh();
+ };
+
+ $scope.cant_have_volumes =
+ function (id) { return !egCore.org.CanHaveVolumes(id); };
+
}])
--- /dev/null
+Library selector on the holds pull list
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+The holds pull list screen now includes a library/org unit selector.
+This allows staff to view the pull list of any library where they have
+VIEW_HOLDS permissions, rather than having to log in to a workstation
+at that library.