From: Jason Etheridge Date: Mon, 13 Feb 2017 16:49:58 +0000 (-0500) Subject: webstaff: Book Items Now from Item Status X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7522169af4647c5bc4d304f1754948ed1219f643;p=working%2FEvergreen.git webstaff: Book Items Now from Item Status We can't do what we did with Make Items Bookable, consolidating the items into one call and invoking a single interface; we get "Can't book multiple resource types at once". For now, we disable the 'Book Item Now' menu entry if multiple items are selected. Signed-off-by: Jason Etheridge Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 index f152ac887d..9755360308 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -12,7 +12,8 @@ + disabled="need_one_selected" + label="[% l('Book Item Now') %]"> 0 || combined_brsrc.length > 0) { + $uibModal.open({ + template: '', + animation: true, + size: 'md', + controller: + ['$scope','$location','egCore','$uibModalInstance', + function($scope , $location , egCore , $uibModalInstance) { + + $scope.funcs = { + ses : egCore.auth.token(), + bresv_interface_opts : { + booking_results : { + brt : combined_brt + ,brsrc : combined_brsrc + } + } + } + + var booking_path = '/eg/booking/reservation'; + + $scope.booking_admin_url = + $location.absUrl().replace(/\/eg\/staff.*/, booking_path); + + }] + }); + } + }); + } + $scope.requestItems = function() { var copy_list = gatherSelectedHoldingsIds(); if (copy_list.length == 0) return;