From 0aa46f8721dfd6885670f79ff7b5a5b8ea992762 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 17:04:27 +0000 Subject: [PATCH 1/2] Initial plan From fb7b94af8da8abbdea16d52aef15d652dbc79eec Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 17:06:23 +0000 Subject: [PATCH 2/2] Fix namespaced xlink:href attribute access in Nokogiri Co-authored-by: alexdryden <47127862+alexdryden@users.noreply.github.com> --- traject_config_eac_cpf.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/traject_config_eac_cpf.rb b/traject_config_eac_cpf.rb index deb9ac5..7bbf987 100644 --- a/traject_config_eac_cpf.rb +++ b/traject_config_eac_cpf.rb @@ -215,7 +215,7 @@ relations = record.xpath('//eac:cpfDescription/eac:relations/eac:cpfRelation', EAC_NS) relations.each do |rel| # Get the related entity href/identifier - href = rel['href'] || rel['xlink:href'] + href = rel['href'] || rel.attribute_with_ns('href', 'http://www.w3.org/1999/xlink')&.value relation_type = rel['cpfRelationType'] if href @@ -233,7 +233,7 @@ to_field 'related_agent_uris_ssim' do |record, accumulator| relations = record.xpath('//eac:cpfDescription/eac:relations/eac:cpfRelation', EAC_NS) relations.each do |rel| - href = rel['href'] || rel['xlink:href'] + href = rel['href'] || rel.attribute_with_ns('href', 'http://www.w3.org/1999/xlink')&.value accumulator << href if href end end