[Koha] opac-user.tt, add pub date?

Eric Phetteplace ephetteplace at cca.edu
Tue Dec 21 12:10:42 NZDT 2021


Hi Tasha,

We customize a bit of the OPAC and staff side, but it's usually to hide
information or tweak the display, not adding additional information to the
page. It's relatively easy to use OPACUserJS and OPACUserCSS to change
appearances or hide particular pieces of the page. To add new information,
you must write JavaScript that calls Koha's REST API or a public report,
processes the response, then modifies the page. That's substantially more
complex, though quite possible.

Here's an example of our opac-user.pl JS
<https://github.com/cca/koha_snippets/blob/main/catalog-js/opac-user.js>.
The commented out code is a trivial example of using a public report to
modify the page (we hide the "summary note" if the user is not a student).

If you meant editing the actual Perl template, that's also possible, but
then you have to re-apply your modifications with every Koha upgrade.

Best,

ERIC PHETTEPLACE Systems Librarian, Libraries (he/him)

ephetteplace at cca.edu | o 510.594.3660 (cca)

5212 Broadway | Oakland, CA | 94618

CCA is situated on the traditional unceded lands of the Ohlone peoples.

Black-owned bookstores in Oakland: Ashay by the Bay
<https://ashaybythebay.com/>, Marcus Books
<https://www.facebook.com/marcus.books/>

:(){ :|: & };:


On Mon, Dec 20, 2021 at 1:30 PM Bales (US), Tasha R <
tasha.r.bales at boeing.com> wrote:

> Has anyone tweaked opac-user.tt?  I'd love to swap out the Author column
> in the view of checked out items to Publication Date.  Just checking.  I
> don't expect these are easily tweaked, but you never know.
>
> Thanks for your time,
>
>
> Tasha Bales
> Enterprise Services
> http://isesi.web.boeing.com/
>
>
> _______________________________________________
>
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>


More information about the Koha mailing list