LP2016742 Caption titles for shelving location table user/sleary/lp2016742-shelving-locations-table
authorStephanie Leary <stephanie.leary@equinoxoli.org>
Mon, 1 May 2023 18:40:02 +0000 (18:40 +0000)
committerStephanie Leary <stephanie.leary@equinoxoli.org>
Mon, 1 May 2023 18:47:02 +0000 (18:47 +0000)
Updates the caption of the shelving locations table to include the title
and author.

Signed-off-by: Stephanie Leary <stephanie.leary@equinoxoli.org>
Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html

index ba4c265..c964937 100644 (file)
     <div class="row" *ngIf="searchContext.showResultExtras && summary.copies">
       <div class="shelving-locations" role="region" aria-describedby="caption{{index}}" tabindex="0">
         <table class="table" role="table" *ngIf="summary.copies.length">
-          <caption id="caption{{index}}" *ngIf="summary.copies.length" i18n>
-            {{summary.copies.length}} Shelving Locations
+          <caption id="caption{{index}}" *ngIf="summary.copies.length">
+              <span i18n="Shelving locations table heading">{{summary.copies.length}} Shelving Locations</span>
+              <span i18n="Shelving locations table heading preposition">for</span> 
+              <eg-bib-display-field [summary]="summary" field="title" [usePlaceholder]="true"></eg-bib-display-field>
+              <span i18n="Shelving locations table heading separator">&nbsp;-&nbsp;</span>
+              <eg-bib-display-field [summary]="summary" field="author" [usePlaceholder]="true"></eg-bib-display-field>
           </caption>
           <thead role="rowgroup">
             <tr>