In a list of search results on the OPAC the publication date is contained in the .results_summary span along with place of publication and publisher. It would be great to add a span specifically for the publication date so that it could be styled separately or so that the place of publication and publisher could be hidden while still showing the pub date.
Created attachment 112580 [details] [review] Bug 26825: Add span for publication date in OPAC This patch modifies the XSL templates for OPAC results and OPAC details so that the parts of the publisher details are wrapped separate <span>s: Publisher place, name, and date. To test, apply the patch "restart_all" if necessary. You can add this to the OPACUserCSS system preference to better see the change: .publisher_place { color: red; } .publisher_name { color: green; } .publisher_date { color: orange; } - Peform a search in the OPAC - In the search results, confirm that the publisher plac, name, and date are wrapped in separate <span>s, either by confirming the custom colors or by inspecting the source. - View the details for one of the results. Confirm that the same change has been made to the detail page.
Created attachment 112589 [details] [review] Bug 26825: Add span for publication date in OPAC This patch modifies the XSL templates for OPAC results and OPAC details so that the parts of the publisher details are wrapped separate <span>s: Publisher place, name, and date. To test, apply the patch "restart_all" if necessary. You can add this to the OPACUserCSS system preference to better see the change: .publisher_place { color: red; } .publisher_name { color: green; } .publisher_date { color: orange; } - Peform a search in the OPAC - In the search results, confirm that the publisher plac, name, and date are wrapped in separate <span>s, either by confirming the custom colors or by inspecting the source. - View the details for one of the results. Confirm that the same change has been made to the detail page. Signed-off-by: B Johnson <barbara.johnson@bedfordtx.gov>
Created attachment 112701 [details] [review] Bug 26825: Add span for publication date in OPAC This patch modifies the XSL templates for OPAC results and OPAC details so that the parts of the publisher details are wrapped separate <span>s: Publisher place, name, and date. To test, apply the patch "restart_all" if necessary. You can add this to the OPACUserCSS system preference to better see the change: .publisher_place { color: red; } .publisher_name { color: green; } .publisher_date { color: orange; } - Peform a search in the OPAC - In the search results, confirm that the publisher plac, name, and date are wrapped in separate <span>s, either by confirming the custom colors or by inspecting the source. - View the details for one of the results. Confirm that the same change has been made to the detail page. Signed-off-by: B Johnson <barbara.johnson@bedfordtx.gov> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Pushed to master for 20.11, thanks to everybody involved!