diff --git a/tests/RecordManagerTest/Base/Utils/XslTransformationTest.php b/tests/RecordManagerTest/Base/Utils/XslTransformationTest.php new file mode 100644 index 000000000..b2abf0141 --- /dev/null +++ b/tests/RecordManagerTest/Base/Utils/XslTransformationTest.php @@ -0,0 +1,128 @@ + + * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License + * @link https://github.com/NatLibFi/RecordManager + */ + +namespace RecordManagerTest\Base\Utils; + +use RecordManager\Base\Utils\XslTransformation; +use RecordManagerTest\Base\Feature\FixtureTrait; + +/** + * XmlTransformation tests + * + * @category DataManagement + * @package RecordManager + * @author Minna Rönkä + * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License + * @link https://github.com/NatLibFi/RecordManager + */ +class XslTransformationTest extends \PHPUnit\Framework\TestCase +{ + use FixtureTrait; + + /** + * Test LIDO-EDM transformation with image + * + * @return void + */ + public function testLido2EdmTransformationWithImage() + { + $xslTransformation = $this->getXslTransformation('lido2edm_image.properties'); + $lidoRecord = $this->getFixture('utils/XslTransformation/lido_image.xml'); + $expectedEdm = $this->getFixture('utils/XslTransformation/lido_image_edm.xml'); + $transformedEdm = $xslTransformation->transform($lidoRecord); + $this->assertSame($expectedEdm, $transformedEdm); + } + + /** + * Test LIDO-EDM transformation with video + * + * @return void + */ + public function testLido2EdmTransformationWithVideo() + { + $xslTransformation = $this->getXslTransformation('lido2edm_video.properties'); + $lidoRecord = $this->getFixture('utils/XslTransformation/lido_video.xml'); + $expectedEdm = $this->getFixture('utils/XslTransformation/lido_video_edm.xml'); + $transformedEdm = $xslTransformation->transform($lidoRecord); + $this->assertSame($expectedEdm, $transformedEdm); + } + + /** + * Test LIDO-EDM transformation with text + * + * @return void + */ + public function testLido2EdmTransformationWithText() + { + $xslTransformation = $this->getXslTransformation('lido2edm_text.properties'); + $lidoRecord = $this->getFixture('utils/XslTransformation/lido_text.xml'); + $expectedEdm = $this->getFixture('utils/XslTransformation/lido_text_edm.xml'); + $transformedEdm = $xslTransformation->transform($lidoRecord); + $this->assertSame($expectedEdm, $transformedEdm); + } + + /** + * Test LIDO-EDM transformation with 3D + * + * @return void + */ + public function testLido2EdmTransformationWith3D() + { + $xslTransformation = $this->getXslTransformation('lido2edm_3D.properties'); + $lidoRecord = $this->getFixture('utils/XslTransformation/lido_3D.xml'); + $expectedEdm = $this->getFixture('utils/XslTransformation/lido_3D_edm.xml'); + $transformedEdm = $xslTransformation->transform($lidoRecord); + $this->assertSame($expectedEdm, $transformedEdm); + } + + /** + * Create XmlTransformation + * + * @param string $config Transformation config file name + * + * @return XslTransformation + */ + protected function getXslTransformation(string $config) + { + return new XslTransformation( + $this->getConfigDir(), + $config + ); + } + + /** + * Get config directory + * + * @return string + */ + protected function getConfigDir() + { + return $this->getFixtureDir() . 'config/xsltransformationtest/transformations'; + } +} diff --git a/tests/fixtures/Base/config/xsltransformationtest/transformations/europeana-license.xsl b/tests/fixtures/Base/config/xsltransformationtest/transformations/europeana-license.xsl new file mode 100644 index 000000000..4918e2a1b --- /dev/null +++ b/tests/fixtures/Base/config/xsltransformationtest/transformations/europeana-license.xsl @@ -0,0 +1,47 @@ + + + + + + + + + + + + http://creativecommons.org/licenses/ + + + + / + + / + + + + + http://creativecommons.org/publicdomain/mark/1.0/ + + + + + http://creativecommons.org/publicdomain/zero/1.0/ + + + + + http://rightsstatements.org/vocab/InC/1.0/ + + + + + http://rightsstatements.org/vocab/CNE/1.0/ + + + + + + + + + diff --git a/tests/fixtures/Base/config/xsltransformationtest/transformations/lido2edm.xsl b/tests/fixtures/Base/config/xsltransformationtest/transformations/lido2edm.xsl new file mode 100644 index 000000000..bcf0a3fd3 --- /dev/null +++ b/tests/fixtures/Base/config/xsltransformationtest/transformations/lido2edm.xsl @@ -0,0 +1,1144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3D + + + VIDEO + + + SOUND + + + IMAGE + + + TEXT + + + IMAGE + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/Base/config/xsltransformationtest/transformations/lido2edm_3D.properties b/tests/fixtures/Base/config/xsltransformationtest/transformations/lido2edm_3D.properties new file mode 100644 index 000000000..b11b04005 --- /dev/null +++ b/tests/fixtures/Base/config/xsltransformationtest/transformations/lido2edm_3D.properties @@ -0,0 +1,30 @@ +; XSLT Export Settings for EDM format +[General] +; REQUIRED: Name of XSLT file to apply. Path is relative to the transformations directory +; of the RecordManager installation. +xslt = lido2edm.xsl +; OPTIONAL: PHP function(s) to register for use within XSLT file. You may repeat +; this line to register multiple PHP functions. +php_function[] = str_replace +php_function[] = rawurlencode +php_function[] = mb_strtolower +; OPTIONAL: PHP class filled with public static functions for use by the XSLT file. +; The class name must match the filename, and the file must exist in the transformations +; directory of the RecordManager installation. You may repeat this line to load multiple +; custom classes. +;custom_class[] = +;custom_class[] = + +; XSLT parameters -- any key/value pairs set here will be passed as parameters to +; the XSLT file, allowing local values to be set without modifying XSLT code. +[Parameters] +; Finna datasource name +museum = "testmuseum" +; Name of the aggregator +provider = "National Library of Finland" +; Name of the museum +data_provider = "Test Museum" +; Default content type if more specific type is missing +default_type = "Museum object" +; URL to the preferred Finna view +sourceURL = "Sketchfab" diff --git a/tests/fixtures/Base/config/xsltransformationtest/transformations/lido2edm_image.properties b/tests/fixtures/Base/config/xsltransformationtest/transformations/lido2edm_image.properties new file mode 100644 index 000000000..a1f330da1 --- /dev/null +++ b/tests/fixtures/Base/config/xsltransformationtest/transformations/lido2edm_image.properties @@ -0,0 +1,30 @@ +; XSLT Export Settings for EDM format +[General] +; REQUIRED: Name of XSLT file to apply. Path is relative to the transformations directory +; of the RecordManager installation. +xslt = lido2edm.xsl +; OPTIONAL: PHP function(s) to register for use within XSLT file. You may repeat +; this line to register multiple PHP functions. +php_function[] = str_replace +php_function[] = rawurlencode +php_function[] = mb_strtolower +; OPTIONAL: PHP class filled with public static functions for use by the XSLT file. +; The class name must match the filename, and the file must exist in the transformations +; directory of the RecordManager installation. You may repeat this line to load multiple +; custom classes. +;custom_class[] = +;custom_class[] = + +; XSLT parameters -- any key/value pairs set here will be passed as parameters to +; the XSLT file, allowing local values to be set without modifying XSLT code. +[Parameters] +; Finna datasource name +museum = "testmuseum" +; Name of the aggregator +provider = "National Library of Finland" +; Name of the museum +data_provider = "Test Museum" +; Default content type if more specific type is missing +default_type = "Museum object" +; URL to the preferred Finna view +sourceURL = "http://testmuseum.finna.fi" diff --git a/tests/fixtures/Base/config/xsltransformationtest/transformations/lido2edm_text.properties b/tests/fixtures/Base/config/xsltransformationtest/transformations/lido2edm_text.properties new file mode 100644 index 000000000..a1f330da1 --- /dev/null +++ b/tests/fixtures/Base/config/xsltransformationtest/transformations/lido2edm_text.properties @@ -0,0 +1,30 @@ +; XSLT Export Settings for EDM format +[General] +; REQUIRED: Name of XSLT file to apply. Path is relative to the transformations directory +; of the RecordManager installation. +xslt = lido2edm.xsl +; OPTIONAL: PHP function(s) to register for use within XSLT file. You may repeat +; this line to register multiple PHP functions. +php_function[] = str_replace +php_function[] = rawurlencode +php_function[] = mb_strtolower +; OPTIONAL: PHP class filled with public static functions for use by the XSLT file. +; The class name must match the filename, and the file must exist in the transformations +; directory of the RecordManager installation. You may repeat this line to load multiple +; custom classes. +;custom_class[] = +;custom_class[] = + +; XSLT parameters -- any key/value pairs set here will be passed as parameters to +; the XSLT file, allowing local values to be set without modifying XSLT code. +[Parameters] +; Finna datasource name +museum = "testmuseum" +; Name of the aggregator +provider = "National Library of Finland" +; Name of the museum +data_provider = "Test Museum" +; Default content type if more specific type is missing +default_type = "Museum object" +; URL to the preferred Finna view +sourceURL = "http://testmuseum.finna.fi" diff --git a/tests/fixtures/Base/config/xsltransformationtest/transformations/lido2edm_video.properties b/tests/fixtures/Base/config/xsltransformationtest/transformations/lido2edm_video.properties new file mode 100644 index 000000000..fb22eb251 --- /dev/null +++ b/tests/fixtures/Base/config/xsltransformationtest/transformations/lido2edm_video.properties @@ -0,0 +1,30 @@ +; XSLT Export Settings for EDM format +[General] +; REQUIRED: Name of XSLT file to apply. Path is relative to the transformations directory +; of the RecordManager installation. +xslt = lido2edm.xsl +; OPTIONAL: PHP function(s) to register for use within XSLT file. You may repeat +; this line to register multiple PHP functions. +php_function[] = str_replace +php_function[] = rawurlencode +php_function[] = mb_strtolower +; OPTIONAL: PHP class filled with public static functions for use by the XSLT file. +; The class name must match the filename, and the file must exist in the transformations +; directory of the RecordManager installation. You may repeat this line to load multiple +; custom classes. +;custom_class[] = +;custom_class[] = + +; XSLT parameters -- any key/value pairs set here will be passed as parameters to +; the XSLT file, allowing local values to be set without modifying XSLT code. +[Parameters] +; Finna datasource name +museum = "testmuseum" +; Name of the aggregator +provider = "National Library of Finland" +; Name of the museum +data_provider = "Test Museum" +; Default content type if more specific type is missing +default_type = "Museum object" +; URL to the preferred Finna view +sourceURL = "objectWebResource" diff --git a/tests/fixtures/Base/config/xsltransformationtest/transformations/url-encode.xsl b/tests/fixtures/Base/config/xsltransformationtest/transformations/url-encode.xsl new file mode 100644 index 000000000..589ebaed9 --- /dev/null +++ b/tests/fixtures/Base/config/xsltransformationtest/transformations/url-encode.xsl @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/Base/config/xsltransformationtest/transformations/validate-lang.xsl b/tests/fixtures/Base/config/xsltransformationtest/transformations/validate-lang.xsl new file mode 100644 index 000000000..09bc60449 --- /dev/null +++ b/tests/fixtures/Base/config/xsltransformationtest/transformations/validate-lang.xsl @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/Base/config/xsltransformationtest/transformations/validate-text-lang.xsl b/tests/fixtures/Base/config/xsltransformationtest/transformations/validate-text-lang.xsl new file mode 100644 index 000000000..a373121ef --- /dev/null +++ b/tests/fixtures/Base/config/xsltransformationtest/transformations/validate-text-lang.xsl @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/Base/config/xsltransformationtest/transformations/wikidata-worktype.xsl b/tests/fixtures/Base/config/xsltransformationtest/transformations/wikidata-worktype.xsl new file mode 100644 index 000000000..a50a5adc4 --- /dev/null +++ b/tests/fixtures/Base/config/xsltransformationtest/transformations/wikidata-worktype.xsl @@ -0,0 +1,272 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/Base/utils/XslTransformation/lido_3D.xml b/tests/fixtures/Base/utils/XslTransformation/lido_3D.xml new file mode 100644 index 000000000..1c15e765b --- /dev/null +++ b/tests/fixtures/Base/utils/XslTransformation/lido_3D.xml @@ -0,0 +1,261 @@ + + + + testimuseo-K1554 + + + + + malli + + + + + Fotogrammetrinen malli + + + 100 valokuva + + + 12345 + + + fin + + + + + + + Kissa nurmikolla -3D-malli + + + + + + + Testimuseo + + + K1554 + + + + + mustavalkoinen kissa nukkuu nurmikolla + black and white cat sleeping on grass + + + + + 6 x 6 cm + 6 x 6 cm + + + + + + + + valmistus + Creation + + + + + + Karvinen, Osku + + + + kuvaaja + + + + + valmistusaika 2009 + + + kuvauspaikka Kissakuja 1, Helsinki + + + fotogrammetria + + + negatiivi + + + negatiivi + negative + + + + + Photographing was done while the cat was sleeping because the cat refused to co-operate + + + + + + + näyttely + + + Kissat kautta aikojen - Helsinki Cat Exhibition + + + 1.11.2022–31.2.2023 + + + + + + + + + + Yleinen suomalainen asiasanasto + kissat + + + http://www.yso.fi/onto/yso/p16142 + nurmikot + + + + + + + http://iconclass.org/48C5 + maalaustaide, piirrostaide ja taidegrafiikka + + + + + + + + + Hänen Majesteettinsa Kissa Kissanen + + + + + aiheen paikka Kissakujan nurmikko + + + + + + + + Kissakuvakokoelma + Cat image collection + + + Kokoelma + + + + + + + + K1554 + + item + + + + Testimuseo + + + + + CC0 + julkinen + + + + + + K1554_1 + K1554_1.jpg + + https://kissarepo/images/download?id=k1554_1&size=thumb + + + https://kissarepo/images/download?id=k1554_1&size=large + + + https://kissarepo/images/download?id=k1554_1&size=master + + + + CC BY 4.0 + Tiedostoa voi käyttää vapaasti myös kaupallisesti. + + + + + K1554_2 + K1554_2.jpg + + https://kissarepo/images/download?id=k1554_2&size=thumb + + + https://kissarepo/images/download?id=k1554_2&size=large + + + https://kissarepo/images/download?id=k1554_2&size=original + + + + CC BY 4.0 + Tiedostoa voi käyttää vapaasti myös kaupallisesti. + + + + + K1554_3 + Avaa Sketchfabissa + + https://kissarepo/images/download?id=k1554_3&size=original&format=glb + + koko + size + verteksit + vertices + 60000 + + + koko + size + polygonit + polygons + 21069 + + + + https://sketchfab.com/3d-models/k1554_3 + + + 3D Mesh + + + + CC BY 4.0 + Tiedostoa voi käyttää vapaasti myös kaupallisesti. + + + + Testimuseo + + + Testimuseo / Karvinen, Osku + + + + + + diff --git a/tests/fixtures/Base/utils/XslTransformation/lido_3D_edm.xml b/tests/fixtures/Base/utils/XslTransformation/lido_3D_edm.xml new file mode 100644 index 000000000..c141cee8b --- /dev/null +++ b/tests/fixtures/Base/utils/XslTransformation/lido_3D_edm.xml @@ -0,0 +1,69 @@ + + + + Karvinen, Osku + mustavalkoinen kissa nukkuu nurmikolla + black and white cat sleeping on grass + Photographing was done while the cat was sleeping because the cat refused to co-operate + fotogrammetria + K1554 + fin + kissat + + + Hänen Majesteettinsa Kissa Kissanen + Kissa nurmikolla -3D-malli + + Fotogrammetrinen malli + 100 valokuva + valmistusaika 2009 + 6 x 6 cm + 6 x 6 cm + Kissakuvakokoelma + Cat image collection + Kissat kautta aikojen - Helsinki Cat Exhibition + negatiivi + kuvauspaikka Kissakuja 1, Helsinki + aiheen paikka Kissakujan nurmikko + 1.11.2022–31.2.2023 + 3D + + + + + + + + + Testimuseo / Karvinen, Osku + Testimuseo + + + + + + Testimuseo / Karvinen, Osku + Testimuseo + + + 21069 + + 60000 + + + + Test Museum + + + + + + + National Library of Finland + + + + + Sketchfab + + diff --git a/tests/fixtures/Base/utils/XslTransformation/lido_image.xml b/tests/fixtures/Base/utils/XslTransformation/lido_image.xml new file mode 100644 index 000000000..679156d10 --- /dev/null +++ b/tests/fixtures/Base/utils/XslTransformation/lido_image.xml @@ -0,0 +1,222 @@ + + + + testimuseo-K1554 + + + + + valokuva + + + + + valokuvanegatiivi + + + 100 valokuva + + + 12345 + + + fin + + + + + + + Kissa nurmikolla + + + + + + + Testimuseo + + + K1554 + + + + + mustavalkoinen kissa nukkuu nurmikolla + black and white cat sleeping on grass + + + + + 6 x 6 cm + 6 x 6 cm + + + + + + + + valmistus + Creation + + + + + + Karvinen, Osku + + + + kuvaaja + + + + + valmistusaika 2009 + + + kuvauspaikka Kissakuja 1, Helsinki + + + salakuvaus + + + negatiivi + + + negatiivi + negative + + + + + Photographing was done while the cat was sleeping because the cat refused to co-operate + + + + + + + näyttely + + + Kissat kautta aikojen - Helsinki Cat Exhibition + + + 1.11.2022–31.2.2023 + + + + + + + + + + Yleinen suomalainen asiasanasto + kissat + + + http://www.yso.fi/onto/yso/p16142 + nurmikot + + + + + + + http://iconclass.org/48C5 + maalaustaide, piirrostaide ja taidegrafiikka + + + + + + + + + Hänen Majesteettinsa Kissa Kissanen + + + + + aiheen paikka Kissakujan nurmikko + + + + + + + + Kissakuvakokoelma + Cat image collection + + + Kokoelma + + + + + + + + K1554 + + item + + + + Testimuseo + + + + + CC0 + julkinen + + + + + + K1554_1 + K1554_1.jpg + + https://kissarepo/images/download?id=k1554_1&size=thumb + + + https://kissarepo/images/download?id=k1554_1&size=large + + + https://kissarepo/images/download?id=k1554_1&size=master + + + + CC BY 4.0 + Tiedostoa voi käyttää vapaasti myös kaupallisesti. + + + + + K1554_2 + K1554_2.jpg + + https://kissarepo/images/download?id=k1554_2&size=thumb + + + https://kissarepo/images/download?id=k1554_2&size=large + + + https://kissarepo/images/download?id=k1554_2&size=original + + + + CC BY 4.0 + Tiedostoa voi käyttää vapaasti myös kaupallisesti. + + + + + + + diff --git a/tests/fixtures/Base/utils/XslTransformation/lido_image_edm.xml b/tests/fixtures/Base/utils/XslTransformation/lido_image_edm.xml new file mode 100644 index 000000000..6b435d820 --- /dev/null +++ b/tests/fixtures/Base/utils/XslTransformation/lido_image_edm.xml @@ -0,0 +1,47 @@ + + + + Karvinen, Osku + mustavalkoinen kissa nukkuu nurmikolla + black and white cat sleeping on grass + Photographing was done while the cat was sleeping because the cat refused to co-operate + salakuvaus + K1554 + fin + kissat + + + Hänen Majesteettinsa Kissa Kissanen + Kissa nurmikolla + + valokuvanegatiivi + 100 valokuva + valmistusaika 2009 + 6 x 6 cm + 6 x 6 cm + Kissakuvakokoelma + Cat image collection + Kissat kautta aikojen - Helsinki Cat Exhibition + negatiivi + kuvauspaikka Kissakuja 1, Helsinki + aiheen paikka Kissakujan nurmikko + 1.11.2022–31.2.2023 + IMAGE + + + + + + + + + + Test Museum + + + + + National Library of Finland + + + diff --git a/tests/fixtures/Base/utils/XslTransformation/lido_text.xml b/tests/fixtures/Base/utils/XslTransformation/lido_text.xml new file mode 100644 index 000000000..12e9e4348 --- /dev/null +++ b/tests/fixtures/Base/utils/XslTransformation/lido_text.xml @@ -0,0 +1,208 @@ + + + + testimuseo-K1554 + + + + + valokuva + + + + + kaunokirjoitus + + + 100 valokuva + + + 12345 + + + + + + + Kissa nurmikolla -kuvan tarina + The story of the image: Cat On Grass + + + + + + + Testimuseo + + + K1554 + + + + + mustavalkoinen kissa nukkuu nurmikolla: kuvauskertomus + black and white cat sleeping on grass: photography report + + + + + 6 x 6 cm + 6 x 6 cm + + + + + + + + valmistus + Creation + + + + + + Karvinen, Osku + + + + kirjoittaja + + + + + valmistusaika 2009 + + + kuvauspaikka Kissakuja 1, Helsinki + + + kaunokirjoitus + + + pergamentti + + + pergamentti + parchment + + + + + Photographing was done while the cat was sleeping because the cat refused to co-operate + + + + + + + näyttely + + + Kissat kautta aikojen - Helsinki Cat Exhibition + + + 1.11.2022–31.2.2023 + + + + + + + + + + Yleinen suomalainen asiasanasto + kissat + + + http://www.yso.fi/onto/yso/p16142 + nurmikot + + + + + + + http://iconclass.org/48C5 + maalaustaide, piirrostaide ja taidegrafiikka + + + + + + + + + Hänen Majesteettinsa Kissa Kissanen + + + + + aiheen paikka Kissakujan nurmikko + + + + + + + + Kissakuvakokoelma + Cat image collection + + + Kokoelma + + + + + + + + K1554 + + item + + + + Testimuseo + + + + + CC0 + julkinen + + + + + + K1554_1 + K1554_1.jpg + + https://kissarepo/images/download?id=k1554_2&size=thumb + + + + CC BY 4.0 + Tiedostoa voi käyttää vapaasti myös kaupallisesti. + + + + + K1554_2 + K1554_2.pdf + + https://kissarepo/images/download?id=k1554_2&size=original&format=pdf + + + + CC BY 4.0 + Tiedostoa voi käyttää vapaasti myös kaupallisesti. + + + + + + + diff --git a/tests/fixtures/Base/utils/XslTransformation/lido_text_edm.xml b/tests/fixtures/Base/utils/XslTransformation/lido_text_edm.xml new file mode 100644 index 000000000..e1dc7e85f --- /dev/null +++ b/tests/fixtures/Base/utils/XslTransformation/lido_text_edm.xml @@ -0,0 +1,48 @@ + + + + Karvinen, Osku + mustavalkoinen kissa nukkuu nurmikolla: kuvauskertomus + black and white cat sleeping on grass: photography report + Photographing was done while the cat was sleeping because the cat refused to co-operate + kaunokirjoitus + K1554 + fin + kissat + + + Hänen Majesteettinsa Kissa Kissanen + Kissa nurmikolla -kuvan tarina + The story of the image: Cat On Grass + + kaunokirjoitus + 100 valokuva + valmistusaika 2009 + 6 x 6 cm + 6 x 6 cm + Kissakuvakokoelma + Cat image collection + Kissat kautta aikojen - Helsinki Cat Exhibition + pergamentti + kuvauspaikka Kissakuja 1, Helsinki + aiheen paikka Kissakujan nurmikko + 1.11.2022–31.2.2023 + TEXT + + + + + + + + + + Test Museum + + + + + National Library of Finland + + + diff --git a/tests/fixtures/Base/utils/XslTransformation/lido_video.xml b/tests/fixtures/Base/utils/XslTransformation/lido_video.xml new file mode 100644 index 000000000..732fc400c --- /dev/null +++ b/tests/fixtures/Base/utils/XslTransformation/lido_video.xml @@ -0,0 +1,256 @@ + + + + testimuseo-K1554 + + + + + + + + + + + + + fin + + + + + + + + + + + + + + Testimuseo + + + K1554 + + + + + mustavalkoinen kissa nukkuu nurmikolla + black and white cat sleeping on grass + + + + + + + pituus + 6 + cm + + + leveys + 6 + cm + + + + + + + + + + valmistus + Creation + + + + + + Karvinen, Osku + + + + kuvaaja + + + + + valmistusaika 2009 + + + kuvauspaikka Kissakuja 1, Helsinki + + + Kissakuja 1 + + + + 60.187796179482426 24.983517601821166 + + + + + Helsinki + + + + Suomi + + + + + + + salakuvaus + + + + + negatiivi + negative + + + + + Photographing was done while the cat was sleeping because the cat refused to co-operate + + + + + + + näyttely + + + Kissat kautta aikojen - Helsinki Cat Exhibition + + + + + + + + + + Yleinen suomalainen asiasanasto + kissat + + + http://www.yso.fi/onto/yso/p16142 + nurmikot + + + + + + + http://iconclass.org/48C5 + maalaustaide, piirrostaide ja taidegrafiikka + + + + + + + + + Hänen Majesteettinsa Kissa Kissanen + + + + + aiheen paikka Kissakujan nurmikko + + + aiheen aika 2000-luku + + + + + + + + Kissakuvakokoelma + Cat image collection + + + Kokoelma + + + + + Katso teos Testimuseon kokoelmasivustolla + + https://www.kansallisgalleria.fi/fi/object/594898 + https://www.kansallisgalleria.fi/en/object/594898 + + + + + + + + + K1554 + + item + + + + Testimuseo + + + + + CC0 + julkinen + + + + + + 924453 + HK19931028_2211.tif + + https://kissarepo/images/download?id=k1554_1&size=thumb + + + https://kissarepo/images/download?id=k1554_1&size=large + + + https://kissarepo/images/download?id=k1554_1&size=master + + + + CC BY 4.0 + Tiedostoa voi käyttää vapaasti myös kaupallisesti. + + Karvinen, Osku + + + + + https://kissarepo/images/download?id=k1554_1&size=original&format=mp4 + + + https://www.youtube.com/watch?v=k1554_1 + + + + InC + In copyright + + + + Testimuseo + + + Testimuseo / Karvinen, Osku + + + + + + diff --git a/tests/fixtures/Base/utils/XslTransformation/lido_video_edm.xml b/tests/fixtures/Base/utils/XslTransformation/lido_video_edm.xml new file mode 100644 index 000000000..bebe8724f --- /dev/null +++ b/tests/fixtures/Base/utils/XslTransformation/lido_video_edm.xml @@ -0,0 +1,61 @@ + + + + Karvinen, Osku + mustavalkoinen kissa nukkuu nurmikolla + black and white cat sleeping on grass + Photographing was done while the cat was sleeping because the cat refused to co-operate + salakuvaus + K1554 + fin + kissat + + + Hänen Majesteettinsa Kissa Kissanen + Ei otsikkoa + + valmistusaika 2009 + pituus: 6 cm + leveys: 6 cm + Kissakuvakokoelma + Cat image collection + Kissat kautta aikojen - Helsinki Cat Exhibition + negatiivi + negative + kuvauspaikka Kissakuja 1, Helsinki + + aiheen paikka Kissakujan nurmikko + aiheen aika 2000-luku + VIDEO + + + + Karvinen, Osku + + + + Testimuseo / Karvinen, Osku + Testimuseo + + + + Testimuseo / Karvinen, Osku + Testimuseo + + + + Test Museum + + + + + + National Library of Finland + + + + Kissakuja 1 + 60.187796179482426 + 24.983517601821166 + +