From f758b7c3219fd5308d3e47bf94288fca0238e8f3 Mon Sep 17 00:00:00 2001 From: titima15 Date: Fri, 2 Dec 2022 20:10:27 +0000 Subject: [PATCH 01/33] customized add catalog dialog --- lib/SGN/Controller/Catalog.pm | 3 ++ mason/order/add_catalog_item_dialog.mas | 58 +++++++++++++++++++++++++ mason/order/catalog.mas | 5 ++- 3 files changed, 64 insertions(+), 2 deletions(-) diff --git a/lib/SGN/Controller/Catalog.pm b/lib/SGN/Controller/Catalog.pm index ea459f12fa..6e00307e81 100644 --- a/lib/SGN/Controller/Catalog.pm +++ b/lib/SGN/Controller/Catalog.pm @@ -29,6 +29,9 @@ sub stock_catalog :Path('/catalog/view') :Args(0) { my $additional_order_info = $c->config->{additional_order_info}; $c->stash->{additional_order_info} = $additional_order_info; + my $ordering_site = $c->config->{ordering_site}; + $c->stash->{ordering_site} = $ordering_site; + $c->stash->{template} = '/order/catalog.mas'; } diff --git a/mason/order/add_catalog_item_dialog.mas b/mason/order/add_catalog_item_dialog.mas index 4c2d662b96..3f1f8f975f 100644 --- a/mason/order/add_catalog_item_dialog.mas +++ b/mason/order/add_catalog_item_dialog.mas @@ -1,5 +1,6 @@ <%args> $timestamp => localtime() +$ordering_site => undef +% if ($ordering_site eq 'BAT') { +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+
+
+
+ +
+ +
+
+%} else {
@@ -78,6 +135,7 @@ $timestamp => localtime()
+%} diff --git a/mason/order/catalog.mas b/mason/order/catalog.mas index 5bb89b2233..cc7847971c 100644 --- a/mason/order/catalog.mas +++ b/mason/order/catalog.mas @@ -3,6 +3,7 @@ $check_vendor_role $ordering_service_name => undef $additional_order_info => undef +$ordering_site => undef @@ -129,8 +130,8 @@ $additional_order_info => undef -<& /order/upload_catalog_items_dialog.mas &> -<& /order/add_catalog_item_dialog.mas &> +<& /order/upload_catalog_items_dialog.mas, ordering_site => $ordering_site&> +<& /order/add_catalog_item_dialog.mas, ordering_site => $ordering_site &>