Skip to content

Commit 3202f78

Browse files
committed
Use seal images as fallback for missing logo images
(closes osmlab#8593)
1 parent 449a369 commit 3202f78

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/build_wikidata.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,12 @@ function processEntities(result) {
259259
} else {
260260
// P8972 - Small Logo or Icon
261261
// P154 - Logo Image
262+
// P158 - Seal Image
262263
// P94 - Coat of Arms Image
263-
imageFile = getClaimValue(entity, 'P8972') || getClaimValue(entity, 'P154') || getClaimValue(entity, 'P94');
264+
imageFile = getClaimValue(entity, 'P8972') ||
265+
getClaimValue(entity, 'P154') ||
266+
getClaimValue(entity, 'P158') ||
267+
getClaimValue(entity, 'P94');
264268
}
265269
if (imageFile) {
266270
const re = /\.svg$/i;

0 commit comments

Comments
 (0)