HKS3 / HKS3Link2Wikipedia

koha-plugin to generates extracts & links to wikipedia articles via GND lookup
3 stars 2 forks source link

Redirect problem #1

Open psmukhopadhyay opened 2 years ago

psmukhopadhyay commented 2 years ago

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

MarkHofstetter commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Plz tell me which mail id to send. Regards

On Thu, Jan 6, 2022 at 7:21 PM Mark Hofstetter @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/HKS3/HKS3Link2Wikipedia/issues/1#issuecomment-1006607529, or unsubscribe https://github.com/notifications/unsubscribe-auth/AET2TVBEAPIVJ4SCPT4YOCDUUWM7VANCNFSM5LKQ4Z7Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

psmukhopadhyay commented 2 years ago

Plz find it.

On Thu, Jan 6, 2022 at 7:33 PM Parthasarathi Mukhopadhyay < @.***> wrote:

Plz tell me which mail id to send. Regards

On Thu, Jan 6, 2022 at 7:21 PM Mark Hofstetter @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/HKS3/HKS3Link2Wikipedia/issues/1#issuecomment-1006607529, or unsubscribe https://github.com/notifications/unsubscribe-auth/AET2TVBEAPIVJ4SCPT4YOCDUUWM7VANCNFSM5LKQ4Z7Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

MarkHofstetter commented 2 years ago

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

psmukhopadhyay commented 2 years ago

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

psmukhopadhyay commented 2 years ago

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

Plz rename from .txt extension.

MarkHofstetter commented 2 years ago

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 commented 2 years ago

Okay, thanks.

MarkHofstetter commented 2 years ago

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 commented 2 years ago

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

psmukhopadhyay commented 2 years ago

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 commented 2 years ago

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