Skip to content

Commit

Permalink
docs: comment about place hold action
Browse files Browse the repository at this point in the history
  • Loading branch information
phette23 committed Oct 24, 2024
1 parent ef06ca2 commit 16b7979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalog-js/details-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (location.pathname.match('/cgi-bin/koha/opac-detail.pl')) {
$('#action').append('<li><a class="btn btn-link btn-lg" id="permalink" href="' + permalink + '"><i class="fa fa-fw fa-link"></i> Permanent Link</a></li>')

// if 1) Place Hold not present & 2) at least one item is not a type that doesn't allow holds
// show the Place Hold action. Fixes bug https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34886
// show the Place Hold action _even for unauthenticated users_ (Koha does not by default).
const noHoldTypes = ['Equipment', 'Ebook', 'Object']
let hasHoldableItem = itypes.some(itype => !noHoldTypes.includes(itype))
if (!$('#action .reserve').length && hasHoldableItem) {
Expand Down

0 comments on commit 16b7979

Please sign in to comment.