Compare commits

19 Commits

Author SHA1 Message Date
76e2cca0c4 Add fields for object deaccession
Close #48
2025-07-09 16:02:24 +02:00
afc33d2e16 Update git submodules 2025-07-09 15:34:34 +02:00
e5321b44b9 Update MDAllowedValueSets 2025-06-26 01:37:48 +02:00
740193f7be Cover new event types (53-57)
Close #46
2025-06-26 01:36:44 +02:00
c310eef37b Update translation files 2025-06-26 01:25:49 +02:00
e56ae1f366 Add ISSN literature fields 2025-05-28 18:09:44 +02:00
e5e64335a1 Fix incorrect dependency between weight unit and width value fields 2025-05-06 17:37:12 +02:00
eb6add3d29 Add missing / new literature fields
Close #45
2025-05-02 15:15:51 +02:00
f0ce5a9a58 Add fields for actors' year of birth and death for events
Close #44
2025-04-03 17:40:55 +02:00
01d958cdc2 Update MDAllowedValueSets 2025-03-20 17:32:26 +01:00
7b3f67ed15 Simplify code for forming event fields, enforce following schema
suggested by MDEventsSet
2025-03-15 04:32:58 +01:00
22195b2263 Also add description fields for was_depicted_who 2025-03-14 13:03:38 +01:00
dba2ba182e Add note/description fields for actors and places in events (was_used_who_description, was_used_where_description)
Close #43
2025-03-14 11:41:28 +01:00
dcb06a4b60 Update MDAllowedValueSets 2025-03-14 03:31:04 +01:00
57cae5314f Remove related_place_sure etc
Close #42
2025-03-12 12:17:51 +01:00
02b8fdb15e Add field for tag GND IDs
Close #41
2025-02-27 13:34:40 +01:00
ac6665ce00 Cover markings in selectable fields
Close #39
2025-02-24 16:41:03 +01:00
6e01abc74f Use named parameters for more legible code
Close #40
2025-02-24 16:28:36 +01:00
8f67d9b04d Update git submodules 2025-02-13 23:11:21 +01:00
13 changed files with 870 additions and 1598 deletions

View File

@@ -1,13 +1,13 @@
{ {
"require": { "require": {
"phpmailer/phpmailer": "^6.1", "phpmailer/phpmailer": "*",
"phpunit/phpunit": "^9.4", "phpunit/phpunit": "*",
"phpstan/phpstan": "^1.9", "phpstan/phpstan": "*",
"phpstan/phpstan-strict-rules": "^1.4", "phpstan/phpstan-strict-rules": "*",
"ergebnis/phpstan-rules": "^1.0", "ergebnis/phpstan-rules": "*",
"phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-deprecation-rules": "*",
"spaze/phpstan-disallowed-calls": "^2.9", "spaze/phpstan-disallowed-calls": "*",
"thecodingmachine/phpstan-strict-rules": "^1.0", "thecodingmachine/phpstan-strict-rules": "*",
"phpstan/phpstan-phpunit": "^1.2" "phpstan/phpstan-phpunit": "*"
} }
} }

View File

