LP #1998494: Angular Holdings Editor: Cannot create empty call numbers
authorJessica Woolford <jwoolford@biblio.org>
Fri, 9 Dec 2022 15:32:25 +0000 (10:32 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 2 Mar 2023 14:22:32 +0000 (09:22 -0500)
Returns support for adding empty call numbers when adding holdings.

Signed-off-by: Jessica Woolford <jwoolford@biblio.org>
Signed-off-by: Mary Llewelln <mllewell@biblio.org>
Signed-off-by: Elaine Hardy <ehardy@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts

index 9370a07..90fedc3 100644 (file)
@@ -535,7 +535,7 @@ export class VolEditComponent implements OnInit {
         const copies = this.context.copyList();
 
         const badCopies = copies.filter(copy => {
-            return copy._dupe_barcode || !copy.barcode();
+            return copy._dupe_barcode || (!copy.isnew() && !copy.barcode());
         }).length > 0;
 
         if (badCopies) { return false; }