LP1896081 Repair staff catalog filter expansion error
authorBill Erickson <berickxx@gmail.com>
Thu, 17 Sep 2020 15:15:39 +0000 (11:15 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 22 Sep 2020 14:01:04 +0000 (10:01 -0400)
Simplifies an i18n structure that was leading to this error when
expanding the staff catalog filters section:

ERROR DOMException: Failed to execute 'appendChild' on
'Node': The new child element contains the parent.
    at EmulatedEncapsulationDomRenderer2.appendChild

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mary Llewellyn <mllewell@biblio.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>

Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.html

index 4468d38..61c9829 100644 (file)
           </div>
           <div class="row mt-3" *ngIf="showFilters()">
             <div class="col-lg-12">
-              <div class="form-inline" i18n>
-                <label for="pub-date1-input">Publication Year is</label>
+              <div class="form-inline">
+                <label for="pub-date1-input" i18n>Publication Year is</label>
                 <select class="form-control ml-2" [(ngModel)]="context.termSearch.dateOp">
-                  <option value='is'>Is</option>
-                  <option value='before'>Before</option>
-                  <option value='after'>After</option>
-                  <option value='between'>Between</option>
+                  <option value='is' i18n>Is</option>
+                  <option value='before' i18n>Before</option>
+                  <option value='after' i18n>After</option>
+                  <option value='between' i18n>Between</option>
                 </select>
                 <input class="form-control ml-2" type="number"
                   [(ngModel)]="context.termSearch.date1"/>