@@ -1,22 +1,52 @@
parameters: parameters:
ignoreErrors: ignoreErrors:
- -
message: "#^Only booleans are allowed in a ternary operator condition, int\\|false given\\.$#" message: "#^Class MDInvalidNodaLinkException is neither abstract nor final\\.$#"
count: 1 count: 1
path: classes/MDAllowedValueSets/src/enums/MDNodaRepository.php path: classes/MDAllowedValueSets/exceptions/MDInvalidNodaLinkException.php
- -
message: "#^Calling file_get_contents\\(\\) is forbidden, use MD_STD\\:\\:file_get_contents\\(\\) instead$#" message: "#^Class \"MDInvalidNodaLinkLcshIdIsGeneralLoc\" is not allowed to extend \"MDInvalidNodaLinkException\"\\.$#"
count: 1
path: classes/MDAllowedValueSets/exceptions/MDInvalidNodaLinkLcshIdIsGeneralLoc.php
-
message: "#^Class \"MDInvalidNodaLinkLocIdIsSh\" is not allowed to extend \"MDInvalidNodaLinkException\"\\.$#"
count: 1
path: classes/MDAllowedValueSets/exceptions/MDInvalidNodaLinkLocIdIsSh.php
-
message: "#^Match arm comparison between \\$this\\(MDCopyrightCollective\\)&MDCopyrightCollective\\:\\:vg_bildkunst and MDCopyrightCollective\\:\\:vg_bildkunst is always true\\.$#"
count: 3
path: classes/MDAllowedValueSets/src/enums/MDCopyrightCollective.php
-
message: "#^Match expression does not handle remaining values\\: MDMeasurementType\\:\\:height_frame\\|MDMeasurementType\\:\\:height_image_size\\|MDMeasurementType\\:\\:height_sheet_size\\|MDMeasurementType\\:\\:height_socle\\|MDMeasurementType\\:\\:length_frame\\|MDMeasurementType\\:\\:length_image_size\\|MDMeasurementType\\:\\:length_sheet_size\\|MDMeasurementType\\:\\:length_socle\\|MDMeasurementType\\:\\:width_frame\\|MDMeasurementType\\:\\:width_image_size\\|MDMeasurementType\\:\\:width_sheet_size\\|MDMeasurementType\\:\\:width_socle$#"
count: 1
path: classes/MDAllowedValueSets/src/enums/MDMeasurementType.php
-
message: "#^Class MDInvalidNodaLink is neither abstract nor final\\.$#"
count: 1
path: classes/MDErrorReporter/exceptions/updates/MDInvalidNodaLink.php
-
message: "#^Strict comparison using \\=\\=\\= between '35CA0E31F6F44FB5' and null will always evaluate to false\\.$#"
count: 1
path: classes/MDMailer/src/MDMailerHelper.php
-
message: "#^Calling file_get_contents\\(\\) is forbidden, use MD_STD\\:\\:file_get_contents\\(\\) instead\\.$#"
count: 1 count: 1
path: classes/MDTlLoader/src/MDTlLoader.php path: classes/MDTlLoader/src/MDTlLoader.php
- -
message: "#^Calling json_encode\\(\\) is forbidden, use MD_STD\\:\\:json_encode\\(\\) instead$#" message: "#^Calling json_encode\\(\\) is forbidden, use MD_STD\\:\\:json_encode\\(\\) instead\\.$#"
count: 1 count: 1
path: classes/MDTlLoader/src/MDTlLoader.php path: classes/MDTlLoader/src/MDTlLoader.php
- -
message: "#^Calling mkdir\\(\\) is forbidden, use MD_STD\\:\\:mkdir\\(\\) instead$#" message: "#^Calling mkdir\\(\\) is forbidden, use MD_STD\\:\\:mkdir\\(\\) instead\\.$#"
count: 1 count: 1
path: classes/MDTlLoader/src/MDTlLoader.php path: classes/MDTlLoader/src/MDTlLoader.php
@@ -25,53 +55,43 @@ parameters:
count: 3 count: 3
path: classes/MDTlLoader/src/MDTlLoader.php path: classes/MDTlLoader/src/MDTlLoader.php
-
message: "#^Strict comparison using \\!\\=\\= between string and false will always evaluate to true\\.$#"
count: 1
path: classes/MDTlLoader/src/MDTlLoader.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: classes/MDTlLoader/src/MDTlLoader.php
- -
message: "#^Variable variables are not allowed\\.$#" message: "#^Variable variables are not allowed\\.$#"
count: 3 count: 3
path: classes/MDTlLoader/src/MDTlLoader.php path: classes/MDTlLoader/src/MDTlLoader.php
- -
message: "#^Calling file_get_contents\\(\\) is forbidden, use MD_STD\\:\\:file_get_contents\\(\\) instead$#" message: "#^Calling file_get_contents\\(\\) is forbidden, use MD_STD\\:\\:file_get_contents\\(\\) instead\\.$#"
count: 1 count: 1
path: classes/MD_STD/src/MD_STD.php path: classes/MD_STD/src/MD_STD.php
- -
message: "#^Calling json_encode\\(\\) is forbidden, use MD_STD\\:\\:json_encode\\(\\) instead$#" message: "#^Calling json_encode\\(\\) is forbidden, use MD_STD\\:\\:json_encode\\(\\) instead\\.$#"
count: 2 count: 2
path: classes/MD_STD/src/MD_STD.php path: classes/MD_STD/src/MD_STD.php
- -
message: "#^Calling levenshtein\\(\\) is forbidden, use MD_STD\\:\\:levenshtein\\(\\) instead$#" message: "#^Calling levenshtein\\(\\) is forbidden, use MD_STD\\:\\:levenshtein\\(\\) instead\\.$#"
count: 1 count: 1
path: classes/MD_STD/src/MD_STD.php path: classes/MD_STD/src/MD_STD.php
- -
message: "#^Calling mkdir\\(\\) is forbidden, use MD_STD\\:\\:mkdir\\(\\) instead$#" message: "#^Calling mkdir\\(\\) is forbidden, use MD_STD\\:\\:mkdir\\(\\) instead\\.$#"
count: 1 count: 1
path: classes/MD_STD/src/MD_STD.php path: classes/MD_STD/src/MD_STD.php
- -
message: "#^Calling realpath\\(\\) is forbidden, use MD_STD\\:\\:realpath\\(\\) instead$#" message: "#^Calling realpath\\(\\) is forbidden, use MD_STD\\:\\:realpath\\(\\) instead\\.$#"
count: 1 count: 1
path: classes/MD_STD/src/MD_STD.php path: classes/MD_STD/src/MD_STD.php
- -
message: "#^Calling scandir\\(\\) is forbidden, use MD_STD\\:\\:scandir\\(\\) instead$#" message: "#^Calling scandir\\(\\) is forbidden, use MD_STD\\:\\:scandir\\(\\) instead\\.$#"
count: 1 count: 1
path: classes/MD_STD/src/MD_STD.php path: classes/MD_STD/src/MD_STD.php
- -
message: "#^Calling unlink\\(\\) is forbidden, use MD_STD\\:\\:unlink\\(\\) instead$#" message: "#^Calling unlink\\(\\) is forbidden, use MD_STD\\:\\:unlink\\(\\) instead\\.$#"
count: 1 count: 1
path: classes/MD_STD/src/MD_STD.php path: classes/MD_STD/src/MD_STD.php
@@ -91,25 +111,40 @@ parameters:
path: classes/MD_STD/src/MD_STD.php path: classes/MD_STD/src/MD_STD.php
- -
message: "#^Access to static property \\$redis_pw on an unknown class MD_CONF\\.$#" message: "#^Calling move_uploaded_file\\(\\) is forbidden, use MD_STD_IN\\:\\:move_uploaded_file\\(\\) instead\\.$#"
count: 1 count: 1
path: classes/MD_STD/src/MD_STD_CACHE.php path: classes/MD_STD/src/MD_STD_IN.php
- -
message: "#^Strict comparison using \\!\\=\\= between string and false will always evaluate to true\\.$#" message: "#^Variable \\$output in empty\\(\\) always exists and is not falsy\\.$#"
count: 1
path: classes/MD_STD/src/MD_STD_CACHE.php
-
message: "#^Calling move_uploaded_file\\(\\) is forbidden, use MD_STD_IN\\:\\:move_uploaded_file\\(\\) instead$#"
count: 1 count: 1
path: classes/MD_STD/src/MD_STD_IN.php path: classes/MD_STD/src/MD_STD_IN.php
- -
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 4 count: 2
path: classes/MD_STD/src/MD_STD_SEC.php path: classes/MD_STD/src/MD_STD_SEC.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: classes/MD_STD/tests/MD_STD_IN_Test.php
-
message: "#^Calling scandir\\(\\) is forbidden, use MD_STD\\:\\:scandir\\(\\) instead\\.$#"
count: 1
path: classes/MD_STD/tests/MD_STD_Test.php
-
message: "#^Access to undefined constant MDErrorReporter\\:\\:MD_ERROR_KNOWN\\.$#"
count: 1
path: functions/functions.php
-
message: "#^Cannot access constant MD_ERROR_KNOWN on MDErrorReporter\\.$#"
count: 2
path: functions/functions.php
- -
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\) with true and non\\-falsy\\-string will always evaluate to true\\.$#" message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\) with true and non\\-falsy\\-string will always evaluate to true\\.$#"
count: 1 count: 1

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?66b3e80ea9ddf" /> <link rel="stylesheet" type="text/css" href="assets/css/csvxml.min.css?686e75e04ce78" />
<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?66b3e80ea9de1" type="text/javascript" async></script> <script src="assets/js/csvxmlV2.min.js?686e75e04ce79" 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

File diff suppressed because it is too large Load Diff

View File

@@ -32,9 +32,9 @@ final class FieldEntry {
* @param string $explica Explanation. * @param string $explica Explanation.
*/ */
public function __construct( public function __construct(
bool $required, array $allowedValues, bool $required = false, array $allowedValues = [],
array $dependsOn, string $remark, array $dependsOn = [], string $remark = "",
string $name_human_readable, string $explica string $name_human_readable = "", string $explica = ""
) { ) {
$this->required = $required; $this->required = $required;
$this->allowedValues = $allowedValues; $this->allowedValues = $allowedValues;