LP1959048: Run ng lint --fix
authorJane Sandberg <js7389@princeton.edu>
Thu, 8 Sep 2022 20:21:04 +0000 (13:21 -0700)
committerJane Sandberg <sandbergja@gmail.com>
Thu, 15 Sep 2022 14:40:33 +0000 (07:40 -0700)
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
39 files changed:
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.html
Open-ILS/src/eg2/src/app/share/grid/grid-body-cell.component.html
Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.html
Open-ILS/src/eg2/src/app/staff/acq/provider/summary-pane.component.html
Open-ILS/src/eg2/src/app/staff/acq/search/acq-search-form.component.html
Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.html
Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-users.component.html
Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-page.component.html
Open-ILS/src/eg2/src/app/staff/admin/server/coded-value-maps/coded-value-maps.component.html
Open-ILS/src/eg2/src/app/staff/admin/server/coded-value-maps/composite-new.component.html
Open-ILS/src/eg2/src/app/staff/admin/server/org-unit-type.component.html
Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.html
Open-ILS/src/eg2/src/app/staff/admin/server/print-template.component.html
Open-ILS/src/eg2/src/app/staff/cat/marcbatch/marcbatch.component.html
Open-ILS/src/eg2/src/app/staff/cat/vandelay/import.component.html
Open-ILS/src/eg2/src/app/staff/cat/vandelay/match-set-expression.component.html
Open-ILS/src/eg2/src/app/staff/cat/vandelay/match-set-new-point.component.html
Open-ILS/src/eg2/src/app/staff/cat/vandelay/match-set-quality.component.html
Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue-list.component.html
Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.html
Open-ILS/src/eg2/src/app/staff/cat/vandelay/queued-record-matches.component.html
Open-ILS/src/eg2/src/app/staff/cat/vandelay/recent-imports.component.html
Open-ILS/src/eg2/src/app/staff/cat/vandelay/vandelay.component.html
Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.html
Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.html
Open-ILS/src/eg2/src/app/staff/catalog/browse/results.component.html
Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.html
Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html
Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.html
Open-ILS/src/eg2/src/app/staff/reporter/simple/sr-editor.component.html
Open-ILS/src/eg2/src/app/staff/share/bib-summary/bib-summary.component.html
Open-ILS/src/eg2/src/app/staff/share/holdings/batch-item-attr.component.html
Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alerts-dialog.component.html
Open-ILS/src/eg2/src/app/staff/share/holdings/copy-notes-dialog.component.html
Open-ILS/src/eg2/src/app/staff/share/holdings/copy-tags-dialog.component.html
Open-ILS/src/eg2/src/app/staff/share/holds/detail.component.html
Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html
Open-ILS/src/eg2/src/app/staff/share/holds/manage.component.html
Open-ILS/src/eg2/src/app/staff/share/marc-edit/authority-linking-dialog.component.html

index deda3e5..d831cab 100644 (file)
       {{action.label}}
     </button>
     <ng-container *ngIf="isDialog()">
-      <button type="button" class="btn btn-success" *ngIf="mode == 'view'"
+      <button type="button" class="btn btn-success" *ngIf="mode === 'view'"
         (click)="closeEditor()" i18n>Close</button>
-      <button type="button" class="btn btn-warning ml-2" *ngIf="mode != 'view'"
+      <button type="button" class="btn btn-warning ml-2" *ngIf="mode !== 'view'"
         (click)="cancel()" i18n>Cancel</button>
     </ng-container>
 
-    <ng-container *ngIf="showDelete && mode != 'view'">
+    <ng-container *ngIf="showDelete && mode !== 'view'">
       <button type="button" class="btn btn-warning" (click)="remove()"
         [disabled]="record && record.isnew()" i18n>Delete</button>
     </ng-container>
 
     <button type="button" class="btn btn-info" 
-      [disabled]="fmEditForm.invalid" *ngIf="mode != 'view'"
+      [disabled]="fmEditForm.invalid" *ngIf="mode !== 'view'"
       (click)="save()" i18n>Save</button>
   </div>
 </ng-template>
index 921fafc..14ce003 100644 (file)
@@ -4,12 +4,12 @@
   placement="top-left"
   class="{{context.cellClassCallback(row, column)}}"
   triggers="mouseenter:mouseleave">
-  <ng-container *ngIf="column.datatype == 'bool'">
+  <ng-container *ngIf="column.datatype === 'bool'">
     <eg-bool [value]="context.getRowColumnValue(row, column)"
       [ternary]="column.ternaryBool">
     </eg-bool>
   </ng-container>
-  <ng-container *ngIf="column.datatype != 'bool'">
+  <ng-container *ngIf="column.datatype !== 'bool'">
     {{context.getRowColumnValue(row, column)}}
   </ng-container>
 </span>
index 9a8ef89..0e5e8f2 100644 (file)
                   <eg-date-select [hidden]="col.filterOperator !== 'between'" #dateSelectTwo
                     (onChangeAsYmd)="applyFilterCommon(col)"
                     [disabled]="col.filterInputDisabled || context.dataSource.requestingData"
-                    [required]="col.filterOperator == 'between'"></eg-date-select>
+                    [required]="col.filterOperator === 'between'"></eg-date-select>
                 </div>
               </div>
               <ng-container *ngTemplateOutlet="actionsTemplate"></ng-container>
index e3e848b..48a0883 100644 (file)
@@ -76,7 +76,7 @@
 
 <div class="row provider_active">
 <div class="col">{{provider_active_label}}</div>
-<div class="col"><eg-bool [value]="provider_active == 't'"></eg-bool></div>
+<div class="col"><eg-bool [value]="provider_active === 't'"></eg-bool></div>
 </div>
 
 <div class="row provider_prepayment_required">
index ba724dc..81c1d7e 100644 (file)
         (change)="clearSearchTermValueAfterOpChange(t, oldOp)">
         <option i18n value="">is</option>
         <option i18n value="__not">is NOT</option>
