@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
|
@@ -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
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
*
|
|
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)
|
|
208
|
+
return lifePart(text?.artist)
|
|
206
209
|
}
|
|
207
210
|
|
|
208
211
|
/**
|