Add field for general reception history
This commit is contained in:
@ -526,6 +526,32 @@ final class CsvxmlAvailableFields {
|
||||
""
|
||||
),
|
||||
],
|
||||
$tlLoader->tl("object_addendum", "object_add", "reception_notes") => [
|
||||
"reception_notes" => new FieldEntry(
|
||||
false,
|
||||
[],
|
||||
['reception_notes_md', 'reception_notes_extern'],
|
||||
'', # 'If <i>reception_notes</i> is made available for an object, <i>reception_notes_md></i> and <i>reception_notes_extern</i> have to have values too',
|
||||
$tlLoader->tl("object_addendum", "object_add", "reception_notes"),
|
||||
"",
|
||||
),
|
||||
"reception_notes_md" => new FieldEntry(
|
||||
false,
|
||||
["y", "n"],
|
||||
['reception_notes_md', 'reception_notes_extern'],
|
||||
'Shall a given note on reception be displayed at museum-digital? If <i>note on receptions</i> is available for an object, <i>note on receptions_md></i> and <i>note on receptions_extern</i> have to have values too',
|
||||
$tlLoader->tl("object_addendum", "object_add", "reception_notes") . ' (visibility)',
|
||||
""
|
||||
),
|
||||
"reception_notes_extern" => new FieldEntry(
|
||||
false,
|
||||
["y", "n"],
|
||||
['reception_notes_md', 'reception_notes_extern'],
|
||||
'Shall later exports from museum-digital inlude note on receptions? If <i>note on receptions</i> is available for an object, <i>note on receptions_md></i> and <i>note on receptions_extern</i> have to have values too',
|
||||
$tlLoader->tl("object_addendum", "object_add", "reception_notes") . ' (visibility)',
|
||||
""
|
||||
),
|
||||
],
|
||||
$tlLoader->tl("basis", "basis", 'administration') => [
|
||||
"inclusion_when" => new FieldEntry(
|
||||
false,
|
||||
|
Submodule classes/MDAllowedValueSets updated: b0f5756d33...3f3be7dae2
Submodule classes/MDErrorReporter updated: 591a7bacc5...80fd164439
Submodule l10n/musdb updated: 62a0c78ccf...a3497f4b31
@ -70,11 +70,14 @@ foreach ($availableFields as $headline => $fields) {
|
||||
}
|
||||
|
||||
header('Content-Type: text/csv; charset=utf-8');
|
||||
if ($selectionActive === true)
|
||||
if ($selectionActive === true) {
|
||||
header("Content-Disposition: attachment; filename=csvxml_museum-digital_template-{$lang}_selection.csv");
|
||||
else
|
||||
}
|
||||
else {
|
||||
header("Content-Disposition: attachment; filename=csvxml_museum-digital_template-{$lang}.csv");
|
||||
}
|
||||
|
||||
for ($i = 2; $i <= 4; $i++) {
|
||||
echo mb_convert_encoding('"' . implode("\";\"", ${"line$i"}) . '"' . PHP_EOL, 'utf-16', 'utf-8');
|
||||
echo '"' . implode("\";\"", ${"line$i"}) . '"' . PHP_EOL;
|
||||
# echo mb_convert_encoding('"' . implode("\";\"", ${"line$i"}) . '"' . PHP_EOL, 'utf-16', 'utf-8');
|
||||
}
|
||||
|
Reference in New Issue
Block a user