[Koha-bugs] [Bug 29756] No Place hold button on OPAC details page if number of items exceeds OpacMaxItemsToDisplay

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 30 22:12:36 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29756

--- Comment #3 from Christopher Brannon <cbrannon at cdalibrary.org> ---
Temporary workaround until this is fixed:

  //Add missing hold link to opac-detail when holdings are hidden (v21.05)
  if ($('#opac-detail').length) {
    if($('#holdings:contains("This record has many physical items")').length){
      var detailBib = $('#catalogue_detail_biblio').attr('data-biblionumber');
      $('#action').prepend('<li><a class="reserve btn btn-link btn-lg"
href="/cgi-bin/koha/opac-reserve.pl?biblionumber=' + detailBib + '"><i
class="fa fa-fw fa-bookmark" aria-hidden="true"></i> Place hold</a></li>');
    }
  }
  //END Add missing hold link to opac-detail when holdings are hidden

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list