-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change related.issn to array and delete - #1828 #1916
Conversation
checks failed, reassigning |
@blackwinter These are your tests. I have deleted the |
These tests illustrate that there's no normalization happening for ISSNs (in contrast to ISBNs). So if you changed the data, just adjust the tests accordingly (the new behaviour is the expected behaviour). |
I updated one test. It seems that the hyphen normalization is not supported for related.issn |
You didn't update:
i.e. |
ISSNs are usually with |
Why is that?
So add both. It's an array now after all. |
This is the same situation with ISBN isn't it? We only use the ISBN without lobid-resources/src/main/resources/morph-hbz01-to-lobid.xml Lines 7557 to 7559 in 7f982c1
|
Okay, I understand. But we don't want ISSN normalization in |
This can wait until after your holiday. this seems to be the commit. also we we already normalize the issn for the record:
Also I do not see how this is any different to ISBN or why this is handled differently to ISBN: lobid-resources/web/test/tests/IndexIntegrationTest.java Lines 117 to 120 in 27e0915
There we also do not keep the hyphen. |
Sorry, that's not what I meant with "normalization". I was talking about the As I said before:
|
Ah, I see what the reason was. |
@TobiasNx will adopt the test to reflect a |
@dr0i could you have another look? |
Do you ACK @TobiasNx ? We won't be able to query an ISSN with a hyphen. @blackwinter but the same is OK for ISBN? (Look at 2f45f28 and test if |
You're not using the query field
|
I am confused what is blocking the PR:
This should be reflected in the 3 commits (not counting the merge). Anything wrong with this? PS: I see that the test still fails for the issn with hyphen using But with the isbn it works: lobid-resources/web/test/tests/IndexIntegrationTest.java Lines 117 to 121 in 6e22f91
|
As I said before, you have to adjust the tests to match your change in the data. Basically, you have to switch the results for These tests show that it's a behaviour change, but DigiBib (union catalogue) has to live with it I suppose. |
ISBNs receive special treatment via the |
This also highlights the different behavion from q.all to the general lobid-search.
Talked to @blackwinter off board. Queries with Now the test should work. |
There are still some failures. Will review when everything passes. |
@dr0i can you have a look. It seems the indexIntegration tests work locally but the tests still seem to fail. |
Losing the ISSN match without the hyphen is unfortunate, but a small price to pay when compared to the incorrect matches for hbz IDs.
We use tabs.
The related.issn is now stored without hyphen.
@blackwinter you can have a look now |
Will be deployed next Monday. |
Resolves #1828
ISSN is defined as array in the context therefore I changed related.issn to an array.
lobid-resources/web/conf/context.jsonld
Lines 89 to 92 in 3b710e2
Also it has a - which should be deleted.