Bug 26765 - Make author span a clickable link on OPAC results list
Summary: Make author span a clickable link on OPAC results list
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Owen Leonard
QA Contact: Katrin Fischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-21 14:54 UTC by Barbara Johnson
Modified: 2023-12-28 20:43 UTC (History)
2 users (show)

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


Attachments
Tile with clickable link for the author (71.20 KB, image/png)
2020-10-21 14:54 UTC, Barbara Johnson
Details
Multiple clickable authors from Ajax Library (150.08 KB, image/png)
2020-10-27 14:37 UTC, Barbara Johnson
Details
Bug 26765: Make author span a clickable link on OPAC results list (15.52 KB, patch)
2023-01-27 19:08 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 26765: Make author span a clickable link on OPAC results list (15.58 KB, patch)
2023-01-27 19:28 UTC, ByWater Sandboxes
Details | Diff | Splinter Review
Bug 26765: Make author span a clickable link on OPAC results list (15.64 KB, patch)
2023-02-05 13:23 UTC, Katrin Fischer
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Barbara Johnson 2020-10-21 14:54:11 UTC
Created attachment 112103 [details]
Tile with clickable link for the author

When looking at the results of a search patrons or staff may then want to see what other materials by an author are available. For libraries who display the author on a separate line in the OPAC results list, make the author a clickable link which would bring up all the materials in the catalog by that author.  This would improve searching for patrons since they would not have to take the time to go into the detailed record or perform a new author search which takes time and could lead to misspelling of the name.  The information is already on the page so it seems like it would be good to make it more useable.
Comment 1 Katrin Fischer 2020-10-21 15:07:35 UTC
Hi Barbara, this looks like you have made some changes to the standard display, hiding the separate information about authors and other people involved that are clickable (from the 1xx and 7xx)? The problem is that 245$c is often not suitable for being used as a search as they contain extra information and punctuation etc. that make the search return zero results. Think of an item with 2 authors listed in $c for an example. Or: "edited by..."
Comment 2 Katrin Fischer 2020-10-21 15:09:06 UTC
Hm, looking at the list again I am no longer sure it's from 245$c ... needs probably some more investigation.
Comment 3 Barbara Johnson 2020-10-27 14:36:41 UTC
We have made customizations to the XSLT for our author display on the results page to show only the first author listed.  Ajax Library made similar customizations (that's what ours was based on) and they show more than one author each being clickable - https://catalogue.ajaxlibrary.ca/cgi-bin/koha/opac-search.pl?q=james+patterson+paetro.  I don't understand all the inner workings for these displays but having the ability to execute an author search from the results list would be great.
Comment 4 Barbara Johnson 2020-10-27 14:37:20 UTC
Created attachment 112579 [details]
Multiple clickable authors from Ajax Library
Comment 5 Owen Leonard 2023-01-27 19:08:39 UTC
Created attachment 145771 [details] [review]
Bug 26765: Make author span a clickable link on OPAC results list

This patch follows the markup of the staff interface catalog results
XSLT to make authors in OPAC search results clickable.

The patch also makes some minor CSS changes so that title and author
links are not too crowded together.

To test, apply the patch and rebuild the OPAC CSS.

- Perform a catalog search in the OPAC which will return multiple
  results.
- In the search results, each author in each search result should be a
  separate clickable link.
- The margins around the result title and authors should be
  comfortable.
- Confirm that each link takes you to the correct author search.
Comment 6 ByWater Sandboxes 2023-01-27 19:28:19 UTC
Created attachment 145772 [details] [review]
Bug 26765: Make author span a clickable link on OPAC results list

This patch follows the markup of the staff interface catalog results
XSLT to make authors in OPAC search results clickable.

The patch also makes some minor CSS changes so that title and author
links are not too crowded together.

To test, apply the patch and rebuild the OPAC CSS.

- Perform a catalog search in the OPAC which will return multiple
  results.
- In the search results, each author in each search result should be a
  separate clickable link.
- The margins around the result title and authors should be
  comfortable.
- Confirm that each link takes you to the correct author search.

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Comment 7 Barbara Johnson 2023-01-27 19:30:10 UTC
This works great and looks great.
Comment 8 Katrin Fischer 2023-02-05 13:23:41 UTC
Created attachment 146212 [details] [review]
Bug 26765: Make author span a clickable link on OPAC results list

This patch follows the markup of the staff interface catalog results
XSLT to make authors in OPAC search results clickable.

The patch also makes some minor CSS changes so that title and author
links are not too crowded together.

To test, apply the patch and rebuild the OPAC CSS.

- Perform a catalog search in the OPAC which will return multiple
  results.
- In the search results, each author in each search result should be a
  separate clickable link.
- The margins around the result title and authors should be
  comfortable.
- Confirm that each link takes you to the correct author search.

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 9 Tomás Cohen Arazi 2023-02-07 13:50:05 UTC
Pushed to master for 23.05.

Nice work everyone, thanks!
Comment 10 Jacob O'Mara 2023-02-08 16:37:25 UTC
Nice work, thanks everyone!

Pushed to 22.11.x for the next release.
Comment 11 Lucas Gass 2023-02-15 21:31:00 UTC
Doesn't apply cleanly in 22.05.x, no backport.