Skip to content
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

Redirect with HT-Nr deprecatedUri to detail page of one record when there are two hits? Instead redirect to results or delete deprecatedUri from CZ record. #1996

Closed
TobiasNx opened this issue May 8, 2024 · 8 comments
Assignees

Comments

@TobiasNx
Copy link
Contributor

TobiasNx commented May 8, 2024

Related to: hbz/nwbib#611 (comment)

Due to the fact, that there are duplicate E-Book records of EZB publications because of CZ/Consor and NZ/ZDB we have faulty redirects. Only one record is linked not both matching records because both records have mapped HT-Nr. (hbzId) and (deprecatedUri). That created the confusion in: hbz/nwbib#611 (comment)

We should
a) either redirect to the result page instead of only redirecting to one detail page
OR
b) we should delete the deprecatedUri link and do not map the hbzId from the CZ/Consors-Record, since the CZ-Consors-Record was never part of the Verbundkatalog and therefore should not have a HT-Nr. Especially because the ZDB publication do not receive any HT Numbers in ALMA anymore and we mapped the old HT-Numbers to be able to resolve the old URIs. So only the old Verbundkatalog/BZ/ZDB records have a redirect, a deprecatedUri and a hbzId

Writing this I prefer variant b.


e.g.

http://lobid.org/resources/HT015679368 redirects to https://lobid.org/resources/99370698631806441.
But there are two records with deprecatedUrl: http://lobid.org/resources/HT015679368
The other one is: https://lobid.org/resources/990171221570206441

CZ/Consors record: https://lobid.org/resources/99370698631806441. In variant b it would lose the deprecatedUrand the hbzId

{
  "@context": "http://lobid.org/resources/context.jsonld",
  "almaMmsId": "99370698631806441",
  "urn": [
    "urn:nbn:de:hbz:6:2-69622"
  ],
  "oclcNumber": [
    "644257601"
  ],
  "dnbId": "990456757",
  "zdbId": "2451605-3",
  "deprecatedUri": "http://lobid.org/resources/HT015679368#!",
  "hbzId": "HT015679368",
  "title": "ABU-Info",

NZ/ZDB record: https://lobid.org/resources/990171221570206441

{
  "@context": "http://lobid.org/resources/context.jsonld",
  "almaMmsId": "990171221570206441",
  "urn": [
    "urn:nbn:de:hbz:6:2-69622"
  ],
  "oclcNumber": [
    "984935842"
  ],
  "zdbId": "2451605-3",
  "dnbId": "990456757",
  "deprecatedUri": "http://lobid.org/resources/HT015679368#!",
  "hbzId": "HT015679368",
  "title": "ABU-Info",
...
@TobiasNx TobiasNx changed the title Redirect with HT-Nr deprecatedUri to results and not to detail page when there are two hits? Or delete deprecatedUri from CZ record. Redirect with HT-Nr deprecatedUri to detail page of one record when there are two hits? Instead redirect to results or delete deprecatedUri from CZ record. May 8, 2024
@acka47
Copy link
Contributor

acka47 commented May 16, 2024

+1 for moving forward on this.

@TobiasNx
Copy link
Contributor Author

@acka47 and I decided to drop the mapping for CZ publications with zdbId and only add a hbzId to hbz NZ publication because they were and are part of the Verbundkatalog.

@TobiasNx TobiasNx moved this from Ready to Working in lobid-resources May 16, 2024
@TobiasNx TobiasNx assigned acka47 and dr0i and unassigned TobiasNx May 16, 2024
@TobiasNx TobiasNx moved this from Working to Review in lobid-resources May 16, 2024
@dr0i
Copy link
Member

dr0i commented May 17, 2024

I don't know what I am supposed to do here. As the PR #1999 is linked with the weak related to it implies that work is still to do here?

@dr0i dr0i removed their assignment May 17, 2024
@TobiasNx
Copy link
Contributor Author

Nope. The "weak" related to is just to stop it from automatically closing because we have to check on monday when merged.

@dr0i
Copy link
Member

dr0i commented May 17, 2024

Ah. Now for that I've used the See #.... For me, related implies one-part-in-the-puzzle-but-look-there-are-more . We don't have written this down somewhere, though.

@dr0i
Copy link
Member

dr0i commented May 17, 2024

So, if there is nothing to do here

>> work is still to do here?
> Nope.

I still

don't know what I am supposed to do here.

Why was I assigned ?

@TobiasNx
Copy link
Contributor Author

Because it was in review and you see in the project board that you are on it with the review.

Since there is no work to do anymore for this now we wait for monday.

@TobiasNx
Copy link
Contributor Author

+1 deprecatedUrl and hbzId are not part of the CZ records anymore.

http://lobid.org/resources/HT015679368 redirects to lobid.org/resources/99370698631806441.
But there are two records with deprecatedUrl: http://lobid.org/resources/HT015679368
The other one is: lobid.org/resources/990171221570206441

http://lobid.org/resources/HT015679368 now redirects http://lobid.org/resources/990171221570206441

And there is only one hit for the old HT Nr: https://lobid.org/resources/search?q=HT015679368
While for the zdbId there are two: https://lobid.org/resources/search?q=zdbId%3A%222451605-3%22

@github-project-automation github-project-automation bot moved this from Review to Done in lobid-resources May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants