From: Bill Erickson <berickxx@gmail.com> Date: Fri, 15 Mar 2019 16:13:44 +0000 (-0400) Subject: LP1820304 Ang catalog copy/volume hold links X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d18bf8c5e2892fb642b0800ea7c321f5dc490174;p=evergreen%2Fjoelewis.git LP1820304 Ang catalog copy/volume hold links Add support to the Angular staff catalog record detail page copy table for placing holds on copies and call numbers for holdable copies. Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Dan Wells <dbw2@calvin.edu> --- diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html index dd5718e5b7..428fe4475b 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html @@ -16,7 +16,22 @@ </ng-template> <ng-template #holdableTemplate let-copy="row" let-context="userContext"> - <span *ngIf="context.holdable(copy)" i18n>Yes</span> + <span *ngIf="context.holdable(copy)" i18n> + <div class="border-bottom"> + <a routerLink="/staff/catalog/hold/C" + [queryParams]="{target: copy.id}" + queryParamsHandling="merge" i18n> + Copy Hold + </a> + </div> + <div> + <a routerLink="/staff/catalog/hold/V" + [queryParams]="{target: copy.call_number}" + queryParamsHandling="merge" i18n> + Volume Hold + </a> + </div> + </span> <span *ngIf="!context.holdable(copy)" i18n>No</span> </ng-template>