Compare commits

40 Commits

Author SHA1 Message Date
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
6e41153a82 Update git submodules 2025-01-22 15:39:37 +01:00
f8656d4178 Update git submodules 2025-01-04 23:02:18 +01:00
0381f349d6 Update translation files 2024-12-10 22:12:47 +01:00
cf0c7d75da Update git submodules 2024-11-28 09:35:51 +01:00
1415884ebc Update git submodules 2024-10-21 01:30:00 +02:00
99fb3f6afb Update git submodules 2024-09-15 16:13:18 +02:00
818cb7dab6 Add fields for new event types 2024-08-07 23:37:39 +02:00
5677cc051a Upgrade papa parse to v5.4.1
Close #38
2024-07-01 17:50:36 +02:00
fa4b563532 Update MD_STD 2024-07-01 00:46:21 +02:00
af65bd99da Update git submodules 2024-06-19 23:19:07 +02:00
66a94fcf9f Add symlink to phpcs 2024-06-11 13:31:17 +02:00
6eba06808a Add new fields for place and actor wikidata IDs 2024-06-06 12:30:24 +02:00
34c2b5618b Update git submodules 2024-06-06 12:30:06 +02:00
47f52c4a10 Update git submodules 2024-03-26 01:23:50 +01:00
35843ee590 Remove dependency of event actor to actor certainty
Close #36
2024-02-19 18:04:47 +01:00
e62e36a68c Update git submodules 2024-02-19 14:38:19 +01:00
36457a6d0c Update MDErrorReporter 2023-10-27 09:12:50 +02:00
fa53ec387a Update git submodules 2023-10-19 17:26:23 +02:00
0873302e5e Add missing event types 2023-10-19 01:02:48 +02:00
e7887ac1c7 Cover musdb's acquisitions
Close #35
2023-09-10 03:10:21 +02:00
befe228396 Cover new fields: form, color, sex 2023-09-01 13:02:11 +02:00
d13972229f Update phpstan baseline 2023-08-16 22:49:56 +02:00
91186de676 Update git submodules 2023-08-16 22:49:08 +02:00
54f146831f Make separated measurement types (length, width) usable independent of each other
Close #33
2023-08-14 22:52:41 +02:00
80785406bb Recompile app after update of translation files 2023-08-04 13:43:25 +02:00
726146eb2a Add some explanations in tooltips missing thus far 2023-08-04 13:38:03 +02:00
21 changed files with 875 additions and 1418 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": "*"
} }
} }

1
phpcs.xml Symbolic link
View File

@ -0,0 +1 @@
classes/MD_QA/rules/md_phpcs_rules.xml

View File

@ -1,22 +1,52 @@
parameters: parameters:
ignoreErrors: ignoreErrors:
- -
message: "#^Calling file_get_contents\\(\\) is forbidden, use MD_STD\\:\\:file_get_contents\\(\\) instead$#" message: "#^Class MDInvalidNodaLinkException is neither abstract nor final\\.$#"
count: 1
path: classes/MDAllowedValueSets/exceptions/MDInvalidNodaLinkException.php
-
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
path: classes/MDTlLoader/src/MDTlLoader.php
-
message: "#^Method Redis\\:\\:connect\\(\\) invoked with 7 parameters, 1\\-6 required\\.$#"
count: 1 count: 1
path: classes/MDTlLoader/src/MDTlLoader.php path: classes/MDTlLoader/src/MDTlLoader.php
@ -25,58 +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
path: classes/MD_STD/src/MD_STD.php
-
message: "#^Method MD_STD\\:\\:get_user_lang\\(\\) should return non\\-empty\\-string but returns string\\.$#"
count: 1 count: 1
path: classes/MD_STD/src/MD_STD.php path: classes/MD_STD/src/MD_STD.php
@ -96,40 +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: "#^Method MD_STD_CACHE\\:\\:serve_page_through_redis_cache\\(\\) has parameter \\$redis with a nullable type declaration\\.$#" message: "#^Variable \\$output in empty\\(\\) always exists and is not falsy\\.$#"
count: 1
path: classes/MD_STD/src/MD_STD_CACHE.php
-
message: "#^Method MD_STD_CACHE\\:\\:serve_page_through_redis_cache\\(\\) has parameter \\$redis with null as default value\\.$#"
count: 1
path: classes/MD_STD/src/MD_STD_CACHE.php
-
message: "#^Method Redis\\:\\:connect\\(\\) invoked with 7 parameters, 1\\-6 required\\.$#"
count: 1
path: classes/MD_STD/src/MD_STD_CACHE.php
-
message: "#^Strict comparison using \\!\\=\\= between string and false will always evaluate to true\\.$#"
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

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,2 @@
Last update: 2024-07-01
v5.4.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?6480afe43ba90" /> <link rel="stylesheet" type="text/css" href="assets/css/csvxml.min.css?68373532391e5" />
<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?6480afe43ba91" type="text/javascript" async></script> <script src="assets/js/csvxmlV2.min.js?68373532391e7" 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;