Skip to content

Commit

Permalink
documents: group holdings by libraries
Browse files Browse the repository at this point in the history
* closes rero/rero-ils#1399

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed Dec 14, 2020
1 parent 14eca4c commit e37ff37
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,16 @@ export class HoldingsComponent implements OnInit {
ngOnInit() {
const orgPid = this._userService.user.currentOrganisation;
const query = `document.pid:${this.documentPid} AND organisation.pid:${orgPid}`;
const holdingRecordsRef = this._recordService.getRecords('holdings', query, 1, RecordService.MAX_REST_RESULTS_SIZE);
const holdingRecordsRef = this._recordService.getRecords(
'holdings',
query,
1,
RecordService.MAX_REST_RESULTS_SIZE,
undefined,
undefined,
undefined,
'library_location'
);
const permissionsRef = this._recordPermissionService.getPermission('holdings');
forkJoin([holdingRecordsRef, permissionsRef]).subscribe(
(result: [Record, any]) => {
Expand Down

0 comments on commit e37ff37

Please sign in to comment.