LP1953692 Angular Catalog Record Summary links should open in new tab
authorMichele Morgan <mmorgan@noblenet.org>
Fri, 29 Jul 2022 19:08:14 +0000 (15:08 -0400)
committerJane Sandberg <sandbergja@gmail.com>
Wed, 26 Oct 2022 04:28:41 +0000 (21:28 -0700)
Changes the link behavior in the Angular Catalog Record summary.

The following links now open in new tabs:

Title
Created By
Last Edited By
Jacket image
Course

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.html

index 2e49b19..fb767ad 100644 (file)
@@ -35,7 +35,7 @@
     <!-- in expanded display, show the jacket image along the left -->
     <ng-container *ngIf="expand">
       <div class="col-lg-1 pr-0">
-        <a href="/opac/extras/ac/jacket/large/r/{{summary.id}}">
+        <a href="/opac/extras/ac/jacket/large/r/{{summary.id}}" target="_blank">
           <img class="jacket jacket-medium"
             alt="Jacket Image" i18n-alt
             src="/opac/extras/ac/jacket/medium/r/{{summary.id}}"/>
@@ -51,9 +51,9 @@
             <div class="d-flex">
               <div class="flex-1 font-weight-bold" i18n>Title:</div>
               <div class="flex-3">
-                <eg-bib-display-field [summary]="summary" field="title"
-                  routerLink="/staff/catalog/record/{{summary.id}}">
-                </eg-bib-display-field>
+                <a routerLink="/staff/catalog/record/{{summary.id}}" target="_blank">
+                  <eg-bib-display-field [summary]="summary" field="title"</eg-bib-display-field>
+                </a>
               </div>
               <div class="flex-1 font-weight-bold pl-1" i18n>Edition:</div>
               <div class="flex-1">{{summary.display.edition}}</div>
@@ -61,7 +61,7 @@
               <div class="flex-1">{{summary.record.tcn_value()}}</div>
               <div class="flex-1 font-weight-bold pl-1" i18n>Created By:</div>
               <div class="flex-1" *ngIf="summary.record.creator().usrname">
-                <a href="/eg/staff/circ/patron/{{summary.record.creator().id()}}/checkout">
+                <a href="/eg/staff/circ/patron/{{summary.record.creator().id()}}/checkout" target="_blank">
                   {{summary.record.creator().usrname()}}
                 </a>
               </div>
@@ -77,7 +77,7 @@
               <div class="flex-1">{{summary.id}}</div>
               <div class="flex-1 font-weight-bold pl-1" i18n>Last Edited By:</div>
               <div class="flex-1" *ngIf="summary.record.editor().usrname">
-                <a href="/eg/staff/circ/patron/{{summary.record.editor().id()}}/checkout">
+                <a href="/eg/staff/circ/patron/{{summary.record.editor().id()}}/checkout" target="_blank">
                   {{summary.record.editor().usrname()}}
                 </a>
               </div>
               <div class="d-flex">
                 <div class="flex-1 font-weight-bold" i18n>Course Name:</div>
                 <div class="flex-3">
-                  <a routerLink="/staff/admin/local/asset/course_list/{{course.id()}}">
+                  <a routerLink="/staff/admin/local/asset/course_list/{{course.id()}}" target="_blank">
                     {{course.name()}}
                   </a>
                 </div>
                   </ng-container>
                 </div>
                 <div class="flex-5">
-                  <div><a href="{{url.href}}">{{url.label}}</a></div>
+                  <div><a href="{{url.href}}" target="_blank">{{url.label}}</a></div>
                   <div class="pt-1">{{url.note}}</div>
                 </div>
               </div>