clarin-dspace
clarin-dspace copied to clipboard
OAIIndexEventConsumer does not reflect changes
non discoverable items should disappear from oai; they do if you run the import, but the event consumer does not reflect this.
by @cyplas:
Ok, I reproduced this now on our test server (fado):
- create a new submission ---> new handle: 11356/1160
- visit https://*/repository/oai/cite?metadataPrefix=cmdi&handle=11356/1060 ---> "The given id does not exist"
- make rebuild_oai
- visit https://*/repository/oai/cite?metadataPrefix=cmdi&handle=11356/1060 ---> showed item
- Edit item > Permanently delete > Delete
- visit https://*/repository/oai/cite?metadataPrefix=cmdi&handle=11356/1060 ---> showed item
- make update_oai
- visit https://*/repository/oai/cite?metadataPrefix=cmdi&handle=11356/1060 ---> showed item
- make rebuild_oai
- visit https://*/repository/oai/cite?metadataPrefix=cmdi&handle=11356/1060 ---> "The given id does not exist"
So it looks like the listener didn't work, and that update_oai is not enough for this, but rebuild_oai works.