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',
15 controller: ['$scope', '$uibModalInstance',
16 function($scope, $uibModalInstance) {
17 $scope.mfhd_lib = orgId ?
18 egCore.org.get(orgId) :
20 $scope.ok = function() {
23 'open-ils.cat.serial.record.xml.create',
29 $uibModalInstance.close()
32 $scope.cancel = function() {
33 $uibModalInstance.dismiss();