LP1999304 (follow-up): blank alt text for decorative image user/sandbergja/lp1999304-followup
authorJane Sandberg <sandbergja@gmail.com>
Sat, 7 Jan 2023 04:19:55 +0000 (20:19 -0800)
committerJane Sandberg <sandbergja@gmail.com>
Sat, 7 Jan 2023 04:21:16 +0000 (20:21 -0800)
Steps to test:
1. Search the staff catalog for Ready Player One in the concerto dataset.
2. Check the Group Formats/Editions checkbox
3. Press the Place hold button
4. Use your browser's dev tools (or a screen reader) to find the accessible
name of the Large Print Book checkbox.
5. Confirm that the accessible name is Large Print Book, rather than
Large Print Book Large Print Book.

Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.html

index 0c7d63f..d447492 100644 (file)
@@ -1,7 +1,7 @@
 
 <eg-patron-search-dialog #patronSearch></eg-patron-search-dialog>
 <eg-barcode-select #barcodeSelect></eg-barcode-select>
-<eg-worklog-strings-components></eg-worklog-strings-components>                
+<eg-worklog-strings-components></eg-worklog-strings-components>
 
 <eg-alert-dialog #activeDateAlert
   i18n-dialogTitle i18n-dialogBody
@@ -27,7 +27,7 @@
     <ng-container *ngIf="!badBarcode">
       <h3 i18n>Place Hold
         <small *ngIf="user">
-        ({{user.pref_family_name() ? user.pref_family_name() : user.family_name()}}, 
+        ({{user.pref_family_name() ? user.pref_family_name() : user.family_name()}},
         {{user.pref_first_given_name() ? user.pref_first_given_name() :user.first_given_name()}})
         </small>
       </h3>
           <ng-container
             *ngFor="let code of ctx.holdMeta.bibSummary.attributes.icon_format">
             <img class="pr-1"
-              alt="{{iconFormatLabel(code)}}"
-              title="{{iconFormatLabel(code)}}"
+              alt=""
               src="/images/format_icons/icon_format/{{code}}.png"/>
           </ng-container>
         </div>
                 [disabled]="ctx.holdMeta.metarecord_filters.formats.length === 1"
                 [(ngModel)]="ctx.selectedFormats.formats[ccvm.code()]"/>
               <img class="ml-1"
-                alt="{{iconFormatLabel(ccvm.code())}}"
-                title="{{iconFormatLabel(ccvm.code())}}"
+                alt=""
                 src="/images/format_icons/icon_format/{{ccvm.code()}}.png"/>
-              
+
                 {{ccvm.search_label() || ccvm.value()}}
               </label>
             </div>
               <input class="form-check-input" type="checkbox" id="hold-include-lang-{{ccvm.value()}}"
                 [disabled]="ctx.holdMeta.metarecord_filters.langs.length === 1"
                 [(ngModel)]="ctx.selectedFormats.langs[ccvm.code()]"/>
-              
+
                 {{ccvm.search_label() || ccvm.value()}}
               </label>
             </div>