Hi, Does anyone know how to hide MARC View separator on book Details page? I'd like to have only Normal View and ISBD View. Many thanks for any tip. Diva -- D'Almeida Ateliê *arte final desde 1997*divalmeida.com S E T Ú B A L . P O R T U G A L
Excerpts from | dalmeida |'s message of 2017-09-16 18:57:03 +0100:
Does anyone know how to hide MARC View separator on book Details page? I'd like to have only Normal View and ISBD View.
I used the following as a hint: https://wiki.koha-community.org/wiki/JQuery_Library#Hide_Marc_.26_ISBD_view_... which recommended using: $(".view a:contains('MARC view')").hide(); But using Firefox's "Inspect Element" feature, I saw that the "MARC view" tab has an ID of "MARCview". So I was able to simplify the Javascript in OPACUserJS preference to the following: $(document).ready(function(){ $("#MARCview").hide(); }); Note: I tested this only on 17.05.
But using Firefox's "Inspect Element" feature, I saw that the "MARC view" tab has an ID of "MARCview".
True, but the <span> containing #MARCview has a style as well, so to hide both completely you'll need: $(document).ready(function(){ $("#MARCview").parent().hide(); }); -- Owen -- Web Developer Athens County Public Libraries http://www.myacpl.org
participants (3)
-
Mark Alexander -
Owen Leonard -
| dalmeida |