From d2025f0e20a636a734a204024a88be71b764c0e3 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 11 Jun 2024 04:53:05 +0000 Subject: [PATCH] Bug 27063: Add modal for linking a basket order to a different record Still WIP --- .../prog/en/modules/acqui/basket.tt | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index c815cadc757..66672f1c0c1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -723,6 +723,8 @@ Modify
Transfer +
+ Link to different record [% END %] [% END %] @@ -885,6 +887,50 @@ [% END # /UNLESS ( closedate ) %] + + + [% END # /IF ( delete_confirmed ) %] [% END # /IF ( NO_BOOKSELLER ) %] [% ELSE %] @@ -1106,6 +1152,15 @@ $(this).find("legend").html(legend); $(this).find("input:text").focus(); }); + + $(".relink_order").click(function(){ + var basket = $(this).data("basketname"); + var ordernumber = $(this).data("ordernumber"); + var legend = _("Relink order no. %s in basket %s").format(ordernumber, basket); + $("#relinkOrder").find("h4").text( legend ); + $("#relinkOrder").find("legend").html(legend); + $("#relinkOrder").find("input:text").focus(); + }); }); -- 2.39.2