Make separated measurement types (length, width) usable independent of each other

Close #33
This commit is contained in:
Joshua Ramon Enslin 2023-08-14 22:52:41 +02:00
parent 80785406bb
commit 54f146831f
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
7 changed files with 11 additions and 21 deletions

View File

@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="assets/css/csvxml.min.css?64cce415e5a3e" /> <link rel="stylesheet" type="text/css" href="assets/css/csvxml.min.css?64da941414bbb" />
<link rel="manifest" href="/manifest.json" /> <link rel="manifest" href="/manifest.json" />
<meta name="theme-color" content="#aa4400" /> <meta name="theme-color" content="#aa4400" />
@ -27,7 +27,7 @@
</head> </head>
<body class="loading"> <body class="loading">
<script src="assets/js/csvxmlV2.min.js?64cce415e5a3f" type="text/javascript" async></script> <script src="assets/js/csvxmlV2.min.js?64da941414bbc" type="text/javascript" async></script>
</body> </body>
</html> </html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -376,12 +376,7 @@ final class CsvxmlAvailableFields {
"dimensions_separate_show_md" => new FieldEntry( "dimensions_separate_show_md" => new FieldEntry(
false, false,
["y", "n"], ["y", "n"],
[ [],
"dimensions_separate_length_value", "dimensions_separate_length_unit", "dimensions_separate_width_value",
"dimensions_separate_width_unit", "dimensions_separate_height_value", "dimensions_separate_height_unit",
"dimensions_separate_weight_value", "dimensions_separate_weight_unit", "dimensions_separate_diameter_value",
"dimensions_separate_diameter_unit", "dimensions_separate_wall_thickness_value", "dimensions_separate_wall_thickness_unit"
],
'If one or more separate dimension-value (and -unit) is given it has to be specified if the separated entries should be made visible at museum-digital', 'If one or more separate dimension-value (and -unit) is given it has to be specified if the separated entries should be made visible at museum-digital',
$tlLoader->tl("object_addendum", "object_add", 'ausm_visibility_md'), $tlLoader->tl("object_addendum", "object_add", 'ausm_visibility_md'),
"" ""
@ -389,12 +384,7 @@ final class CsvxmlAvailableFields {
"dimensions_separate_show_extern" => new FieldEntry( "dimensions_separate_show_extern" => new FieldEntry(
false, false,
["y", "n"], ["y", "n"],
[ [],
"dimensions_separate_length_value", "dimensions_separate_length_unit", "dimensions_separate_width_value",
"dimensions_separate_width_unit", "dimensions_separate_height_value", "dimensions_separate_height_unit",
"dimensions_separate_weight_value", "dimensions_separate_weight_unit", "dimensions_separate_diameter_value",
"dimensions_separate_diameter_unit", "dimensions_separate_wall_thickness_value", "dimensions_separate_wall_thickness_unit"
],
'If one or more separate dimension-value (and -unit) is given it has to be specified if the separated entries should be included in a later export from museum-digital', 'If one or more separate dimension-value (and -unit) is given it has to be specified if the separated entries should be included in a later export from museum-digital',
$tlLoader->tl("object_addendum", "object_add", 'ausm_visibility_extern'), $tlLoader->tl("object_addendum", "object_add", 'ausm_visibility_extern'),
"" ""
@ -402,7 +392,7 @@ final class CsvxmlAvailableFields {
"number_of_pieces" => new FieldEntry( "number_of_pieces" => new FieldEntry(
false, false,
[], [],
[], ['dimensions_separate_show_md', 'dimensions_separate_show_extern'],
'Only to be given if more than one copies of an object are available and catalogued with the same inventory number', 'Only to be given if more than one copies of an object are available and catalogued with the same inventory number',
$tlLoader->tl("export", "export", 'exact_measurements_number_pieces'), $tlLoader->tl("export", "export", 'exact_measurements_number_pieces'),
"" ""
@ -410,7 +400,7 @@ final class CsvxmlAvailableFields {
"number_of_pages" => new FieldEntry( "number_of_pages" => new FieldEntry(
false, false,
[], [],
[], ['dimensions_separate_show_md', 'dimensions_separate_show_extern'],
'Only to be given for books (etc.)', 'Only to be given for books (etc.)',
$tlLoader->tl("export", "export", 'exact_measurements_number_pages'), $tlLoader->tl("export", "export", 'exact_measurements_number_pages'),
"" ""