@museumwnf/viewer-core 2.8.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@museumwnf/viewer-core",
3
- "version": "2.8.0",
3
+ "version": "2.9.0",
4
4
  "description": "Application engine for MWNF websites: turns a dataset.config.js into a mounted Vue application.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -196,13 +196,16 @@ export function pictureCredits(picture, language) {
196
196
  const lifePart = (value) => (typeof value === 'string' ? value.trim() : '')
197
197
 
198
198
  /**
199
- * The artist the sheet names: the translation's own `artist` when it has one,
200
- * else the record's `artist_names`. A Sharing History record has no artist
201
- * entity, and legacy wrote its artist per language ("Unknown", "Inconnu"),
202
- * so the package carries it on each translation (inventory-app#2233, C22).
199
+ * The artist the sheet names: the translation's own `artist`. Legacy wrote the
200
+ * artist line per language ("Unknown", "Inconnu", or a sentence in Arabic) and
201
+ * printed a language's own line, or nothing when that language had none, so
202
+ * the package carries it on each translation (inventory-app#2233). The
203
+ * record's `artist_names` come from one language's line and stand for none;
204
+ * the record stays a parameter so callers need not change.
203
205
  */
206
+ // eslint-disable-next-line no-unused-vars
204
207
  export function recordArtist(record, text) {
205
- return lifePart(text?.artist) || (record?.artist_names ?? []).join(', ')
208
+ return lifePart(text?.artist)
206
209
  }
207
210
 
208
211
  /**