LP#1929749: add import queue and requests links to LI table
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 16 May 2022 22:46:44 +0000 (22:46 +0000)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 16 May 2022 22:46:44 +0000 (22:46 +0000)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.html
Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem.service.ts

index 63bb22b..5926390 100644 (file)
               </a>
             </ng-container>
 
-            <!-- TODO patron requests -->
+            <span class="ml-1 mr-1" i18n> | </span>
+            <a class="label-with-material-icon"
+              title="Request(s)" i18n-title
+              href="/eg/staff/acq/requests/lineitem/{{li.id()}}"
+              target="_blank">
+              <span class="material-icons small mr-1">help</span>
+              <span i18n>Request(s)</span>
+            </a>
 
             <span class="ml-1 mr-1" i18n> | </span>
             <a class="label-with-material-icon"
               </a>
             </ng-container>
 
-            <!-- TODO import queue -->
+            <ng-container *ngIf="li.queued_record()">
+              <span class="ml-1 mr-1" i18n> | </span>
+              <a class="label-with-material-icon"
+                title="Import Queue" i18n-title
+                routerLink="/staff/cat/vandelay/queue/bib/{{li.queued_record().queue()}}"
+                target="_blank">
+                <span class="material-icons small mr-1">queue</span>
+                <span i18n>Import Queue</span>
+              </a>
+            </ng-container>
 
           </div>
         </div>
index 5fc3d38..39d07e8 100644 (file)
@@ -125,7 +125,8 @@ export class LineitemService {
             flesh_copies: true,
             flesh_claim_policy: true,
             clear_marc: false,
-            apply_order_identifiers: true
+            apply_order_identifiers: true,
+            flesh_queued_record: true
         }, params.fleshMore || {});
 
         return this.net.request(