Bugzilla – Attachment 168847 Details for
Bug 37309
Improve delete and modify items links on the bibliographic detail page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37309: Fix behaviour when SeparateHoldings is in use
Bug-37309-Fix-behaviour-when-SeparateHoldings-is-i.patch (text/plain), 3.11 KB, created by
Pedro Amorim
on 2024-07-11 16:43:22 UTC
(
hide
)
Description:
Bug 37309: Fix behaviour when SeparateHoldings is in use
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-07-11 16:43:22 UTC
Size:
3.11 KB
patch
obsolete
>From b2730bb3bfa1c050fdbc7f4e55cf47348e32f13d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 11 Jul 2024 14:41:54 +0200 >Subject: [PATCH] Bug 37309: Fix behaviour when SeparateHoldings is in use > >Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> >--- > .../html_helpers/tables/items/catalogue_detail.inc | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc >index d0cfb22f03..3d6cd1a71f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc >@@ -57,7 +57,7 @@ > <span class="itemselection_actions"> > | Actions: > [% IF CAN_user_tools_items_batchdel %] >- <form id="itemselection_action_delete_form" method="post" action="/cgi-bin/koha/tools/batchMod.pl"> >+ <form class="itemselection_action_delete_form" method="post" action="/cgi-bin/koha/tools/batchMod.pl"> > [% INCLUDE 'csrf-token.inc' %] > <input name='src' type='hidden' value='CATALOGUING' /> > <input name='biblionumber' type='hidden' value="[% biblionumber | html %]" /> >@@ -67,7 +67,7 @@ > </form> > [% END %] > [% IF CAN_user_tools_items_batchmod %] >- <form id="itemselection_action_modify_form" method="post" action="/cgi-bin/koha/tools/batchMod.pl"> >+ <form class="itemselection_action_modify_form" method="post" action="/cgi-bin/koha/tools/batchMod.pl"> > [% INCLUDE 'csrf-token.inc' %] > <input name='src' type='hidden' value='CATALOGUING' /> > <input name='biblionumber' type='hidden' value="[% biblionumber | html %]" /> >@@ -95,10 +95,10 @@ > > let items_selection = {}; > >- function _itemSelectionBuildLink(tab_id, form) { >- >- var itemnumbers = items_selection[tab_id]; >+ function _itemSelectionBuildLink(tab_id, link_class) { > >+ let itemnumbers = items_selection[tab_id]; >+ let form = $("#" + tab_id).find(link_class); > $(form).find("input[name='itemnumber']").remove(); > > $(itemnumbers).each(function() { >@@ -107,10 +107,10 @@ > return !!itemnumbers.length > } > function itemSelectionBuildDeleteLink(tab_id) { >- return _itemSelectionBuildLink(tab_id, $('#itemselection_action_delete_form')); >+ return _itemSelectionBuildLink(tab_id, '.itemselection_action_delete_form'); > } > function itemSelectionBuildModifyLink(tab_id) { >- return _itemSelectionBuildLink(tab_id, $('#itemselection_action_modify_form')); >+ return _itemSelectionBuildLink(tab_id, '.itemselection_action_modify_form'); > } > > function itemSelectionBuildActionLinks(tab_id) { >-- >2.39.2
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 37309
:
168777
|
168797
|
168798
|
168799
|
168802
|
168844
|
168845
|
168846
| 168847 |
168848
|
170307
|
170309
|
170700