Commit graph

157 commits

Author SHA1 Message Date
8a2c543ab2
Update .gitignore 2023-11-30 13:42:42 +01:00
109c9dc738
Prepare v3.0.0 release 2023-11-30 13:42:42 +01:00
f69db97990
Support translated offers (#115) 2023-08-30 14:21:25 +02:00
651fc17fd9
Respect possible arrays in accessibility certification (#114) 2023-08-30 14:14:51 +02:00
1a0ba50125
Fix broken test handling for log files (#113) 2023-08-30 12:06:52 +02:00
8663d5a759
Add support for additional images added via TYPO3 (#112)
Some installations might need to add further images
to records imported from ThüCAT.
The records are now extended to support adding images by editors.
The images are not touched during import.
The images are also ignored during clean ups,
the editor is in full control.

This feature for now is only added to tourist attractions by default.
The feature is implemented in a way that all objects extending the
``WerkraumMedia\ThueCat\Domain\Model\Frontend\Base`` class are usable
by adding an ``editorial_images`` field to their table.
2023-08-29 13:54:16 +02:00
2a39dc7753
Catch mapping exceptions during converting entities. (#109)
Those are handled the same way,
the entity is skipped and errors are logged.
That way further entities can be imported
while only none working entities are skipped.

Relates: #10653
2023-08-29 11:56:06 +02:00
773098623e Add command to allow import of a single configuration.
The command is also available as scheduler task.
This finally allows to regularly execute imports.
This also allows to import from CLI context
with differently configured timeouts.
2023-08-29 11:04:22 +02:00
cc072f0683 Remove acceptance tests from CI
As they currently fail, while they work locally.
Looks like an issue with GitHub Actions.
2023-08-29 07:36:18 +02:00
230a2358c4 Update baseline
The new TYPO3 version lead to a new phpstan finding which we ignore for
now.
2023-08-29 07:36:18 +02:00
29357d8abd Update shell.nix
Use same setup as on other projects and expose php and composer to
shell for development.
2023-08-29 07:36:18 +02:00
4cb2b9ad80
Allow to execute update wizard within web ui (#108)
The wizard will use makeInstance() instead of DI.
The DI worked on CLI, but not web ui.
This approach now also works within web ui.
2023-02-02 11:41:10 +01:00
2bf18536cc
!!!|Add acceptance tests for TYPO3 Backend and PHP 8.x (#107) 2023-01-31 07:51:13 +01:00
6f98b353fe
!!!|Own module group (#106)
Add own module group and migrate old menu to different modules.
This should improve user experience as most users are used to modules
and are not aware of the dropdown menu.

Rename Overview controller to Configuration controller
As it handled configurations.
This streamlines with labels and identifiers.
2023-01-30 15:51:17 +01:00
45eda76e98
Fix PHP Warning (#92)
First check for existence before accessing.
The ObjectStorage itself has no check which will result in an PHP
warning due to accessing a none existing array key.

Relates: #10197
2023-01-05 14:51:07 +01:00
928f42e7fc
Add merged opening hours (#104)
This allows to fetch merged opening hours instead of actually edited
opening hours.
They will be merged per valid time span.
The data structure is a bit different as each time span has a list of
week days, each with its own open and end.

Relates: #10246
2023-01-05 09:30:23 +00:00
6a049366b9
Replace Icons again (#105)
This time with optimized exported SVG variants.

Relates: #10229
2023-01-05 10:02:56 +01:00
94e1eba741
Respect givenName and familyName of media authors (#103)
Only name was respected until now.

Relates: #10247
2023-01-04 07:33:48 +01:00
d9a7153c05
Configure EXT:scheduler table garbage collection (#102)
Add configuration to clean up garbage of old import records.

Relates: #10244
2023-01-03 10:42:33 +01:00
f41b8448c5
Extend test cases for parking facility sorting (#101) 2022-12-19 15:18:53 +01:00
723ea3b512
Skip import of none mappable objects (#100)
The schema is very flexible and some values are not validated upfront.
This will result in many objects which we currently can not map.
This resulted in an exception breaking the rest of the import.
We now handle the broken mapping and skip those objects with proper
logging.
This allows to continue with import and report and debug those objects
in order to improve the mapping step by step.

Relates: #10198
2022-12-15 12:41:35 +01:00
61ae59c127
Add new import configuration based on containsPlace (#98)
Adds a new type of import configuration.
This configuration allows to define a single resource.
All the resources referenced via schema:containsPlace will be imported.

Relates: #10237
2022-12-15 10:42:41 +01:00
d7c7d8eaee Do not break during import on openingHours presence
The objects might have an openingHours property.
This would break as our internal name would match during symfony
serialization.

We now use the expected property name.
2022-12-14 15:52:38 +01:00
4f81120aee Properly handle single valued meansOfTransport
We will turn a single string into an array to always have the same
structure.
2022-12-14 15:52:38 +01:00
17cb4b390d
Change icons (#94)
Relates: #10231
2022-12-13 15:02:25 +01:00
15db95f7b6
Respect editorial sorting of attractions within content element (#97)
Relates: #10206
2022-12-12 14:12:32 +01:00
6b289db27c
Support types of public transport (#96)
Add a list of types to distance to public transport.

Relates: #10223
2022-12-12 13:51:08 +01:00
f194220153
Provide method to get parking facilities sorted by alphabet (#95)
Relates: #10230
2022-12-12 13:35:16 +01:00
49fcf40bc8
Allow to hide parking facilities (#93)
The ctrl configuration already existed, just the corresponding column
configuration was missing.
It is now possible to hide and unhide the records within TYPO3 as usual.

Relates: #10230
2022-12-12 13:02:10 +01:00
bfa67d3514
Filter out duplicate media (#91)
Relates: #10194
2022-11-30 10:35:44 +01:00
fd9507b525
Add label for url (#90)
Mostlikely URLs should not be rendered but a label "url".
This is now added to the extension.
2022-11-30 10:00:04 +01:00
b09a57ad38
Fix wrong German label (#89) 2022-11-30 09:43:46 +01:00
6c119f28af
Allow to get all images except main image (#88)
Relates: #10194
2022-11-29 11:56:53 +01:00
20dc69694d
Add URL to tourist attraction (#87)
The tourist attraction can have an URL to their own website.
This URL is now imported and provided to templates.

Relates: #10193
2022-11-29 11:50:22 +01:00
35398b49c7
Improve opening hours (#86)
Strip off seconds from strings.
Prepare code to easily provide a structured data to allow integrators to
format timing differently.
Provide a method to easily check if an opening hour is only valid for a
single day.

Relates: #10185
2022-11-29 10:02:44 +01:00
0c9700cf42
Allow to import configurations via backend module again (#85)
This broke with introduction of latest import date.
This could not be validated, but we do not need validation anyway and
therefore turn it off.

Relates: #9266
2022-11-28 15:36:26 +01:00
8acbe136d4
Add special opening hours (#84)
It is possible to define special opening hours, e.g. for holidays.
Those are now also imported and provided to the templates.

Relates: #10185
2022-11-28 11:06:54 +01:00
672f78a5dc
Filter and sort opening hours (#83)
Opening hours are filtered. Opening hours from the past are no longer
available.
Opening hours are sorted. Newer opening hours are shown last.

Relates: #10185
2022-11-24 15:55:50 +01:00
4cb1cf1438
Import image author beside image license author (#82)
This allows to use a fallback.
Some maintain the actual copyright as author instead of license author.

Relates: #10183
2022-11-24 11:05:13 +01:00
c814dff4a0
Remove GitHub action cache (#81)
We never set it up properly and it has deprecated features.
2022-10-24 10:15:21 +02:00
fd8e43a96a
Update GitHub checkout action (#80)
Necessary as v2 uses old NodeJS which is deprecated.
2022-10-24 10:09:07 +02:00
48eec144c1
Add example integration of data processor for menus to documentation (#79) 2022-10-05 13:49:51 +02:00
5447b95c0a
Show last import time beside each import configuration in backend module (#77) 2022-09-29 15:17:06 +02:00
0ae738c1f2
Remove sqlite tests from CI (#78)
Save environment, most people will not use sqlite anyway.
2022-09-29 15:12:41 +02:00
cf78488023
Move 1.3.1 to 1.3.0 (#76)
We did not release 1.3.0 yet, so move all 1.3.1 things to 1.3.0.
2022-09-29 14:50:27 +02:00
2fd4b1bc2f
Handle multiple offerType values (#75)
The import resulted in an exception if there was an array of types
instead of a string.
Both situations are now handled and API of models is kept.
Existing imported data is also kept.
2022-09-29 14:33:19 +02:00
4a3eb42c73
Allow to import things organised by generic organisations (#74)
Not all things are managed by TouristMarketingCompany, some are managed
by generic organisations.
Those are now handled the same way as TouristMarketingCompany are
already handled.

That way those things can also be imported, as they now can import their
manager.
2022-09-29 14:10:36 +02:00
11292c2e18
Remove API Key from site configuration (#72)
The key is configured via Extension Configuration.
Documentation and code match, but we still extended the site
configuration.

Resolves: #55
2022-09-14 11:23:32 +02:00
65f4ef991e
Fix PHP warning of accessing invalid array key (#73) 2022-09-14 11:23:17 +02:00
bafac003fc
Remove warnings from documentation rendering (#71)
Remove not used file.
Adjust installation to respect changed official docs.
2022-09-13 10:01:15 +02:00