Bug 13119

Summary: Use XSLT to display tagged titles in the OPAC
Product: Koha Reporter: Owen Leonard <oleonard>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: aleisha, tomascohen
Version: master   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 13083    
Bug Blocks: 13121    
Attachments: Bug 13119 - Use XSLT to display tagged titles in the OPAC
Bug 13119 - Use XSLT to display tagged titles in the OPAC
Bug 13119 - Use XSLT to display tagged titles in the OPAC

Description Owen Leonard 2014-10-21 16:17:19 UTC
The list of a logged-in user's tagged titles should provide the same kind of information see in other lists of titles like search results and Lists. If  OPACXSLTResultsDisplay is set to use XSLT the tags page should display title information using XSLT.
Comment 1 Owen Leonard 2014-10-21 17:11:00 UTC Comment hidden (obsolete)
Comment 2 Aleisha Amohia 2014-10-28 03:48:20 UTC
Sent this error message when trying to test: 
fatal: sha1 information is lacking or useless (koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt).

Setting to 'patch does not apply'
Comment 3 Owen Leonard 2014-10-28 12:00:20 UTC
(In reply to Aleisha Amohia from comment #2)
> fatal: sha1 information is lacking or useless

That usually means you were missing a dependent patch: Did you apply the patch for Bug 13083 first?
Comment 4 Frédéric Demians 2014-11-01 11:15:49 UTC Comment hidden (obsolete)
Comment 5 Jonathan Druart 2014-12-19 14:27:05 UTC
Created attachment 34549 [details] [review]
Bug 13119 - Use XSLT to display tagged titles in the OPAC

This patch updates the display of a logged-in user's tagged titles to
use the same XSLT stylesheet used by search results and Lists. This
would make for a more consistent display of information.

Unrelated change: Corrected "My tags" header to read "Your tags,"
consistent with sidebar navigation.

To test you should have multiple titles in your catalog which you have
tagged in the OPAC.

- Set the OPACXSLTResultsDisplay system preference to 'default'
- Log in to the OPAC and view the "your tags" page.
- Confirm that title information is displayed correctly. Compare to
  search results.
- Empty the OPACXSLTResultsDisplay system preference and reload the
  "your tags" page. The display should revert to the old view, showing
  title, subtitle (if any) and author (if any).
- Set the OPACXSLTResultsDisplay to a custom path pointing to a custom
  XSL file and confirm that the list of your tagged titles changes
  accordingly.

Note: A follow-up will add "action" links ("place hold," "add to cart,"
etc) consistent with other pages.

Signed-off-by: Frederic Demians <f.demians@tamil.fr>

Works as described. opac-tag.pl page displays tagged titles the same way as
result & list pages.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Comment 6 Tomás Cohen Arazi 2015-01-04 15:23:24 UTC
Patch pushed to master.

Thanks Owen!