diff --git a/Classes/Domain/Import/Entity/TouristAttraction.php b/Classes/Domain/Import/Entity/TouristAttraction.php
index 40455b9..c2f6626 100644
--- a/Classes/Domain/Import/Entity/TouristAttraction.php
+++ b/Classes/Domain/Import/Entity/TouristAttraction.php
@@ -55,6 +55,11 @@ class TouristAttraction extends Place implements MapsToType
*/
protected $architecturalStyles = [];
+ /**
+ * @var string[]
+ */
+ protected $trafficInfrastructures = [];
+
public function getSlogan(): string
{
return $this->slogan;
@@ -97,6 +102,14 @@ class TouristAttraction extends Place implements MapsToType
return $this->architecturalStyles;
}
+ /**
+ * @return string[]
+ */
+ public function getTrafficInfrastructures(): array
+ {
+ return $this->trafficInfrastructures;
+ }
+
/**
* @internal for mapping via Symfony component.
*/
@@ -173,6 +186,21 @@ class TouristAttraction extends Place implements MapsToType
}, $architecturalStyle);
}
+ /**
+ * @internal for mapping via Symfony component.
+ * @param string|array $trafficInfrastructure
+ */
+ public function setTrafficInfrastructure($trafficInfrastructure): void
+ {
+ if (is_string($trafficInfrastructure)) {
+ $trafficInfrastructure = [$trafficInfrastructure];
+ }
+
+ $this->trafficInfrastructures = array_map(function (string $trafficInfrastructure) {
+ return str_replace('thuecat:', '', $trafficInfrastructure);
+ }, $trafficInfrastructure);
+ }
+
public static function getSupportedTypes(): array
{
return [
diff --git a/Classes/Domain/Import/Typo3Converter/TouristAttraction.php b/Classes/Domain/Import/Typo3Converter/TouristAttraction.php
index 1db3219..62d0591 100644
--- a/Classes/Domain/Import/Typo3Converter/TouristAttraction.php
+++ b/Classes/Domain/Import/Typo3Converter/TouristAttraction.php
@@ -119,6 +119,7 @@ class TouristAttraction implements Converter
'other_service' => implode(',', $entity->getOtherServices()),
'museum_service' => implode(',', $entity->getMuseumServices()),
'architectural_style' => implode(',', $entity->getArchitecturalStyles()),
+ 'traffic_infrastructure' => implode(',', $entity->getTrafficInfrastructures()),
]
);
}
diff --git a/Classes/Domain/Model/Frontend/TouristAttraction.php b/Classes/Domain/Model/Frontend/TouristAttraction.php
index df0638c..fb9a614 100644
--- a/Classes/Domain/Model/Frontend/TouristAttraction.php
+++ b/Classes/Domain/Model/Frontend/TouristAttraction.php
@@ -93,6 +93,11 @@ class TouristAttraction extends AbstractEntity
*/
protected $architecturalStyle = '';
+ /**
+ * @var string
+ */
+ protected $trafficInfrastructure = '';
+
public function getTitle(): string
{
return $this->title;
@@ -157,4 +162,9 @@ class TouristAttraction extends AbstractEntity
{
return GeneralUtility::trimExplode(',', $this->architecturalStyle, true);
}
+
+ public function getTrafficInfrastructures(): array
+ {
+ return GeneralUtility::trimExplode(',', $this->trafficInfrastructure, true);
+ }
}
diff --git a/Configuration/TCA/tx_thuecat_tourist_attraction.php b/Configuration/TCA/tx_thuecat_tourist_attraction.php
index 47f185a..0d32930 100644
--- a/Configuration/TCA/tx_thuecat_tourist_attraction.php
+++ b/Configuration/TCA/tx_thuecat_tourist_attraction.php
@@ -125,6 +125,14 @@ return (static function (string $extensionKey, string $tableName) {
'readOnly' => true,
],
],
+ 'traffic_infrastructure' => [
+ 'label' => $languagePath . '.traffic_infrastructure',
+ 'l10n_mode' => 'prefixLangTitle',
+ 'config' => [
+ 'type' => 'input',
+ 'readOnly' => true,
+ ],
+ ],
'opening_hours' => [
'label' => $languagePath . '.opening_hours',
'l10n_mode' => 'exclude',
@@ -208,7 +216,7 @@ return (static function (string $extensionKey, string $tableName) {
],
'types' => [
'0' => [
- 'showitem' => '--palette--;;language, title, description, slogan, start_of_construction, sanitation, other_service, museum_service, architectural_style, opening_hours, offers, address, media, remote_id, --div--;' . $languagePath . '.tab.relations, town, managed_by',
+ 'showitem' => '--palette--;;language, title, description, slogan, start_of_construction, sanitation, other_service, museum_service, architectural_style, traffic_infrastructure, opening_hours, offers, address, media, remote_id, --div--;' . $languagePath . '.tab.relations, town, managed_by',
],
],
];
diff --git a/Resources/Private/Language/de.locallang.xlf b/Resources/Private/Language/de.locallang.xlf
index 38b4325..132ad83 100644
--- a/Resources/Private/Language/de.locallang.xlf
+++ b/Resources/Private/Language/de.locallang.xlf
@@ -217,6 +217,35 @@
Zero Information Architectural Style
keine Angabe
+
+
+ Bicycle Lockers
+ Fahrradboxen
+
+
+ Bicycle Stands Bicycle Lockers
+ Fahrradständer / -boxen
+
+
+ Bicycle Stands
+ Fahrradständer
+
+
+ Bus Park Coach Park
+ Bushaltepunkt (für Ein- und Ausstieg) vorhanden
+
+
+ Ebike Charging Station
+ E-Bike-Ladestation
+
+
+ Electric Vehicle Car Charging Station
+ E-Auto-Ladestation
+
+
+ Zero Special Traffic Infrastructure
+ keine Angabe
+