[% INCLUDE 'staff/circ/share/circ_strings.tt2' %]
<script src="[% ctx.media_prefix %]/js/ui/default/staff/circ/services/holds.js"></script>
[% INCLUDE 'staff/circ/share/hold_strings.tt2' %]
+<script src="[% ctx.media_prefix %]/js/ui/default/staff/cat/services/record.js"></script>
<script src="[% ctx.media_prefix %]/js/ui/default/staff/circ/holds/app.js"></script>
<link rel="stylesheet" href="[% ctx.base_path %]/staff/css/circ.css" />
<script>
<li>
<a href="./circ/holds/shelf" target="_self">
<span class="glyphicon glyphicon-tasks"></span>
- <span>[% l('View Holds Shelf') %]</span>
+ <span>[% l('Holds Shelf') %]</span>
</a>
</li>
<li class="divider"></li>
// udpate the in-grid hold with the clear-shelf cached response info.
function handle_clear_cache_resp(resp) {
- console.debug('clear shelf said: ' + js2JSON(resp));
if (!angular.isArray(resp)) resp = [resp];
angular.forEach(resp, function(info) {
if (info.action) {
);
}
-
refresh_page();
}]);
}).result.then(function(args) {
var note = new egCore.idl.ahrn();
note.hold($scope.hold.id());
- // use t/f instead of bools here so template is happy
- note.staff('t');
- note.slip(args.slip ? 't' : 'f');
- note.pub(args.pub ? 't' : 'f');
+ note.staff(true);
+ note.slip(args.slip);
+ note.pub(args.pub);
note.title(args.title);
note.body(args.body);
- return egCore.pcrud.create(note).then(function() {
- $scope.hold.notes().push(note);
+ return egCore.pcrud.create(note).then(function(n) {
+ $scope.hold.notes().push(n);
});
});
}
note.note(args.note);
note.notify_staff(egCore.auth.user().id());
note.notify_time('now');
- return egCore.pcrud.create(note).then(function() {
- $scope.hold.notifications().push(note);
+ return egCore.pcrud.create(note).then(function(n) {
+ n.notify_staff(egCore.auth.user());
+ $scope.hold.notifications().push(n);
});
});
}