2 * MFHD tools and directives.
4 angular.module('egMfhdMod', ['egCoreMod', 'ui.bootstrap'])
6 .factory('egMfhdCreateDialog',
8 function($uibModal , egCore) {
11 service.open = function(bibId, orgId) {
12 return $uibModal.open({
13 templateUrl: './share/t_mfhd_create_dialog',
14 controller: ['$scope', '$uibModalInstance',
15 function($scope, $uibModalInstance) {
16 $scope.mfhd_lib = orgId ?
17 egCore.org.get(orgId) :
19 $scope.ok = function() {
22 'open-ils.cat.serial.record.xml.create',
28 $uibModalInstance.close()
31 $scope.cancel = function() {
32 $uibModalInstance.dismiss();