Skip to content

Commit

Permalink
issues: late issues filtered by current library
Browse files Browse the repository at this point in the history
Closes rero/rero-ils#2284.

Co-authored-by: Renaud Michotte <[email protected]>
  • Loading branch information
zannkukai authored and iGor milhit committed Sep 9, 2021
1 parent ff6f207 commit f1c6b62
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions projects/admin/src/app/menu/service/menu-user-services.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ export class MenuUserServicesService extends MenuBase {
/** Inventory menu */
private _inventoryMenu: MenuItemInterface;

/** late issue menu */
private _lateIssuesMenu: MenuItemInterface;

/**
* User services menu
* @return MenuItemInterface
Expand Down Expand Up @@ -215,11 +218,12 @@ export class MenuUserServicesService extends MenuBase {
this._translatedName(budgetsMenu, 'Budgets');

// ----- LATE ISSUES
const lateIssuesMenu = acquisitionMenu.addChild('Late issues')
.setRouterLink(['/', 'records', 'issues'])
.setAttribute('id', 'late-issues-menu')
.setExtra('iconClass', 'fa fa-envelope-open-o');
this._translatedName(lateIssuesMenu, 'Late issues');
this._lateIssuesMenu = acquisitionMenu.addChild('Late issues')
.setRouterLink(['/', 'records', 'issues'])
.setQueryParam('library', this._userService.user.currentLibrary)
.setAttribute('id', 'late-issues-menu')
.setExtra('iconClass', 'fa fa-envelope-open-o');
this._translatedName(this._lateIssuesMenu, 'Late issues');
}

/**
Expand Down Expand Up @@ -316,6 +320,8 @@ export class MenuUserServicesService extends MenuBase {
this._collectionsMenu.setQueryParam('library', user.currentLibrary);
// CATALOG: DOCUMENTS
this._documentsMenu.setQueryParam('organisation', user.currentOrganisation);
// ACQUISITIONS: LATE ISSUES
this._lateIssuesMenu.setQueryParam('library', user.currentLibrary);
// REPORT: INVENTORY LIST
this._inventoryMenu.setQueryParam('library', user.currentLibrary);
// ADMIN: MY ORGANISATION
Expand Down

0 comments on commit f1c6b62

Please sign in to comment.