Skip to content

Commit

Permalink
enable import menu for authority
Browse files Browse the repository at this point in the history
  • Loading branch information
Shay Hadar authored and Shay Hadar committed Jan 9, 2022
1 parent be91a61 commit eed99b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cloudapp/src/app/catalog/main/main.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export class CatalogMainComponent implements AfterViewInit {
public ACTIONS_MENU_LIST = new Map([
[SearchType.Monographs, ['Catalog.Results.Actions.View', 'Catalog.Results.Actions.Import']],
[SearchType.Serials, ['Catalog.Results.Actions.View', 'Catalog.Results.Actions.Import']],
[SearchType.Names, ['Catalog.Results.Actions.View' /* , 'Catalog.Results.Actions.Import' */]],
[SearchType.UniformTitles, ['Catalog.Results.Actions.View'/* , 'Catalog.Results.Actions.Import' */]]
[SearchType.Names, ['Catalog.Results.Actions.View', 'Catalog.Results.Actions.Import']],
[SearchType.UniformTitles, ['Catalog.Results.Actions.View', 'Catalog.Results.Actions.Import']]
]);


Expand Down
4 changes: 2 additions & 2 deletions cloudapp/src/app/service/alma.api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export class AlmaApiService {
// extract import profiles
let contributionConfigurationParams = nacsisIntegrationProfile.parameter.filter(param => param.action.value == "CENTRAL_CATALOG_CONTRIBUTION_CONFIGURATION");
integrationProfile.repositoryImportProfile = contributionConfigurationParams.filter(param => param.name.value == "repositoryImportProfile")[0].value;
// integrationProfile.authorityImportProfileNames = ContributionConfigurationParams.filter(param => param.name.value == "authNames")[0].value;
// integrationProfile.authorityImportProfileUniformTitles = ContributionConfigurationParams.filter(param => param.name.value == "authUniformTitle")[0].value;
integrationProfile.authorityImportProfileNames = contributionConfigurationParams.filter(param => param.name.value == "authNames")[0].value;
integrationProfile.authorityImportProfileUniformTitles = contributionConfigurationParams.filter(param => param.name.value == "authUniformTitle")[0].value;
} catch (e) {
console.log(e);
}
Expand Down

0 comments on commit eed99b3

Please sign in to comment.