LP#1942220: tweaks to the copies inputs
authorGalen Charlton <gmc@equinoxOLI.org>
Wed, 8 Dec 2021 15:56:14 +0000 (10:56 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Wed, 8 Dec 2021 15:56:14 +0000 (10:56 -0500)
- OU selector now limited to locations where user has
  CREATE_PICKLIST or CREATE_PURCHASE_ORDER
- distribution formula combobox now sorts by name
- circ modifier combobox now supports empty click

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/acq/lineitem/copies.component.html
Open-ILS/src/eg2/src/app/staff/acq/lineitem/copy-attrs.component.html

index 48de275..fb84741 100644 (file)
@@ -16,6 +16,7 @@
     <span class="ml-3">
       <eg-combobox idlClass="acqdf" [idlQueryAnd]="formulaFilter" 
         [asyncSupportsEmptyTermClick]="true" [startsWith]="true"
+        [idlQuerySort]="{acqdf: 'name'}"
         #distribFormCbox domId="distrib-formula-cbox">
       </eg-combobox>
     </span>
index ac56dd4..c30f89e 100644 (file)
@@ -11,6 +11,7 @@
     <eg-org-select #owningLibSelect placeholder="Owning Branch..." 
       i18n-placeholder [readOnly]="fieldIsDisabled('owning_lib')"
       [applyOrgId]="copy.owning_lib()"
+      [limitPerms]="['CREATE_PICKLIST','CREATE_PURCHASE_ORDER']"
       (onChange)="valueChange('owning_lib', $event)">
     </eg-org-select>
   </div>  
@@ -46,6 +47,7 @@
     <eg-combobox idlClass="ccm" placeholder="Circ Modifier..." i18n-placeholder
       [readOnly]="fieldIsDisabled('circ_modifier')"
       #circModSelector [entries]="circModEntries"
+      [asyncSupportsEmptyTermClick]="true"
       [selectedId]="copy.circ_modifier()"
       (onChange)="valueChange('circ_modifier', $event)">
     </eg-combobox>