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

`delete` option of `lookup` does not work with arrays and `do list`-bind #321

Open TobiasNx opened 1 year ago

TobiasNx commented 1 year ago

I forgot to open a ticket for this I think. Now I had the same problem again.

https://github.com/hbz/lobid-resources/commit/34f8712ef1812c387b08f0d2754473e20f36c1e3 https://github.com/hbz/lobid-resources/pull/1850/files

It seems that the delete option is not working if one is trying to lookup in another array while iterating with a do list-Bind.

TobiasNx commented 1 year ago

Had another altercation with a problem of the delete option: https://github.com/hbz/lobid-resources/commit/b54b8af8e2a76e06e8a80b10d67ce614a0c95988

The delete option created an label, that should not be there. If I delete the delete option, the unwanted label is deleted again.

TobiasNx commented 5 months ago

This also seems to be happening if I use delete in the same array with do list:

do list(path:"@hochschulfaechersystematik","var":"$i")
  lookup("$i","tuDelftSubjects2destatis", delete:"true")
end