LP1901893 Carousel bucket should be linked from grid
authorTerran McCanna <tmccanna@georgialibraries.org>
Wed, 28 Oct 2020 22:41:27 +0000 (18:41 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 4 Jun 2021 14:01:52 +0000 (10:01 -0400)
Re-formats the bucket column content as a link that opens the
carousel's associated bucket in a new tab.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/admin/local/admin-carousel.component.html

index 537264d..696ef55 100644 (file)
   </eg-grid-toolbar-action>
   <eg-grid-toolbar-action label="Refresh Selected" i18n-label [action]="refreshSelected">
   </eg-grid-toolbar-action>
-  <eg-grid-column path="bucket" [hidden]="true"></eg-grid-column>
+  <ng-template #recordBucketTmpl let-carousel="row">
+    <a href="/eg/staff/cat/bucket/record/view/{{carousel.bucket().id()}}" target="_blank">
+        {{carousel.bucket().name()}}
+    </a>
+  </ng-template>
+  <eg-grid-column  [hidden]="true" i18n-label label="Bucket" [cellTemplate]="recordBucketTmpl"></eg-grid-column>
   <eg-grid-column path="creator" [hidden]="true"></eg-grid-column>
   <eg-grid-column path="editor" [hidden]="true"></eg-grid-column>
   <eg-grid-column path="create_time" [hidden]="true"></eg-grid-column>