metafacture / metafacture-fix

Work in progress towards an implementation of the Fix language for Metafacture
Apache License 2.0
6 stars 2 forks source link

`list`-Bind iterates over array in array even though the path states none, so it should not #326

Open TobiasNx opened 1 year ago

TobiasNx commented 1 year ago

https://metafacture.org/playground/?flux=%22https%3A//repository.tugraz.at/oai2d%3Fverb%3DGetRecord%26identifier%3Doai%3Arepository.tugraz.at%3Ax4fpd-yr584%26metadataPrefix%3Dlom%22%0A%7C+open-http%0A%7C+decode-xml%0A%7C+handle-generic-xml%28emitNamespace%3D%22true%22%29%0A%7C+fix%28transformationFile%29%0A%7C+encode-json%28prettyPrinting%3D%22true%22%29%0A%7C+print%3B&transformation=put_map%28%22oefos2destatis%22%2C%0A%22https%3A//w3id.org/oerbase/vocabs/oefos2012/1%22%3A%22https%3A//w3id.org/kim/hochschulfaechersystematik/n4%22%2C%0A%22https%3A//w3id.org/oerbase/vocabs/oefos2012/102%22%3A%22https%3A//w3id.org/kim/hochschulfaechersystematik/n71%22%2C%0A%22https%3A//w3id.org/oerbase/vocabs/oefos2012/1020%22%3A%22https%3A//w3id.org/kim/hochschulfaechersystematik/n71%22%2C%0A%22https%3A//w3id.org/oerbase/vocabs/oefos2012/102022%22%3A%22https%3A//w3id.org/kim/hochschulfaechersystematik/n71%22%2C%0A%22https%3A//w3id.org/oerbase/vocabs/oefos2012/102029%22%3A%22https%3A//w3id.org/kim/hochschulfaechersystematik/n71%22%0A%0A%29%0A%0A%0A%23++------------about------------------------------------%0Aset_array%28%22about%5B%5D%22%29%0Ado+list%28path%3A%22metadata.lom%3Alom.lom%3Aclassification.lom%3Ataxonpath.lom%3Ataxon%22%2C%22var%22%3A%22%24i%22%29%0A++++copy_field%28%22%24i.lom%3Aid.value%22%2C%22about%5B%5D.%24append.id%22%29%0A++++lookup%28%22about%5B%5D.%24last.id%22%2C+%22oefos2destatis%22%29%0Aend%0A%0Aretain%28%22about%5B%5D%22%29