Bugzilla – Attachment 177292 Details for
Bug 38040
IndependentBranches doesn't prevent editing other libraries' holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38040: Prevent editing other libraries' holds when IndependentBranches is enabled
Bug-38040-Prevent-editing-other-libraries-holds-wh.patch (text/plain), 2.05 KB, created by
William Lavoie
on 2025-01-28 19:51:06 UTC
(
hide
)
Description:
Bug 38040: Prevent editing other libraries' holds when IndependentBranches is enabled
Filename:
MIME Type:
Creator:
William Lavoie
Created:
2025-01-28 19:51:06 UTC
Size:
2.05 KB
patch
obsolete
>From e1791e90d9b84a757b32d7a6a3780cefe125ed87 Mon Sep 17 00:00:00 2001 >From: William Lavoie <william.lavoie@inLibro.com> >Date: Mon, 27 Jan 2025 14:49:24 -0500 >Subject: [PATCH] Bug 38040: Prevent editing other libraries' holds when > IndependentBranches is enabled > >--- > .../prog/en/modules/reserve/request.tt | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >index 22bd8a8ab9..804c526168 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >@@ -1860,6 +1860,22 @@ > return false; > }); > >+ [% IF (!CAN_user_superlibrarian) %] >+ var user_branch = "[% Branches.GetLoggedInBranchcode %]"; >+ if(user_branch !== undefined && user_branch !== ""){ >+ $('#patron_holds_table tbody tr').each(function() { >+ var link = $(this).find('a[href*="member"]'); >+ var rankRequest = $(this).find("select[name='rank-request']"); >+ if (!link.length){ >+ $(this).find('.cancel-hold, .fa-trash').addClass('disabled_trash'); >+ } >+ $(this).find('.select_hold, .rank-request, td a[data-op="cud-move"], .flatpickr, .toggle-suspend, .clear_date, [name*="change_hold_type_"]').addClass('disabled').attr('disabled', 'disabled'); >+ $('.select_hold_all, .hold-arrow').addClass('disabled').attr('disabled', 'disabled'); >+ $('.suspend-hold').prop('disabled', true); >+ }); >+ } >+ [% END %] >+ > [% UNLESS ( patron || patron.borrowernumber || borrowers || noitems || nobiblio ) %] > [% IF ( PatronAutoComplete ) %] > patron_autocomplete($(".search_patron_filter"), { 'link-to': 'reserve', 'url-params': '[% url_biblio_params | url %]' }); >-- >2.43.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38040
:
173400
|
176050
|
177197
|
177198
|
177292
|
177472
|
177492
|
178014
|
178015
|
178016
|
179186
|
179187
|
179714
|
180531
|
180532
|
180581
|
180582
|
180898
|
180899
|
180900
|
182444
|
182445
|
182446
|
182447