LP2018208 Empty alt for result record images, icons
authorStephanie Leary <stephanie.leary@equinoxoli.org>
Wed, 3 May 2023 17:18:59 +0000 (17:18 +0000)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 4 May 2023 14:10:05 +0000 (10:10 -0400)
Adds empty alt attributes for jacket images and format icons that are
immediately followed by equivalent text representations, and are
therefore redundant for screen reader users.

Signed-off-by: Stephanie Leary <stephanie.leary@equinoxoli.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html

index 9f0ec52..aa2cfae 100644 (file)
           <ng-container *ngIf="hasMrConstituentRecords(summary)">
             <a routerLink="/staff/catalog/search"
               [queryParams]="appendFromMrParam(summary)">
-              <img src="/opac/extras/ac/jacket/medium/r/{{summary.id}}"/>
+              <img src="/opac/extras/ac/jacket/medium/r/{{summary.id}}" alt=""/>
             </a>
           </ng-container>
           <ng-container *ngIf="!hasMrConstituentRecords(summary)">
               <a routerLink="/staff/catalog/record/{{summary.id}}"
                 [queryParams]="currentParams()">
-                <img src="/opac/extras/ac/jacket/medium/r/{{summary.id}}"/>
+                <img src="/opac/extras/ac/jacket/medium/r/{{summary.id}}" alt=""/>
               </a>
           </ng-container>
         </div>
@@ -68,7 +68,7 @@
                 <ng-container *ngFor="let icon of summary.attributes.icon_format">
                 <span class="pe-1">
                   <img class="pe-1"
-                    src="/images/format_icons/icon_format/{{icon}}.png"/>
+                    src="/images/format_icons/icon_format/{{icon}}.png" alt=""/>
                   <span>{{iconFormatLabel(icon)}}</span>
                 </span>
                 </ng-container>