-        <option i18n value="__fuzzy" [hidden]="searchTermDatatypes[t.field] != 'text' && searchFieldLinkedClasses[t.field] !== 'acqpro' && searchFieldLinkedClasses[t.field] !== 'au'">contains</option>
-        <option i18n value="__not,__fuzzy" [hidden]="searchTermDatatypes[t.field] != 'text' && searchFieldLinkedClasses[t.field] !== 'acqpro' && searchFieldLinkedClasses[t.field] !== 'au'">does NOT contain</option>
-        <option i18n value="__starts" [hidden]="searchTermDatatypes[t.field] != 'text'">STARTS with</option>
-        <option i18n value="__ends" [hidden]="searchTermDatatypes[t.field] != 'text'">ENDS with</option>
-        <option i18n value="__lte" [hidden]="searchTermDatatypes[t.field] != 'timestamp' && !dateLikeSearchFields[t.field]">is on or BEFORE</option>
-        <option i18n value="__gte" [hidden]="searchTermDatatypes[t.field] != 'timestamp' && !dateLikeSearchFields[t.field]">is on or AFTER</option>
-        <option i18n value="__between" [hidden]="searchTermDatatypes[t.field] != 'timestamp'">is BETWEEN</option>
-        <option i18n value="__age" [hidden]="searchTermDatatypes[t.field] != 'timestamp'">age (relative date)</option>
-        <option i18n value="__isnotnull" [hidden]="searchTermDatatypes[t.field] == 'id' || searchTermFieldIsRequired[t.field]">exists</option>
-        <option i18n value="__isnull" [hidden]="searchTermDatatypes[t.field] == 'id' || searchTermFieldIsRequired[t.field]">does NOT exist</option>
+        <option i18n value="__fuzzy" [hidden]="searchTermDatatypes[t.field] !== 'text' && searchFieldLinkedClasses[t.field] !== 'acqpro' && searchFieldLinkedClasses[t.field] !== 'au'">contains</option>
+        <option i18n value="__not,__fuzzy" [hidden]="searchTermDatatypes[t.field] !== 'text' && searchFieldLinkedClasses[t.field] !== 'acqpro' && searchFieldLinkedClasses[t.field] !== 'au'">does NOT contain</option>
+        <option i18n value="__starts" [hidden]="searchTermDatatypes[t.field] !== 'text'">STARTS with</option>
+        <option i18n value="__ends" [hidden]="searchTermDatatypes[t.field] !== 'text'">ENDS with</option>
+        <option i18n value="__lte" [hidden]="searchTermDatatypes[t.field] !== 'timestamp' && !dateLikeSearchFields[t.field]">is on or BEFORE</option>
+        <option i18n value="__gte" [hidden]="searchTermDatatypes[t.field] !== 'timestamp' && !dateLikeSearchFields[t.field]">is on or AFTER</option>
+        <option i18n value="__between" [hidden]="searchTermDatatypes[t.field] !== 'timestamp'">is BETWEEN</option>
+        <option i18n value="__age" [hidden]="searchTermDatatypes[t.field] !== 'timestamp'">age (relative date)</option>
+        <option i18n value="__isnotnull" [hidden]="searchTermDatatypes[t.field] === 'id' || searchTermFieldIsRequired[t.field]">exists</option>
+        <option i18n value="__isnull" [hidden]="searchTermDatatypes[t.field] === 'id' || searchTermFieldIsRequired[t.field]">does NOT exist</option>
         <option i18n value="__in">matches a term from a file</option>
       </select>
     </div>
     <div class="col-sm-3">
-      <ng-container *ngIf="t.op == '__in' || t.op == '__isnull' || t.op == '__isnotnull'">
-        <ng-container *ngIf="t.op == '__in'">
+      <ng-container *ngIf="t.op === '__in' || t.op === '__isnull' || t.op === '__isnotnull'">
+        <ng-container *ngIf="t.op === '__in'">
           <eg-file-reader [(ngModel)]="t.value1" [ngModelOptions]="{standalone: true}"></eg-file-reader>
         </ng-container>
       </ng-container>
       <ng-container *ngIf="t.op !== '__in' && t.op !== '__isnull' && t.op !== '__isnotnull'">
        <div *ngIf="t.field.endsWith(':state') && (t.op === '' || t.op === '__not'); else notStateField">
-         <eg-combobox *ngIf="t.op != '__fuzzy'"
+         <eg-combobox *ngIf="t.op !== '__fuzzy'"
           [asyncSupportsEmptyTermClick]="true"
            [idlClass]="searchFieldLinkedClasses[t.field]"
            [selectedId]="t.value1"
          </eg-combobox>
        </div>
        <ng-template #notStateField>
-        <input [ngModelOptions]="{standalone: true}" [(ngModel)]="t.value1" type="text" *ngIf="searchTermDatatypes[t.field] == 'id'" class="form-control" />
-        <input [ngModelOptions]="{standalone: true}" [(ngModel)]="t.value1" type="text" *ngIf="searchTermDatatypes[t.field] == 'text'" class="form-control" />
-        <input [ngModelOptions]="{standalone: true}" [(ngModel)]="t.value1" type="number" *ngIf="searchTermDatatypes[t.field] == 'int'" class="form-control" />
-        <input [ngModelOptions]="{standalone: true}" [(ngModel)]="t.value1" type="number" *ngIf="searchTermDatatypes[t.field] == 'money'" class="form-control" />
-        <select [ngModelOptions]="{standalone: true}" [(ngModel)]="t.value1" *ngIf="searchTermDatatypes[t.field] == 'bool'" class="form-control">
+        <input [ngModelOptions]="{standalone: true}" [(ngModel)]="t.value1" type="text" *ngIf="searchTermDatatypes[t.field] === 'id'" class="form-control" />
+        <input [ngModelOptions]="{standalone: true}" [(ngModel)]="t.value1" type="text" *ngIf="searchTermDatatypes[t.field] === 'text'" class="form-control" />
+        <input [ngModelOptions]="{standalone: true}" [(ngModel)]="t.value1" type="number" *ngIf="searchTermDatatypes[t.field] === 'int'" class="form-control" />
+        <input [ngModelOptions]="{standalone: true}" [(ngModel)]="t.value1" type="number" *ngIf="searchTermDatatypes[t.field] === 'money'" class="form-control" />
+        <select [ngModelOptions]="{standalone: true}" [(ngModel)]="t.value1" *ngIf="searchTermDatatypes[t.field] === 'bool'" class="form-control">
           <option i18n value="t">Yes</option>
           <option i18n value="f">No</option>
         </select>
-        <eg-org-select *ngIf="searchTermDatatypes[t.field] == 'org_unit'"
+        <eg-org-select *ngIf="searchTermDatatypes[t.field] === 'org_unit'"
           [initialOrgId]="t.value1"
           (onChange)="setOrgUnitSearchValue($event, t)">
         </eg-org-select>
-        <ng-container *ngIf="searchTermDatatypes[t.field] == 'link'">
+        <ng-container *ngIf="searchTermDatatypes[t.field] === 'link'">
           <ng-container *ngIf="searchFieldLinkedClasses[t.field] === 'acqpro'">
-            <eg-combobox *ngIf="t.op != '__fuzzy' && t.op != '__not,__fuzzy'"
+            <eg-combobox *ngIf="t.op !== '__fuzzy' && t.op !== '__not,__fuzzy'"
               [idlClass]="searchFieldLinkedClasses[t.field]"
               [selectedId]="t.value1"
               (onChange)="t.value1 = $event ? $event.id : ''">
             </eg-combobox>
-            <input [ngModelOptions]="{standalone: true}" [(ngModel)]="t.value1" type="text" *ngIf="t.op == '__fuzzy' || t.op == '__not,__fuzzy'" class="form-control" />
+            <input [ngModelOptions]="{standalone: true}" [(ngModel)]="t.value1" type="text" *ngIf="t.op === '__fuzzy' || t.op === '__not,__fuzzy'" class="form-control" />
           </ng-container>
           <ng-container *ngIf="searchFieldLinkedClasses[t.field] === 'au'">
             <eg-combobox *ngIf="!t.op.includes('__fuzzy')"
             </eg-combobox>
           </ng-container>
         </ng-container>
-        <eg-date-select *ngIf="searchTermDatatypes[t.field] == 'timestamp' && t.op != '__age'"
+        <eg-date-select *ngIf="searchTermDatatypes[t.field] === 'timestamp' && t.op !== '__age'"
           [initialIso]="t.value1"
           (onChangeAsIso)="t.value1 = $event ? $event : ''; t.is_date = true">
         </eg-date-select>
