Bug 11875

Summary: URL is poorly formed when searching on authid for author
Product: Koha Reporter: Joy Nelson <1joynelson>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: katrin.fischer
Version: 3.12   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

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.