LP#1922273: staff catalog: put is_simple filter options at top of list
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Mon, 3 May 2021 20:40:22 +0000 (13:40 -0700)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 20 Sep 2021 15:56:58 +0000 (11:56 -0400)
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.html

index c63c5e8..0911b8f 100644 (file)
@@ -1,8 +1,16 @@
 <ng-template #ccvmOption let-list="list">
-  <option *ngFor="let ccv of list" value="{{ccv.code()}}">
+  <ng-container *ngFor="let ccv of list">
+  <option *ngIf="ccv.is_simple() === 't'" value="{{ccv.code()}}">
     {{ccv.search_label() || ccv.value()}}
     <ng-container *ngIf="ccv.opac_visible() === 'f'" i18n>(Hidden)</ng-container>
   </option>
+  </ng-container>
+  <ng-container *ngFor="let ccv of list">
+  <option *ngIf="ccv.is_simple() === 'f'" value="{{ccv.code()}}">
+    {{ccv.search_label() || ccv.value()}}
+    <ng-container *ngIf="ccv.opac_visible() === 'f'" i18n>(Hidden)</ng-container>
+  </option>
+  </ng-container>
 </ng-template>
 
 <div id='staffcat-search-form'>