Commit graph

135 commits

Author SHA1 Message Date
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
7f6bd13628
Remove deprecated usage of StringUtility::endsWith() (#70)
This is deprecated in newer PHP versions, one should use native
str_ends_with() instead.

We remove the deprecation by using this function. But we also support
older PHP versions, so we add symfony/polyfill-php80 as dependency to
always ensure this function exists.
2022-09-13 09:44:54 +02:00
e71cfe13e7
Remove leftover config file (#69)
The dependency for checking dependencies already got removed.
2022-09-13 09:25:27 +02:00
78311066e2
Add changelog for upcoming 1.3.0 release (#68) 2022-09-13 09:15:04 +02:00
Benjamin Franzke
9bdb998f6d
Use decorator pattern for RequestFactory (#54)
The implementation of the TYPO3 RequestFactory and Uri classes is
internal API.

It is therefore better to decorate the PSR-17 interfaces instead
of extending or using the TYPO3 implementation directly.
2022-09-13 09:09:43 +02:00
2e4c9cc04e
Add TYPO3 v11 support (#60)
* Support generation of code coverage generation
* Remove useless caching within GitHub
* Add TYPO3 11.5 within CI
* Update phpstan

Replace friendsoftypo3/phpstan-typo3 with saschaegerer/phpstan.
The friendsoftypo3 is intended for TYPO3 itself, while saschaegerer is
intended for community.
Also update all related packages.
Fix some new findings and update baseline.

* Run composer none interactive in CI
* Remove dependency checker
* Migrate tests to no longer use legacy dependencies
* https://forge.typo3.org/issues/97479
* Fix phpstan findings
2022-09-13 09:05:47 +02:00
09682b1896
Prepare Release 1.2.2 (#67) 2022-04-11 16:24:10 +02:00
Carlos Pozo
62b2c5d0c7
Fix conditional and enhance OpeningHours (#66)
Co-authored-by: Daniel Siepmann <coding@daniel-siepmann.de>
2022-04-11 16:16:51 +02:00
2de3a752cb
Prepare release of 1.2.1 (#65) 2022-04-11 09:57:51 +02:00
Carlos Pozo
d71e785d8f
Add class identifier and services condition to templates (#63) 2022-04-11 09:26:32 +02:00
79bda0ce72 Prepare release of 1.2.0 2022-03-08 09:50:30 +01:00
Carlos Pozo
46df4f4028
Improve detail view templates
Adapt detail view template for Bootstrap usage.
Provide proper out-of-the-box integration.
2022-03-08 08:27:18 +00:00
9527c34c8d Update phpstan baseline 2022-03-08 08:35:53 +01:00
e1b515c0c5 Allow execution of composer plugins 2022-03-08 08:35:53 +01:00
a823255501 Add changelog 2021-11-29 11:16:06 +01:00
Dirk Koritnik
c97a7f59ad Add french translation file 2021-11-29 11:09:41 +01:00
69f4d6f922 Fix pipeline
Keep old behaviour of PHPStan.
2021-11-29 10:59:35 +01:00
Dirk Koritnik
46868e4857 new version number 2021-09-14 15:13:10 +02:00
Dirk Koritnik
d23f023aa1
Add Twitter Bootstrap markup to templates (#50)
This allows out of the box integration into websites using the Twitter
Bootstrap Frontend Framework.

Resolves: #11
2021-09-14 15:02:16 +02:00
355e4717b0
Support PublicHolidays for opening hours (#51)
DayOfWeek is an enum as defined at https://schema.org/DayOfWeek
We missed the PublicHolidays enum value when building
`getDaysOfWeekWithMondayFirstWeekDay()` which is used in templates to
get ordered result.
Opening hours for public holidays were not rendered, which is now fixed.
2021-09-14 14:51:14 +02:00
e8a44c555a
Sort offers by type (#52)
That ensures grouped output of related offers.
Offers are not sorted in any way and might end up in entry, parking,
entry, etc. Sorting ensures all of same type are rendered one after the
other, entry, entry, parking.

Sorting is done by alphabet on the technical enum value.
2021-09-14 14:39:28 +02:00
185dcab2bc
Add Offer Type (#49) 2021-09-13 10:32:12 +02:00
056c8c7947 Add PHP 7.2 support
Add official support of PHP 7.2.

Downgrade dev tools to 7.2 compatible version.
2021-09-09 15:16:30 +02:00