LP1888723 Sort new-volum holding orgs alphabetically
authorBill Erickson <berickxx@gmail.com>
Tue, 9 Feb 2021 20:04:38 +0000 (15:04 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Sun, 15 Aug 2021 23:56:23 +0000 (19:56 -0400)
When adding new call numbers to newly represented org units in the
volcopy holdings grid, ensure newly added org units are sorted
alphabetically by the org unit shortname.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Ruth Frasur <rfrasur@library.in.gov>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts

index 12668bf..4fb93a1 100644 (file)
@@ -126,6 +126,7 @@ export class VolEditComponent implements OnInit {
         if (!org) { return; }
         const orgNode = this.context.findOrCreateOrgNode(org.id());
         this.createVols(orgNode, 1);
+        this.context.sortHoldings();
     }
 
     // This only removes copies that were created during the