From 712e2dd1141223e53853ece1adb88ba4ff5e99a9 Mon Sep 17 00:00:00 2001 From: Aref Shafaei Date: Mon, 4 Mar 2024 14:42:35 -0800 Subject: [PATCH] allow passing bag_idempotent prop to export config --- docs/user-docs/export.md | 3 ++- js/export.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/user-docs/export.md b/docs/user-docs/export.md index e3f7a456..d8a732c5 100644 --- a/docs/user-docs/export.md +++ b/docs/user-docs/export.md @@ -55,7 +55,8 @@ To have a overall picture of how the export templates look like, you can refer t "transforms": [], // refer to export module for more details "postprocessors": [], // refer to export module for more details "public": , // refer to export module for more details - "bag_archiver": // refer to export module for more details + "bag_archiver": , // refer to export module for more details + "bag_idempotent": // refer to export module for more details (defaulted to false it not present) } ] } diff --git a/js/export.js b/js/export.js index d154a97b..52476e9f 100644 --- a/js/export.js +++ b/js/export.js @@ -409,6 +409,9 @@ if (template.bag_archiver != null) { exportParameters.bag.bag_archiver = template.bag_archiver; } + if (template.bag_idempotent != null) { + exportParameters.bag.bag_idempotent = template.bag_idempotent; + } this._exportParameters = exportParameters; }