Bug 11875 - URL is poorly formed when searching on authid for author
Summary: URL is poorly formed when searching on authid for author
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: 3.12
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-28 18:11 UTC by Joy Nelson
Modified: 2017-06-14 22:11 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joy Nelson 2014-02-28 18:11:10 UTC
In OPAC when viewing the details screen, click on the magnifying glass by the author name.  The URL (at bottom of screen) shows as <beginning urlhere>/cgi-bin/koha/opac-authoritiesdetail.pl?authid="22858"

This results in a 404 error.
Comment 1 Katrin Fischer 2014-03-08 20:48:36 UTC
Hi Joy, did you check a matching authority exists? The links from the magnifying glasses work fine for me, as long as I have a matching authority. Only when there is no matching authority for the id i get the 404.
Comment 2 Joy Nelson 2014-03-10 19:55:15 UTC
Hi Katrin-
Yes, I did check this.  It is a clean install and I loaded bibs and authorities.  I then linked the two using the linker script.  I see the 100$9 contains the correct authid for the authority record.  When I hover on the magnifying glass the url encapsulates the authid in quotes which when clicked fails (404).

Thanks,
joy


(In reply to Katrin Fischer from comment #1)
> Hi Joy, did you check a matching authority exists? The links from the
> magnifying glasses work fine for me, as long as I have a matching authority.
> Only when there is no matching authority for the id i get the 404.
Comment 3 Joy Nelson 2014-09-16 15:01:05 UTC
I'll further note that this seems to happen only on author links. 
The link for viewing the author's authority records is as follow:

cgi-bin/koha/opac-authoritiesdetail.pl?authid="112718694"

but the link to the subject authority records is as follows:

cgi-bin/koha/opac-authoritiesdetail.pl?authid=20154206    (note no quotes)

Thanks,
joy
Comment 4 Owen Leonard 2016-06-21 18:58:18 UTC
This appears to be working correctly in master.
Comment 5 Joy Nelson 2016-06-21 19:01:28 UTC
Agreed.
Thanks for checking Owen!

(In reply to Owen Leonard from comment #4)
> This appears to be working correctly in master.