Skip to content

Commit 76cd5e2

Browse files
committed
Merge branch 'release-11.0' into pull-request/fix-accessibility-for-record-tabs-in-v11
2 parents 1861227 + d5617a5 commit 76cd5e2

File tree

24 files changed

+210
-83
lines changed

24 files changed

+210
-83
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
"league/oauth1-client": "1.11.0",
9191
"league/oauth2-client": "^2.7",
9292
"league/oauth2-server": "^9.2",
93+
"lm-commons/lmc-rbac": "2.1.1",
9394
"lm-commons/lmc-rbac-mvc": "4.1.1",
9495
"matthiasmullie/minify": "1.3.75",
9596
"monolog/monolog": "^3.9",

composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

languages/de.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ Holdings at Other Libraries = "Exemplare in anderen Bibliotheken"
696696
holdings_details_from = "Bestandsangaben von %%location%%"
697697
Holdings_notes = "Anmerkungen"
698698
Holds = "Bestellungen"
699-
Holds and Recalls = "Bestellungen/Vormerkungen"
699+
Holds and Recalls = "Bestellungen und Vormerkungen"
700700
Home = "Home"
701701
home_browse_by_facet = "Stöbern %%facet%%"
702702
HTML Full Text = "HTML Volltext"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UPDATE audit_event SET data = JSON_UNQUOTE(data);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UPDATE audit_event SET data = (data #>> '{}')::json;

module/VuFind/src/VuFind/Config/Upgrade.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -494,17 +494,6 @@ protected function upgradeConfig(string $newVersion): void
494494
. ' please review your config.ini.'
495495
);
496496
}
497-
if (isset($newConfig['GoogleAnalytics']['apiKey'])) {
498-
if (
499-
!isset($newConfig['GoogleAnalytics']['universal'])
500-
|| !$newConfig['GoogleAnalytics']['universal']
501-
) {
502-
$this->addWarning(
503-
'The [GoogleAnalytics] universal setting is off. See config.ini '
504-
. 'for important information on how to upgrade your Analytics.'
505-
);
506-
}
507-
}
508497

509498
// Upgrade CAPTCHA Options
510499
$legacySettingsMap = [

module/VuFind/src/VuFind/Db/Entity/AuditEvent.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ class AuditEvent implements AuditEventEntityInterface
157157
/**
158158
* Additional data (JSON).
159159
*
160-
* @var ?string
160+
* @var ?array
161161
*/
162162
#[ORM\Column(name: 'data', type: 'json', nullable: true)]
163-
protected ?string $data = null;
163+
protected ?array $data = null;
164164

165165
/**
166166
* Constructor
@@ -417,21 +417,21 @@ public function setMessage(?string $message): static
417417
/**
418418
* Get additional data.
419419
*
420-
* @return ?string
420+
* @return ?array
421421
*/
422-
public function getData(): ?string
422+
public function getData(): ?array
423423
{
424424
return $this->data;
425425
}
426426

427427
/**
428428
* Set additional data.
429429
*
430-
* @param ?string $data Data
430+
* @param ?array $data Data
431431
*
432432
* @return static
433433
*/
434-
public function setData(?string $data): static
434+
public function setData(?array $data): static
435435
{
436436
$this->data = $data;
437437
return $this;

module/VuFind/src/VuFind/Db/Entity/AuditEventEntityInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,16 +214,16 @@ public function setMessage(?string $message): static;
214214
/**
215215
* Get additional data.
216216
*
217-
* @return ?string
217+
* @return ?array
218218
*/
219-
public function getData(): ?string;
219+
public function getData(): ?array;
220220

221221
/**
222222
* Set additional data.
223223
*
224-
* @param ?string $data Data
224+
* @param ?array $data Data
225225
*
226226
* @return static
227227
*/
228-
public function setData(?string $data): static;
228+
public function setData(?array $data): static;
229229
}

module/VuFind/src/VuFind/Db/Migration/MigrationLoader.php

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ public function getMigrationsFromDir(string $path): array
7272
/**
7373
* Give an array of migration subdirectories appropriate for the requested old version.
7474
*
75+
* The subdirectories are returned in the order they should be processed.
76+
*
7577
* @param string $oldVersion Version we are migrating from
7678
* @param string $basePath Migration file base path
7779
*
@@ -85,16 +87,29 @@ public function getMigrationSubdirectoriesMatchingVersion(string $oldVersion, st
8587
}
8688

8789
// Find version-appropriate subdirectories in the migration directory:
88-
return array_values(
89-
array_filter(
90-
glob("$basePath/*"),
91-
function ($path) use ($oldVersion) {
92-
$parts = explode('/', $path);
93-
$version = array_pop($parts);
94-
return preg_match('/^\d/', $version) && Comparator::greaterThanOrEqualTo($version, $oldVersion);
95-
}
96-
)
90+
$directories = array_filter(
91+
glob("$basePath/*"),
92+
function ($path) use ($oldVersion) {
93+
$parts = explode(DIRECTORY_SEPARATOR, $path);
94+
$version = array_pop($parts);
95+
return preg_match('/^\d/', $version) && Comparator::greaterThanOrEqualTo($version, $oldVersion);
96+
}
97+
);
98+
99+
usort(
100+
$directories,
101+
function ($a, $b): int {
102+
$aParts = explode(DIRECTORY_SEPARATOR, $a);
103+
$bParts = explode(DIRECTORY_SEPARATOR, $b);
104+
$aVersion = end($aParts);
105+
$bVersion = end($bParts);
106+
return $aVersion === $bVersion
107+
? $a <=> $b
108+
: (Comparator::greaterThan($aVersion, $bVersion) ? 1 : -1);
109+
}
97110
);
111+
112+
return $directories;
98113
}
99114

100115
/**

module/VuFind/src/VuFind/Db/Migration/MigrationManager.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ public function getMigrations(string $oldVersion): array
173173
foreach ($subDirectories as $next) {
174174
$matches = array_merge($matches, $this->getNeededMigrationsFromDir($next));
175175
}
176-
natsort($matches);
177176
return array_values($matches);
178177
}
179178

0 commit comments

Comments
 (0)