From 3f4aead081c9925c65dac436fcad977592b98bc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Lindstr=C3=B6m?= Date: Mon, 9 Dec 2024 19:43:27 +0100 Subject: [PATCH] Type labelled entities in SAB as just Resources --- whelktool/scripts/2024/sab/main.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whelktool/scripts/2024/sab/main.groovy b/whelktool/scripts/2024/sab/main.groovy index 186e70d1f9..4f410adbc8 100644 --- a/whelktool/scripts/2024/sab/main.groovy +++ b/whelktool/scripts/2024/sab/main.groovy @@ -44,7 +44,7 @@ boolean interpretClassification(Map thing) { cls.inScheme = [(ID): SAB] cls.broader = sabRefs - var missed = sabRefs.findAll { ID !in it && it[TYPE] != 'ShelfLocal' } + var missed = sabRefs.findAll { ID !in it && it[TYPE] != 'Resource' } if (missed) { missed.each { missing.get(it.code, []) << clsCode @@ -76,7 +76,7 @@ List splitSabCode(String code) { if (chunk.indexOf(' ') > -1) { if (chunk.startsWith('z ')) { - return [(TYPE): 'ShelfLocal', label: chunk.substring(2)] + return [(TYPE): 'Resource', label: chunk.substring(2)] } return null }