From e4dba5e4c4a687d74235808c73c514fdda99d02e Mon Sep 17 00:00:00 2001 From: Antoniafriedrich Date: Fri, 13 Dec 2024 11:14:13 +0100 Subject: [PATCH] Refactores printnames template to reduce redundancy --- .../src/main/resources/xsl/e-mail-events.xsl | 29 ++----- .../resources/xsl/import/helperTemplates.xsl | 28 +++++++ .../resources/xsl/metadata/mods-metadata.xsl | 77 +++++++------------ .../src/main/resources/xsl/mods2csv.xsl | 40 ++++------ 4 files changed, 73 insertions(+), 101 deletions(-) create mode 100644 mir-module/src/main/resources/xsl/import/helperTemplates.xsl diff --git a/mir-module/src/main/resources/xsl/e-mail-events.xsl b/mir-module/src/main/resources/xsl/e-mail-events.xsl index 53bb3a9870..bc21608d8a 100644 --- a/mir-module/src/main/resources/xsl/e-mail-events.xsl +++ b/mir-module/src/main/resources/xsl/e-mail-events.xsl @@ -14,7 +14,7 @@ - + type: @@ -121,7 +121,9 @@ - + + + @@ -231,26 +233,5 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + diff --git a/mir-module/src/main/resources/xsl/import/helperTemplates.xsl b/mir-module/src/main/resources/xsl/import/helperTemplates.xsl new file mode 100644 index 0000000000..7324f31caa --- /dev/null +++ b/mir-module/src/main/resources/xsl/import/helperTemplates.xsl @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mir-module/src/main/resources/xsl/metadata/mods-metadata.xsl b/mir-module/src/main/resources/xsl/metadata/mods-metadata.xsl index bfdd11b224..0ea1653a56 100644 --- a/mir-module/src/main/resources/xsl/metadata/mods-metadata.xsl +++ b/mir-module/src/main/resources/xsl/metadata/mods-metadata.xsl @@ -11,6 +11,7 @@ + @@ -78,36 +79,33 @@ - - - -
-
-

- -

- -

- -

- - + + + +
+
+

+ +

+ +

+ +

+
+ + - - - - - - -

- -

-
- -
-
-
+ + +
+ + + +
+
+
+
@@ -268,27 +266,4 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/mir-module/src/main/resources/xsl/mods2csv.xsl b/mir-module/src/main/resources/xsl/mods2csv.xsl index 214cd3301f..5c948d0845 100644 --- a/mir-module/src/main/resources/xsl/mods2csv.xsl +++ b/mir-module/src/main/resources/xsl/mods2csv.xsl @@ -2,7 +2,7 @@ - + - + + + "; @@ -53,7 +55,9 @@ - + + + "; @@ -63,7 +67,9 @@ - + + + "; @@ -78,7 +84,9 @@ - + + + "; @@ -231,27 +239,7 @@ - - - - - - - - - - - - - - - - - - - - - +