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 problem #1

Open
psmukhopadhyay opened this issue Jan 5, 2022 · 14 comments
Open

Redirect problem #1

psmukhopadhyay opened this issue Jan 5, 2022 · 14 comments

Comments

@psmukhopadhyay
Copy link

This plugin is not working possibly due to the non-availability of the URL : https://persondata.toolforge.org/redirect/gnd/de/

@MarkHofstetter
Copy link
Contributor

hi thanks for the feedback,

for me the url is working (with an existing gnd_id)

eg
https://persondata.toolforge.org/redirect/gnd/de/118602667

what gnd id are you looking at, or do you have another source?

@psmukhopadhyay
Copy link
Author

Thanks for you response.
Actually, I'm trying it in Koha version 21.11.01.000, the moment I enable this plugin, this page like http://localhost:1002/cgi-bin/koha/opac-authoritiesdetail.pl?authid=10 is showing me error :

Sorry, the requested page is not available
Error 500

This message can have the following reason(s):

I checked Koha and Apache error logs but nothing has been reported there. Again, when I disable the pluging, the authority detail page shows the usual content


Einstein, Albert, 1879-1955 (Personal Name)
Number of records used in: 2
Preferred form: Einstein, Albert, 1879-1955

    Notes

Machine generated authority record.

Work cat.: (OSt)41: Einstein, Albert, 1879-1955., The origins of the general theory of relativity;, 1933.

Any suggestion where to look in digging this error?

Regards

@MarkHofstetter
Copy link
Contributor

could you please export the marcxml for this authority or provide me with the source-link

I am really interested making this plugin work/more versatile

@psmukhopadhyay
Copy link
Author

psmukhopadhyay commented Jan 6, 2022 via email

@psmukhopadhyay
Copy link
Author

psmukhopadhyay commented Jan 6, 2022 via email

@MarkHofstetter
Copy link
Contributor

simply attach the file here - or is it confidential in any way?

@psmukhopadhyay
Copy link
Author

As it is saying that xml not supported as attachment in github.

@psmukhopadhyay
Copy link
Author

bib-41.marcxml.txt
auth-10.marcxml.txt

Plz rename from .txt extension.

@MarkHofstetter
Copy link
Contributor

ok thx I'll have a look at it, it will take a few days as we are launching a new library this week thx for the report 'I'll come back to you!

@psmukhopadhyay
Copy link
Author

Okay, thanks.

@MarkHofstetter
Copy link
Contributor

hi,

this is what the output looks like if it's working (german wikipedia, but you'll get the point: https://katalog.landesbibliothek.steiermark.at/cgi-bin/koha/opac-authoritiesdetail.pl?authid=776048)

at the moment the plugin only works with dnb/gnd datasets like
https://portal.dnb.de/opac.htm?method=simpleSearch&cqlMode=true&query=nid%3D118529579

the problem with your auth-data is:

  1. the plugin shouldn't crash
  2. there is no normalized link data/id which would to find a link to wikipedia (there could be other people named Albert Einstein as well)
  3. one maybe could display field 670 instead (which obviously contains wikipedia data)

@MarkHofstetter
Copy link
Contributor

I've tested your file with my 21.05 installation the plugin does not crash

@psmukhopadhyay
Copy link
Author

I'm trying it in Koha 21.11.001 with Plack enabled. Though I've tested it after disabling koha-plack for the instance but with the same 500 error. Hopefully, the plugin is not crashing as I can see "Link2Wikipedia" against this call in browser http://localhost:1002/api/v1/.html.

Screenshot from 2022-01-11 22-22-20

I've also tried with your authority data in my instance but the same 500 error it is producing. I'm planning to give it a try again with a fresh Koha instance.

Regards

@MarkHofstetter
Copy link
Contributor

to sum it up, the plugin will not work with your data (because it lacks the gnd "links"), but the plugin should not crash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants