From a617ac2a10aea339fc87c62202356fb8a588727c Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 14 Jul 2026 16:16:08 -0500 Subject: [PATCH] models: HostBib: Properly handle 774s without $w Using `.empty?` still requires the value to not be `nil`. There is at least one record that has no `w` and therefore has a `nil` value; using `.present?` checks for nil *and* empty values. Additionally, ensure no `nil` values escape into the subfields list. Fixes: LIBIT-10644 Ref: AP-778 --- .idea/altmedia.iml | 409 +++++++++++++-------------- .idea/misc.xml | 3 + app/models/bibliographic/host_bib.rb | 6 +- spec/models/host_bib_spec.rb | 2 + 4 files changed, 201 insertions(+), 219 deletions(-) diff --git a/.idea/altmedia.iml b/.idea/altmedia.iml index f9d23e9e..7069445f 100644 --- a/.idea/altmedia.iml +++ b/.idea/altmedia.iml @@ -29,194 +29,199 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -234,7 +239,6 @@ diff --git a/.idea/misc.xml b/.idea/misc.xml index 46ac110a..a4bad70c 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,4 +4,7 @@