-        <ng-container *ngIf="searchTermDatatypes[t.field] == 'timestamp' && t.op == '__between'">
+        <ng-container *ngIf="searchTermDatatypes[t.field] === 'timestamp' && t.op === '__between'">
           <span i18n>and</span>
           <eg-date-select
             [initialIso]="t.value2"
             (onChangeAsIso)="t.value2 = $event ? $event : ''; t.is_date = true">
           </eg-date-select>
         </ng-container>
-        <eg-interval-input *ngIf="searchTermDatatypes[t.field] == 'timestamp' && t.op == '__age'"
+        <eg-interval-input *ngIf="searchTermDatatypes[t.field] === 'timestamp' && t.op === '__age'"
           [ngModelOptions]="{standalone: true}" [(ngModel)]="t.value1">
         </eg-interval-input>
        </ng-template>
index 94f12ee..175e387 100644 (file)
@@ -32,7 +32,7 @@
                     </div>
                     <input type="text" class="flex-grow-1" id="associate-item-barcode"
                       [(ngModel)]="barcodeInput" (click)="$event.target.select()"
-                      [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'"
+                      [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'"
                       (keyup.enter)="associateItem(barcodeInput, relationshipInput)" />
                   </div>
                 </div>
@@ -42,7 +42,7 @@
                       <span class="input-group-text" i18n>Relationship</span>
                     </div>
                     <input type="text" [(ngModel)]="relationshipInput"
-                      [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'" placeholder-i18n
+                      [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'" placeholder-i18n
                       placeholder="e.g. Required" class="flex-grow-1" />
                   </div>
                 </div>
                       </div>
                     </div>
                     <input type="text" [(ngModel)]="tempCallNumber" label="associate-item-temp-call-number"
-                      [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'"
+                      [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'"
                       (input)="isModifyingCallNumber = true" class="flex-grow-1" />
                     <div class="input-group-append">
                       <div class="input-group-text">
                         <input type="checkbox" [(ngModel)]="isModifyingCallNumber"
-                          [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'"
+                          [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'"
                           aria-label="Checkbox for setting a temporary Call Number" />
                       </div>
                     </div>
                       </div>
                     </div>
                     <eg-combobox i18n-placeholder placeholder="Circulation Modifier..." idlClass="ccm" idlField="name"
-                      [displayTemplate]="idlClassLabel" [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'"
+                      [displayTemplate]="idlClassLabel" [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'"
                       [asyncSupportsEmptyTermClick]="true" class="flex-grow-1"
                       (onChange)="tempCircMod = $event.id; isModifyingCircMod = true">
                     </eg-combobox>
                     <div class="input-group-append">
                       <div class="input-group-text">
                         <input type="checkbox" [(ngModel)]="isModifyingCircMod"
-                          [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'"
+                          [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'"
                           aria-label="Checkbox for setting a temporary Circulation Modifier" />
                       </div>
                     </div>
                       </div>
                     </div>
                     <eg-combobox i18n-placeholder placeholder="Item Status..." idlClass="ccs" idlField="name"
-                      [displayTemplate]="idlClassLabel" [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'"
+                      [displayTemplate]="idlClassLabel" [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'"
                       [asyncSupportsEmptyTermClick]="true" class="flex-grow-1"
                       (onChange)="tempStatus = $event.id; isModifyingStatus = true">
                     </eg-combobox>
                     <div class="input-group-append">
                       <div class="input-group-text">
                         <input type="checkbox" [(ngModel)]="isModifyingStatus"
-                          [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'"
+                          [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'"
                           aria-label="Checkbox for setting a temporary Item Status" />
                       </div>
                     </div>
                       </div>
                     </div>
                     <eg-item-location-select permFilter="MANAGE_RESERVES" class="flex-grow-1"
-                      [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'" [(ngModel)]="tempLocation"
+                      [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'" [(ngModel)]="tempLocation"
                       (valueChange)="isModifyingLocation = true">
                     </eg-item-location-select>
                     <div class="input-group-append">
                       <div class="input-group-text">
                         <input type="checkbox" [(ngModel)]="isModifyingLocation"
-                          [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'"
+                          [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'"
                           aria-label="Checkbox for setting a temporary Shelving Location" />
                       </div>
                     </div>
               </div>
               <div class="row mt-3">
                 <div class="col-lg-12 text-right">
-                  <button class="btn btn-primary" [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'"
+                  <button class="btn btn-primary" [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'"
                     (click)="associateItem(barcodeInput, relationshipInput)" i18n [disabled]="!barcodeInput">
                     Add Material
                   </button>
                     <span class="input-group-text" i18n>Relationship</span>
                   </div>
                   <input type="text" [(ngModel)]="relationshipInput"
-                    [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'" placeholder-i18n
+                    [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'" placeholder-i18n
                     placeholder="e.g. Required" class="flex-grow-1" />
                 </div>
               </div>
                       <label for="bib-id" class="input-group-text" i18n>Bibliographic Record ID</label>
                     </div>
                     <input type="text" [(ngModel)]="bibId" id="bib-id"
-                      [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'" class="flex-grow-1" />
+                      [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'" class="flex-grow-1" />
                   </div>
                 </div>
                 <div class="d-flex" [ngClass]="isDialog() ? 'col-md-6' : 'col-md-12 mt-3'">
                       <span class="input-group-text" i18n>Relationship</span>
                     </div>
                     <input type="text" [(ngModel)]="relationshipInput"
-                      [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'" class="flex-grow-1" />
+                      [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'" class="flex-grow-1" />
                   </div>
                 </div>
               </div>
               <div class="row mt-3">
                 <div class="col-lg-12 text-right">
                   <button class="btn btn-primary" i18n (click)="associateElectronicBibRecord()"
-                    [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'">
+                    [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'">
                     Add Material
                   </button>
                 </div>
index f7187a5..fc3f7b8 100644 (file)
@@ -30,7 +30,7 @@
             </div>
             <input type="text" class="flex-grow-1" id="associate-user-barcode"
               [(ngModel)]="userBarcode" (click)="$event.target.select()"
-              [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'"
+              [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'"
               (keyup.enter)="associateUser(userBarcode)" />
             <button class="btn btn-outline-dark btn-sm" (click)="searchPatrons()">
               <span class="material-icons mat-icon-in-button align-middle"
@@ -45,7 +45,7 @@
               <label for="associate-user-role" class="input-group-text" i18n>Role</label>
             </div>
             <eg-combobox idlClass="acmr" [(ngModel)]="userRoleInput"
-            [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'">
+            [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'">
             </eg-combobox>
           </div>
         </div>
@@ -53,7 +53,7 @@
       <div class="row mt-3">
         <div class="text-right" [ngClass]="isDialog() ? 'col-md-2' : 'col-md-6'">
           <button class="btn btn-primary"
-            [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'"
+            [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'"
             i18n [disabled]="!userBarcode" (click)="associateUser(userBarcode)">
             Add User
           </button>
index c2177f8..9d672f4 100644 (file)
@@ -1,16 +1,16 @@
 <eg-staff-banner
   bannerText=" {{currentCourse.course_number()}}: {{currentCourse.name()}}"
   i18n-bannerText class="mb-3" *ngIf="currentCourse"
-  [bannerStyle]="(courseIsArchived || currentCourse.is_archived()) == 't' ? 'alert-secondary' : null"
-  [bannerIcon]="(courseIsArchived || currentCourse.is_archived()) == 't' ? 'lock' : null">
+  [bannerStyle]="(courseIsArchived || currentCourse.is_archived()) === 't' ? 'alert-secondary' : null"
+  [bannerIcon]="(courseIsArchived || currentCourse.is_archived()) === 't' ? 'lock' : null">
 </eg-staff-banner>
 
 <div class="row">
   <div class="col text-right">
     <button class="btn btn-danger"
-      (click)="archiveCourse()" [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't' ">
+      (click)="archiveCourse()" [disabled]="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't' ">
       <i class="material-icons align-middle"
-        *ngIf="currentCourse && (courseIsArchived || currentCourse.is_archived()) == 't'">block</i>
+        *ngIf="currentCourse && (courseIsArchived || currentCourse.is_archived()) === 't'">block</i>
       <span class="align-middle">Archive Course</span>
     </button>
     <a class="btn btn-warning ml-3" routerLink="/staff/admin/local/asset/course_list" i18n>
index 1c86d6b..f8d84ad 100644 (file)
@@ -6,7 +6,7 @@
 
 
 <ng-template #compDefTmpl let-row="row">
-  <div *ngIf="row.ctype().composite() == 't'">
+  <div *ngIf="row.ctype().composite() === 't'">
     <a routerLink="/staff/admin/server/config/coded_value_map/composite_def/{{row.id()}}">
       Manage
     </a>
index 1d08983..0562f1c 100644 (file)
@@ -1,14 +1,14 @@
 <div class="row ml-2 mt-4 p-2 border border-secondary" *ngIf="values.pointType">
   <div class="col-lg-12">
-    <h3 class="text-center" *ngIf="values.pointType=='attr'">
+    <h3 class="text-center" *ngIf="values.pointType==='attr'">
       Record Attribute
     </h3>
-    <h3 class="text-center" *ngIf="values.pointType=='bool'">
+    <h3 class="text-center" *ngIf="values.pointType==='bool'">
       Boolean Operator
     </h3>
   </div>
   <div class="col-lg-12 common-form striped-odd form-validated">
-    <ng-container *ngIf="values.pointType=='attr'">
+    <ng-container *ngIf="values.pointType==='attr'">
       <div class="row mb-1">
         <div class="col-lg-4">
           <label id="type" class="col-form-label" i18n>Select Attribute Type:</label>
@@ -30,7 +30,7 @@
         </div>
       </div>
     </ng-container>
-    <ng-container *ngIf="values.pointType=='bool'">
+    <ng-container *ngIf="values.pointType==='bool'">
       <div class="row mb-1">
         <div class="col-lg-4 col-form-label">Operator:</div>
         <div class="col-lg-8">
index 07ee78d..e8e07c7 100644 (file)
@@ -68,7 +68,7 @@
         </div>
         <div class="col-lg-8 font-weight-bold">
           <!-- TODO: use <eg-bool/> once merged-->
-          {{selected.callerData.aout.can_have_users() == 't'}}
+          {{selected.callerData.aout.can_have_users() === 't'}}
         </div>
       </div>
       <div class="row">
@@ -77,7 +77,7 @@
           </div>
           <div class="col-lg-8 font-weight-bold">
             <!-- TODO: use <eg-bool/> once merged-->
-            {{selected.callerData.aout.can_have_vols() == 't'}}
+            {{selected.callerData.aout.can_have_vols() === 't'}}
           </div>
         </div>
       <div class="row">
index d906400..9164124 100644 (file)
               </div>
               <div class="col-lg-8 font-weight-bold">
                 <!-- TODO: replace with <eg-bool/> when merged -->
-                {{selected.callerData.usergroup() == 't'}}
+                {{selected.callerData.usergroup() === 't'}}
               </div>
             </div>
           </ng-template>
                 <div class="col-lg-1 text-center">{{map.depth()}}</div>
                 <div class="col-lg-1 d-flex flex-column justify-content-center">
                   <div class="d-flex justify-content-center p-1 rounded">
-                    <eg-bool [value]="map.grantable() == 't'"></eg-bool>
+                    <eg-bool [value]="map.grantable() === 't'"></eg-bool>
                   </div>
                 </div>
                 <div class="col-lg-1 font-italic" i18n>Inherited</div>
                   <div class="d-flex justify-content-center p-1 rounded border border-info">                
                     <input type="checkbox" class="align-middle"
                       i18n-title title="Grantable?"
-                      [ngModel]="map.grantable() == 't'"
+                      [ngModel]="map.grantable() === 't'"
                       (ngModelChange)="map.grantable($event ? 't' : 'f'); map.ischanged(true)"/>
                   </div>
                 </div>
index 517ce63..6d426ef 100644 (file)
@@ -94,7 +94,7 @@
         <div class="col-lg-6">
           <h4 i18n>
             Template for "{{template.label()}} ({{getOwnerName(template.id())}})"
-            <span class="pl-2 text-warning" *ngIf="template.active() == 'f'">
+            <span class="pl-2 text-warning" *ngIf="template.active() === 'f'">
               (Inactive)
             </span>
           </h4>
index a9e2b89..5ededca 100644 (file)
       </div>
     </div>
     <div class="row mt-2 pt-2 pb-2 border">
-      <ng-container *ngIf="source == 'b'">
+      <ng-container *ngIf="source === 'b'">
         <div class="col-lg-3" i18n>Bucket named: </div>
         <div class="col-lg-6">
           <eg-combobox [selectedId]="bucket" 
           </eg-combobox>
         </div>
       </ng-container>
-      <ng-container *ngIf="source == 'r'">
+      <ng-container *ngIf="source === 'r'">
         <div class="col-lg-3" i18n>Record ID: </div>
         <div class="col-lg-3">
           <input type="text" class="form-control" [(ngModel)]="recordId"/>
         </div>
       </ng-container>
-      <ng-container *ngIf="source == 'c'">
+      <ng-container *ngIf="source === 'c'">
         <div class="col-lg-12">
           <div class="row">
             <div class="col-lg-3" i18n>Column: </div>
index ec2fa75..c017bee 100644 (file)
     <div class="col-lg-3">
       <input class="form-check-input" type="checkbox" 
         id="auto-overlay-acq-copies"
-        [disabled]="recordType == 'authority'"
+        [disabled]="recordType === 'authority'"
         [(ngModel)]="autoOverlayAcqCopies">
     </div>
   </div>
     <div class="col-lg-3">
       <input class="form-check-input" type="checkbox" 
         id="auto-overlay-on-order-copies"
-        [disabled]="recordType == 'authority'"
+        [disabled]="recordType === 'authority'"
         [(ngModel)]="autoOverlayOnOrderCopies">
     </div>
   </div>
     <div class="col-lg-3">
       <label for="marc-remove-groups" i18n>Remove MARC Field Groups</label>
     </div>
-    <ng-container *ngIf="recordType != 'authority'">
+    <ng-container *ngIf="recordType !== 'authority'">
       <div class="col-lg-3" *ngIf="bibTrashGroups.length == 0">
         <span i18n class="font-italic">No Groups Configured</span>
       </div>
     <div class="col-lg-3">
       <input class="form-check-input" type="checkbox" 
         id="auto-overlay-org-unit-copies"
-        [disabled]="recordType == 'authority'"
+        [disabled]="recordType === 'authority'"
         [(ngModel)]="autoOverlayOrgUnitCopies">
     </div>
   </div>
index 004b7c1..049e620 100644 (file)
     </div>
     <div class="row ml-2 mt-4">
       <span class="mr-2" i18n>Add New:</span>
-      <button class="btn btn-outline-dark mr-2" *ngIf="matchSetType=='biblio'"
+      <button class="btn btn-outline-dark mr-2" *ngIf="matchSetType==='biblio'"
         (click)="newPointType='attr'" i18n>Record Attribute</button>
       <button class="btn btn-outline-dark mr-2" 
         (click)="newPointType='marc'" i18n>MARC Tag and Subfield</button>
-      <button class="btn btn-outline-dark mr-2" *ngIf="matchSetType=='authority'"
+      <button class="btn btn-outline-dark mr-2" *ngIf="matchSetType==='authority'"
         (click)="newPointType='heading'" i18n>Normalized Authority Heading</button>
       <button class="btn btn-outline-dark mr-2" 
         (click)="newPointType='bool'" i18n>Boolean Operator</button>
@@ -38,7 +38,7 @@
 
       <button class="btn btn-success ml-3" (click)="addChildNode(true)"
         [disabled]="!hasSelectedNode() ||
-          (newPointType != 'bool' && selectedIsBool())" i18n>
+          (newPointType !== 'bool' && selectedIsBool())" i18n>
         Replace Selected Node
       </button>
 
index 4ffa40c..545a2ac 100644 (file)
@@ -1,6 +1,6 @@
 <div class="row ml-2 mt-4 p-2 border border-secondary" *ngIf="values.pointType">
   <div class="col-lg-12 common-form striped-odd form-validated">
-    <ng-container *ngIf="values.pointType=='attr'">
+    <ng-container *ngIf="values.pointType==='attr'">
       <div class="row mb-1">
         <div class="col-lg-3" i18n>Record Attribute:</div>
         <div class="col-lg-4">
@@ -12,7 +12,7 @@
         </div>
       </div>
     </ng-container>
-    <ng-container *ngIf="values.pointType=='marc'">
+    <ng-container *ngIf="values.pointType==='marc'">
       <div class="row mb-1">
         <div class="col-lg-3" i18n>Tag:</div>
         <div class="col-lg-2">
@@ -26,7 +26,7 @@
         </div>
       </div>
     </ng-container>
-    <ng-container *ngIf="values.pointType=='heading'">
+    <ng-container *ngIf="values.pointType==='heading'">
       <div class="row mb-1">
         <div class="col-lg-3" i18n>Normalized Heading:</div>
         <div class="col-lg-2">
@@ -34,7 +34,7 @@
         </div>
       </div>
     </ng-container>
-    <ng-container *ngIf="values.pointType!='bool'">
+    <ng-container *ngIf="values.pointType!=='bool'">
       <div class="row mb-1">
         <div class="col-lg-3">Match Score:</div>
         <div class="col-lg-2">
@@ -52,7 +52,7 @@
         </div>
       </ng-container>
     </ng-container>
-    <ng-container *ngIf="values.pointType=='bool'">
+    <ng-container *ngIf="values.pointType==='bool'">
       <div class="row mb-1">
         <div class="col-lg-3">Operator:</div>
         <div class="col-lg-2">
index 5229ddf..f60638d 100644 (file)
@@ -2,7 +2,7 @@
   <div class="col-lg-7">
     <div class="row ml-2 mt-4">
       <span class="mr-2" i18n>Add New:</span>
-      <button class="btn btn-outline-dark mr-2" *ngIf="matchSetType=='biblio'"
+      <button class="btn btn-outline-dark mr-2" *ngIf="matchSetType==='biblio'"
         (click)="newPointType='attr'" i18n>Record Attribute</button>
       <button class="btn btn-outline-dark mr-2" 
         (click)="newPointType='marc'" i18n>MARC Tag and Subfield</button>
index badc6df..7517350 100644 (file)
@@ -19,7 +19,7 @@
   </div>
 </div>
 
-<eg-grid *ngIf="queueType=='bib'" #bibQueueGrid 
+<eg-grid *ngIf="queueType==='bib'" #bibQueueGrid 
   persistKey="cat.vandelay.queue.list.bib"
   (onRowActivate)="rowActivated($event)"
   idlClass="vbq" [dataSource]="queueSource">
@@ -27,7 +27,7 @@
     [action]="deleteSelected"></eg-grid-toolbar-action>
 </eg-grid>
 
-<eg-grid *ngIf="queueType=='auth'" #authQueueGrid 
+<eg-grid *ngIf="queueType==='auth'" #authQueueGrid 
   persistKey="cat.vandelay.queue.list.auth"
   (onRowActivate)="rowActivated($event)"
   idlClass="vaq" [dataSource]="queueSource">
index 9f99412..a4fa5a7 100644 (file)
 </ng-template>
 
 <ng-template #importedAsTmpl let-row="row">
-  <a *ngIf="queueType=='bib'" routerLink="/staff/catalog/record/{{row.imported_as}}">
+  <a *ngIf="queueType==='bib'" routerLink="/staff/catalog/record/{{row.imported_as}}">
     {{row.imported_as}}
   </a>
-  <a *ngIf="queueType=='auth'" routerLink="/staff/cat/authority/edit/{{row.imported_as}}">
+  <a *ngIf="queueType==='auth'" routerLink="/staff/cat/authority/edit/{{row.imported_as}}">
     {{row.imported_as}}
   </a>
 </ng-template>
index 2a14c31..7dd6d1b 100644 (file)
@@ -12,7 +12,7 @@
   </ng-container>
 </ng-template>
 
-<ng-container *ngIf="queueType == 'bib'">
+<ng-container *ngIf="queueType === 'bib'">
   <eg-grid #bibGrid [dataSource]="bibDataSource" 
     (onRowClick)="matchRowClick($event)"
     [cellTextGenerator]="cellTextGenerator"
@@ -53,7 +53,7 @@
     </eg-grid-column>
   </eg-grid>
 </ng-container>
-<ng-container *ngIf="queueType == 'authority'">
+<ng-container *ngIf="queueType === 'authority'">
   <eg-grid #authGrid [dataSource]="authDataSource">
     <eg-grid-column name="id" [index]="true" [hidden]="true" 
       i18n-label label="Match ID">
index 6654ac4..1a9ae5a 100644 (file)
@@ -38,7 +38,7 @@
             <div class="col-lg-6">
               <!-- ensure the progress shows 100% when complete -->
               <eg-progress-inline 
-                [max]="tracker.state() == 'complete' ? tracker.actions_performed() : tracker.total_actions() || null"
+                [max]="tracker.state() === 'complete' ? tracker.actions_performed() : tracker.total_actions() || null"
                 [value]="tracker.actions_performed()">
               </eg-progress-inline>
             </div>
                   Queue {{tracker.queue().name()}}
                 </a>
               </span>
-              <span class="pl-2" *ngIf="tracker.action_type() == 'enqueue'" i18n>Enqueuing... </span>
-              <span class="pl-2" *ngIf="tracker.action_type() == 'import'" i18n>Importing... </span>
-              <span *ngIf="tracker.state() == 'active'" i18n>Active</span>
-              <span *ngIf="tracker.state() == 'complete'" i18n>Complete</span>
-              <span *ngIf="tracker.state() == 'error'" i18n>Error</span>
-              <span class='pl-3' *ngIf="tracker.state() == 'complete'">
+              <span class="pl-2" *ngIf="tracker.action_type() === 'enqueue'" i18n>Enqueuing... </span>
+              <span class="pl-2" *ngIf="tracker.action_type() === 'import'" i18n>Importing... </span>
+              <span *ngIf="tracker.state() === 'active'" i18n>Active</span>
+              <span *ngIf="tracker.state() === 'complete'" i18n>Complete</span>
+              <span *ngIf="tracker.state() === 'error'" i18n>Error</span>
+              <span class='pl-3' *ngIf="tracker.state() === 'complete'">
                 <span class="material-icons text-success">thumb_up</span>
               </span>
             </div>
index 1a48cac..6228a74 100644 (file)
@@ -2,39 +2,39 @@
 </eg-staff-banner>
 <ul class="nav nav-pills nav-fill pb-4">
   <li class="nav-item">
-    <a class="nav-link" [ngClass]="{active: tab=='export'}" 
+    <a class="nav-link" [ngClass]="{active: tab==='export'}" 
       routerLink="/staff/cat/vandelay/export" i18n>Export</a>
   </li>
   <li class="nav-item">
-    <a class="nav-link" [ngClass]="{active: tab=='import'}" 
+    <a class="nav-link" [ngClass]="{active: tab==='import'}" 
       routerLink="/staff/cat/vandelay/import" i18n>Import</a>
   </li>
   <li class="nav-item">
-    <a class="nav-link" [ngClass]="{active: tab=='queue'}" 
+    <a class="nav-link" [ngClass]="{active: tab==='queue'}" 
       routerLink="/staff/cat/vandelay/queue" i18n>Inspect Queue</a>
   </li>
   <li class="nav-item">
-    <a class="nav-link" [ngClass]="{active: tab=='display_attrs'}" 
+    <a class="nav-link" [ngClass]="{active: tab==='display_attrs'}" 
       routerLink="/staff/cat/vandelay/display_attrs/bib" 
         i18n>Record Display Attributes</a>
   </li>
   <li class="nav-item">
-    <a class="nav-link" [ngClass]="{active: tab=='merge_profiles'}" 
+    <a class="nav-link" [ngClass]="{active: tab==='merge_profiles'}" 
       routerLink="/staff/cat/vandelay/merge_profiles" 
         i18n>Merge / Overlay Profiles</a>
   </li>
   <li class="nav-item">
-    <a class="nav-link" [ngClass]="{active: tab=='match_sets'}" 
+    <a class="nav-link" [ngClass]="{active: tab==='match_sets'}" 
       routerLink="/staff/cat/vandelay/match_sets" 
         i18n>Record Match Sets</a>
   </li>
   <li class="nav-item">
-    <a class="nav-link" [ngClass]="{active: tab=='holdings_profiles'}" 
+    <a class="nav-link" [ngClass]="{active: tab==='holdings_profiles'}" 
       routerLink="/staff/cat/vandelay/holdings_profiles" 
       i18n>Holdings Import Profiles</a>
   </li>
   <li class="nav-item">
-    <a class="nav-link" [ngClass]="{active: tab=='active_imports'}" 
+    <a class="nav-link" [ngClass]="{active: tab==='active_imports'}" 
       routerLink="/staff/cat/vandelay/active_imports" 
       i18n>Recent Imports</a>
   </li>
index feab30a..0747700 100644 (file)
         </ng-template>
         <eg-batch-item-attr label="{{cat.name()}} ({{orgSn(cat.owner())}})" i18n-label
           name="stat_cat_{{cat.id()}}" editInputDomId="stat-cat-input-{{cat.id()}}"
-          [valueRequired]="cat.required() == 't'"
+          [valueRequired]="cat.required() === 't'"
           [editTemplate]="statCatTemplate"
           [labelCounts]="statCatCounts(cat.id())"
           (valueCleared)="statCatChanged(cat.id(), true)"
index 1eaa072..2f1cea5 100644 (file)
               </ng-container>
             </div>
             <ng-container *ngIf="copyIdx == 0 && volIdx == 0 && (
-              context.sessionType == 'record' || context.sessionType == 'mixed')">
+              context.sessionType === 'record' || context.sessionType === 'mixed')">
               <div class="pr-1">
                 <ng-template #addOrgTmpl>
                   <eg-org-select [limitPerms]="['CREATE_VOLUME']" 
         <div class="p-1" [ngStyle]="{flex: flexAt(7)}">
           <ng-container *ngIf="copyIdx == 0">
             <ng-container 
-              *ngIf="context.sessionType == 'record' || context.sessionType == 'mixed'">
+              *ngIf="context.sessionType === 'record' || context.sessionType === 'mixed'">
               <button class="btn btn-sm material-icon-button p-1"
                 (click)="createVols(orgNode, 1)"
                 i18n-title title="Add Call Number">
               </ng-template>
 
               <button class="btn btn-sm material-icon-button p-1"
-                [disabled]="context.sessionType == 'copy' || context.sessionType == 'vol'"
+                [disabled]="context.sessionType === 'copy' || context.sessionType === 'vol'"
                 (shown)="focusElement('add-vol-popover')"
                 placement="bottom" [ngbPopover]="addVolCountTmpl"
                 autoClose="outside" #addVolsPopover="ngbPopover"
           </ng-container>
         </div>
         <div class="p-1" [ngStyle]="{flex: flexAt(11)}">
-          <ng-container *ngIf="context.sessionType != 'copy'">
+          <ng-container *ngIf="context.sessionType !== 'copy'">
 
             <button class="btn btn-sm material-icon-button p-1"
               (click)="createCopies(volNode, 1)" i18n-title title="Add Item">
index 19aa3b7..9af846f 100644 (file)
           <div class="row" *ngFor="let heading of result.compiledHeadings">
             <div class="col-lg-10 offset-lg-1" i18n>
               <span class="font-italic">
-                <ng-container *ngIf="!heading.type || heading.type == 'variant'">
+                <ng-container *ngIf="!heading.type || heading.type === 'variant'">
                     See
                 </ng-container>
-                <ng-container *ngIf="heading.type == 'broader'">
+                <ng-container *ngIf="heading.type === 'broader'">
                     Broader term
                 </ng-container>
-                <ng-container *ngIf="heading.type == 'narrower'">
+                <ng-container *ngIf="heading.type === 'narrower'">
                     Narrower term
                 </ng-container>
-                <ng-container *ngIf="heading.type == 'other'">
+                <ng-container *ngIf="heading.type === 'other'">
                     Related term
                 </ng-container>
               </span>
index df4130e..9d40f1e 100644 (file)
@@ -60,7 +60,7 @@
         <div class="col-lg-6">
           <div class="input-group">
             <input type='text' class="form-control" name="userBarcode"
-              [disabled]="holdFor!='patron'" id='patron-barcode'
+              [disabled]="holdFor!=='patron'" id='patron-barcode'
               aria-label="Patron barcode" i18n-aria-label
               (ngModelChange)="debounceUserBarcodeLookup($event)"
               (paste)="debounceUserBarcodeLookup($event)"
 <div class="row pt-3 ml-1 mr-1 d-flex">
   <div class="">
     <span class="font-weight-bold" i18n>Placing
-      <ng-container *ngIf="holdType == 'M'">METARECORD</ng-container>
-      <ng-container *ngIf="holdType == 'T'">TITLE</ng-container>
-      <ng-container *ngIf="holdType == 'V'">CALL NUMBER</ng-container>
-      <ng-container *ngIf="holdType == 'F'">FORCE ITEM</ng-container>
-      <ng-container *ngIf="holdType == 'C'">ITEM</ng-container>
-      <ng-container *ngIf="holdType == 'R'">RECALL</ng-container>
-      <ng-container *ngIf="holdType == 'I'">ISSUANCE</ng-container>
-      <ng-container *ngIf="holdType == 'P'">PARTS</ng-container>
+      <ng-container *ngIf="holdType === 'M'">METARECORD</ng-container>
+      <ng-container *ngIf="holdType === 'T'">TITLE</ng-container>
+      <ng-container *ngIf="holdType === 'V'">CALL NUMBER</ng-container>
+      <ng-container *ngIf="holdType === 'F'">FORCE ITEM</ng-container>
+      <ng-container *ngIf="holdType === 'C'">ITEM</ng-container>
+      <ng-container *ngIf="holdType === 'R'">RECALL</ng-container>
+      <ng-container *ngIf="holdType === 'I'">ISSUANCE</ng-container>
+      <ng-container *ngIf="holdType === 'P'">PARTS</ng-container>
       hold on record(s)
     </span>
   </div>
index 7b070fe..bc6ec77 100644 (file)
         <div class="row pt-2">
           <div class="col-lg-12">
             <div class="float-right">
-              <ng-container *ngIf="summary.record.deleted() == 't'">
+              <ng-container *ngIf="summary.record.deleted() === 't'">
                 <span class="text-danger" i18n>(Deleted)</span>
               </ng-container>
               <span>
index 18bae19..bd1d099 100644 (file)
@@ -74,9 +74,9 @@
                 <option i18n value='contains'>Contains</option>
                 <option i18n value='nocontains'>Does not contain</option>
                 <option i18n value='phrase'>Contains phrase</option>
-                <option [disabled]="context.termSearch.fieldClass[idx]=='keyword'"
+                <option [disabled]="context.termSearch.fieldClass[idx]==='keyword'"
                   i18n value='exact'>Matches exactly</option>
-                <option [disabled]="context.termSearch.fieldClass[idx]=='keyword'"
+                <option [disabled]="context.termSearch.fieldClass[idx]==='keyword'"
                   i18n value='starts'>Starts with</option>
               </select>
             </div>
                 <input class="form-control ml-2" type="number"
                   [(ngModel)]="context.termSearch.date1"/>
                 <input class="form-control ml-2" type="number"
-                  *ngIf="context.termSearch.dateOp == 'between'"
+                  *ngIf="context.termSearch.dateOp === 'between'"
                   [(ngModel)]="context.termSearch.date2"/>
               </div>
             </div>
index acfbd88..353830a 100644 (file)
@@ -46,7 +46,7 @@
     <button class="btn btn-outline-dark ml-1" (click)="closeForm()" i18n>Close</button>
   </div>
 </div>
-<div *ngIf="rptType != ''" class="row mt-2" id="sr-editor-main">
+<div *ngIf="rptType !== ''" class="row mt-2" id="sr-editor-main">
   <div class="col-lg-12">
     <ul ngbNav #srEditorTabs="ngbNav" class="nav-tabs">
 
index 171c696..2e49b19 100644 (file)
@@ -3,7 +3,7 @@
   <div class="card-header d-flex">
     <div class="font-weight-bold">
       Record Summary
-      <ng-container *ngIf="summary.record.deleted() == 't'">
+      <ng-container *ngIf="summary.record.deleted() === 't'">
         <span class="text-danger" i18n>(Deleted)</span>
       </ng-container>
       <ng-container *ngIf="summary.attributes.icon_format && summary.attributes.icon_format[0]">
index a4599eb..39065fb 100644 (file)
           </div>
         </ng-container>
         <div class="flex-1">
-          <ng-container *ngIf="displayAs == 'bool'">
+          <ng-container *ngIf="displayAs === 'bool'">
             <ng-container *ngIf="valueIsUnset(count.key); else defaultBool">
               <span i18n>&lt;Unset&gt;</span>
             </ng-container>
             <ng-template #defaultBool>
-              <span *ngIf="count.key == 't'" i18n>Yes</span>
-              <span *ngIf="count.key == 'f'" i18n>No</span>
+              <span *ngIf="count.key === 't'" i18n>Yes</span>
+              <span *ngIf="count.key === 'f'" i18n>No</span>
             </ng-template>
           </ng-container>
-          <ng-container *ngIf="displayAs == 'currency'">
+          <ng-container *ngIf="displayAs === 'currency'">
             <ng-container 
               *ngIf="valueIsUnset(count.key); else defaultCurrency">
               <span i18n>&lt;Unset&gt;</span>
             </ng-container>
             <ng-template #defaultCurrency>{{count.key | currency}}</ng-template>
           </ng-container>
-          <ng-container *ngIf="displayAs != 'bool' && displayAs != 'currency'">
+          <ng-container *ngIf="displayAs !== 'bool' && displayAs !== 'currency'">
             <ng-container 
               *ngIf="valueIsUnset(count.key); else default">
               <span i18n>&lt;Unset&gt;</span>
index 96cba1a..13d9d1b 100644 (file)
@@ -4,10 +4,10 @@
 <ng-template #dialogContent>
   <div class="modal-header">
     <h4 class="modal-title">
-      <ng-container *ngIf="mode == 'create'">
+      <ng-container *ngIf="mode === 'create'">
         <span i18n>Adding alerts for {{copyIds.length}} item(s).</span>
       </ng-container>
-      <ng-container *ngIf="mode == 'manage'">
+      <ng-container *ngIf="mode === 'manage'">
         <span i18n>Managing alerts for item {{copies[0].barcode()}}</span>
       </ng-container>
       <span i18n></span>
@@ -37,7 +37,7 @@
         <div class="d-flex flex-column">
           <div class="form-check">
             <input class="form-check-input" type="checkbox" 
-              [ngModel]="newAlert.temp() == 't'" 
+              [ngModel]="newAlert.temp() === 't'" 
               (ngModelChange)="newAlert.temp($event ? 't' : 'f')"
               id="new-alert-temporary">
             <label class="form-check-label" for="new-alert-temporary" i18n>
@@ -63,7 +63,7 @@
       </div>
     </div>
 
-    <ng-container *ngIf="mode == 'manage'">
+    <ng-container *ngIf="mode === 'manage'">
       <!-- in manage mode list all of the alerts linked to the copy -->
       <div class="row mt-2" 
         *ngFor="let alert of copy.copy_alerts()">
@@ -89,7 +89,7 @@
           <div class="d-flex flex-column">
             <div class="form-check">
               <input class="form-check-input" type="checkbox" 
-                [ngModel]="alert.temp() == 't'" 
+                [ngModel]="alert.temp() === 't'" 
                 (ngModelChange)="alert.temp($event ? 't' : 'f'); alert.ischanged(true)"
                 id="alert-temporary-{{alert.id()}}">
               <label class="form-check-label" for="alert-temporary-{{alert.id()}}" i18n>
index f71b9f5..2c89c9f 100644 (file)
@@ -4,10 +4,10 @@
 <ng-template #dialogContent>
   <div class="modal-header">
     <h4 class="modal-title">
-      <ng-container *ngIf="mode == 'create'">
+      <ng-container *ngIf="mode === 'create'">
         <span i18n>Adding notes for {{copyIds.length}} item(s).</span>
       </ng-container>
-      <ng-container *ngIf="mode == 'manage'">
+      <ng-container *ngIf="mode === 'manage'">
         <span i18n>Managing notes for item {{copy.barcode()}}</span>
       </ng-container>
       <span i18n></span>
@@ -19,7 +19,7 @@
   </div>
   <div class="modal-body p-4 form-validated">
 
-    <ng-container *ngIf="mode == 'manage' && copy.notes().length">
+    <ng-container *ngIf="mode === 'manage' && copy.notes().length">
       <h4 i18n>Existing Notes</h4>
       <div class="row mt-2 p-2" *ngFor="let note of copy.notes()">
         <div class="col-lg-4">{{note.title()}}</div>
index 1fd0e41..dc6658a 100644 (file)
@@ -4,10 +4,10 @@
 <ng-template #dialogContent>
   <div class="modal-header">
     <h4 class="modal-title">
-      <ng-container *ngIf="mode == 'create'">
+      <ng-container *ngIf="mode === 'create'">
         <span i18n>Adding tags for {{copyIds.length}} item(s).</span>
       </ng-container>
-      <ng-container *ngIf="mode == 'manage'">
+      <ng-container *ngIf="mode === 'manage'">
         <span i18n>Managing tags for item {{copy.barcode()}}</span>
       </ng-container>
       <span i18n></span>
@@ -19,7 +19,7 @@
   </div>
   <div class="modal-body p-4 form-validated">
 
-    <ng-container *ngIf="mode == 'manage' && copy.tags().length">
+    <ng-container *ngIf="mode === 'manage' && copy.tags().length">
       <h4 i18n>Existing Tags</h4>
       <div class="row mt-2 p-2" *ngFor="let map of copy.tags()">
         <div class="col-lg-4">{{map.tag().tag_type().label()}}</div>
index 10d2f5e..1356dd3 100644 (file)
               <div class="font-weight-bold">{{note.title()}}</div>
               <div class="flex-1"></div>
               <div>
-                <span *ngIf="note.slip() == 't'" 
+                <span *ngIf="note.slip() === 't'" 
                   class="ml-2 badge badge-info p-1">Print on Slip</span>
-                <span *ngIf="note.pub() == 't'" 
+                <span *ngIf="note.pub() === 't'" 
                   class="ml-2 badge badge-warning p-1">Patron Visible</span>
-                <span *ngIf="note.staff() == 't'" 
+                <span *ngIf="note.staff() === 't'" 
                   class="ml-2 badge badge-info p-1">Staff Create</span>
               </div>
             </div>
index f3bad0b..b25a446 100644 (file)
 
 <div class='eg-holds w-100 mt-3'>
 
-  <ng-container *ngIf="mode == 'detail'">
+  <ng-container *ngIf="mode === 'detail'">
     <eg-hold-detail [wideHold]="detailHold" (onShowList)="mode='list'" 
       [showRecordSummary]="showRecordSummary"></eg-hold-detail>
   </ng-container>
 
-  <ng-container *ngIf="mode == 'list' && initComplete()">
+  <ng-container *ngIf="mode === 'list' && initComplete()">
 
     <h3 i18n>Holds Count: {{holdsCount}}</h3>
 
 
       <ng-template #barcodeTmpl let-hold="row" let-col="col">
         <a href="/eg/staff/cat/item/{{hold.cp_id}}/summary" target="_blank">
-          <ng-container *ngIf="col.name == 'current_item' && hold.current_copy">
+          <ng-container *ngIf="col.name === 'current_item' && hold.current_copy">
             {{hold.cp_barcode}}
           </ng-container>
-          <ng-container *ngIf="col.name == 'requested_item' && isCopyHold(hold)">
+          <ng-container *ngIf="col.name === 'requested_item' && isCopyHold(hold)">
             {{hold.cp_barcode}}
           </ng-container>
         </a>
index fd9896e..1e80c95 100644 (file)
@@ -37,7 +37,7 @@
         <input class="form-check-input" type="checkbox" id="mint-condition"
           name="mint" value="mint"
           [disabled]="isBatch() && !activeFields.mint_condition"
-          [ngModel]="hold.mint_condition() == 't'"
+          [ngModel]="hold.mint_condition() === 't'"
           (ngModelChange)="hold.mint_condition($event ? 't' : 'f')">
         <label class="form-check-label" for="mint-condition">
           Good Condition Only
@@ -64,7 +64,7 @@
         <input class="form-check-input" type="checkbox"
           id="frozen" name="frozen"
           [disabled]="isBatch() && !activeFields.frozen"
-          [ngModel]="hold.frozen() == 't'"
+          [ngModel]="hold.frozen() === 't'"
           (ngModelChange)="hold.frozen($event ? 't' : 'f')">
       </div>
     </div>
@@ -85,7 +85,7 @@
         <input class="form-check-input" type="checkbox"
           id="cut_in_line" name="cut_in_line"
           [disabled]="isBatch() && !activeFields.cut_in_line"
-          [ngModel]="hold.cut_in_line() == 't'"
+          [ngModel]="hold.cut_in_line() === 't'"
           (ngModelChange)="hold.cut_in_line($event ? 't' : 'f')">
       </div>
     </div>
     <div class="col-lg-4">
       <div class="form-check form-check-inline">
         <input class="form-check-input" type="checkbox" id="email"
-          name="email" [ngModel]="hold.email_notify() == 't'"
+          name="email" [ngModel]="hold.email_notify() === 't'"
           [disabled]="isBatch() && !activeFields.email_notify"
           (ngModelChange)="hold.email_notify($event ? 't' : 'f')"/>
       </div>
index 03d1eb5..817379c 100644 (file)
   <button class="btn btn-sm p-1 mr-1" 
     [ngClass]="{'btn-outline-primary': !(from || also), 'btn-outline-info': (from || also)}"
     (click)="applyHeading(field, authId)" i18n>Apply</button>
-  <ng-container *ngIf="showAs == 'heading'">
+  <ng-container *ngIf="showAs === 'heading'">
     <span *ngIf="from" i18n>See From: {{field.heading}}</span>
     <span *ngIf="also" i18n>See Also: {{field.heading}}</span>
     <span *ngIf="!from && !also" i18n>{{field.heading}}</span>
   </ng-container>
-  <ng-container *ngIf="showAs == 'marc'">
+  <ng-container *ngIf="showAs === 'marc'">
     <ng-container
       *ngTemplateOutlet="fieldAsMarc;context:{field:field}">
     </ng-container>