[Koha] Hide MARC View separator

Mark Alexander marka at pobox.com
Mon Sep 18 12:55:18 NZST 2017


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_from_OPAC

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.


More information about the Koha mailing list