diff --git a/Classes/Domain/Import/Entity/TouristAttraction.php b/Classes/Domain/Import/Entity/TouristAttraction.php
index 6d39bab..52a1687 100644
--- a/Classes/Domain/Import/Entity/TouristAttraction.php
+++ b/Classes/Domain/Import/Entity/TouristAttraction.php
@@ -45,6 +45,11 @@ class TouristAttraction extends Place implements MapsToType
*/
protected $otherServices = [];
+ /**
+ * @var string[]
+ */
+ protected $museumServices = [];
+
public function getSlogan(): string
{
return $this->slogan;
@@ -71,6 +76,14 @@ class TouristAttraction extends Place implements MapsToType
return $this->otherServices;
}
+ /**
+ * @return string[]
+ */
+ public function getMuseumServices(): array
+ {
+ return $this->museumServices;
+ }
+
/**
* @internal for mapping via Symfony component.
*/
@@ -117,6 +130,21 @@ class TouristAttraction extends Place implements MapsToType
}, $otherService);
}
+ /**
+ * @internal for mapping via Symfony component.
+ * @param string|array $museumService
+ */
+ public function setMuseumService($museumService): void
+ {
+ if (is_string($museumService)) {
+ $museumService = [$museumService];
+ }
+
+ $this->museumServices = array_map(function (string $museumService) {
+ return str_replace('thuecat:', '', $museumService);
+ }, $museumService);
+ }
+
public static function getSupportedTypes(): array
{
return [
diff --git a/Classes/Domain/Import/Typo3Converter/TouristAttraction.php b/Classes/Domain/Import/Typo3Converter/TouristAttraction.php
index 1e37570..bd10b5d 100644
--- a/Classes/Domain/Import/Typo3Converter/TouristAttraction.php
+++ b/Classes/Domain/Import/Typo3Converter/TouristAttraction.php
@@ -117,6 +117,7 @@ class TouristAttraction implements Converter
'address' => $this->getAddress($entity),
'offers' => $this->getOffers($entity),
'other_service' => implode(',', $entity->getOtherServices()),
+ 'museum_service' => implode(',', $entity->getMuseumServices()),
]
);
}
diff --git a/Classes/Domain/Model/Frontend/TouristAttraction.php b/Classes/Domain/Model/Frontend/TouristAttraction.php
index 9e28dbb..b986d3e 100644
--- a/Classes/Domain/Model/Frontend/TouristAttraction.php
+++ b/Classes/Domain/Model/Frontend/TouristAttraction.php
@@ -83,6 +83,11 @@ class TouristAttraction extends AbstractEntity
*/
protected $otherService = '';
+ /**
+ * @var string
+ */
+ protected $museumService = '';
+
public function getTitle(): string
{
return $this->title;
@@ -137,4 +142,9 @@ class TouristAttraction extends AbstractEntity
{
return GeneralUtility::trimExplode(',', $this->otherService, true);
}
+
+ public function getMuseumServices(): array
+ {
+ return GeneralUtility::trimExplode(',', $this->museumService, true);
+ }
}
diff --git a/Configuration/TCA/tx_thuecat_tourist_attraction.php b/Configuration/TCA/tx_thuecat_tourist_attraction.php
index 1439ed9..f61b0e5 100644
--- a/Configuration/TCA/tx_thuecat_tourist_attraction.php
+++ b/Configuration/TCA/tx_thuecat_tourist_attraction.php
@@ -109,6 +109,14 @@ return (static function (string $extensionKey, string $tableName) {
'readOnly' => true,
],
],
+ 'museum_service' => [
+ 'label' => $languagePath . '.museum_service',
+ 'l10n_mode' => 'prefixLangTitle',
+ 'config' => [
+ 'type' => 'input',
+ 'readOnly' => true,
+ ],
+ ],
'opening_hours' => [
'label' => $languagePath . '.opening_hours',
'l10n_mode' => 'exclude',
@@ -192,7 +200,7 @@ return (static function (string $extensionKey, string $tableName) {
],
'types' => [
'0' => [
- 'showitem' => '--palette--;;language, title, description, slogan, start_of_construction, sanitation, other_service, 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, 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 cdeaf65..725f359 100644
--- a/Resources/Private/Language/de.locallang.xlf
+++ b/Resources/Private/Language/de.locallang.xlf
@@ -79,6 +79,19 @@
Zero Other Service
kein sonstiger Service
+
+
+ Museum Shop
+ Museumsshop
+
+
+ Pedagogical Offer
+ Pädagogisches Angebot
+
+
+ Zero Information Museum Service
+ kein weiterer Service
+