From d9781035de74e1344cd1ebebc0714dbf1adb0935 Mon Sep 17 00:00:00 2001
From: Chris Hallberg <crhallberg@gmail.com>
Date: Tue, 3 Mar 2020 14:57:41 -0500
Subject: [PATCH] Add Summon formats to EndNoteWeb transform. (#1572)

- This makes the format transformation tolerant of a wider range of terms (which helps with Summon, but may also be beneficial for other platforms/situations).
- Right now, conference proceedings and book chapters are treated as "generic," but it may be desirable to be more specific if documentation can be found on what values to use.
---
 .../RecordDriver/AbstractBase/export-endnoteweb.phtml       | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/themes/root/templates/RecordDriver/AbstractBase/export-endnoteweb.phtml b/themes/root/templates/RecordDriver/AbstractBase/export-endnoteweb.phtml
index 5aa1284f9f9..c3f86e304bf 100644
--- a/themes/root/templates/RecordDriver/AbstractBase/export-endnoteweb.phtml
+++ b/themes/root/templates/RecordDriver/AbstractBase/export-endnoteweb.phtml
@@ -9,14 +9,18 @@ if (is_array($formats)) {
                 break;
             case "journal":
             case "article":
+            case "journal article":
                 $format = "JOUR";
                 break;
             case "thesis":
+            case "dissertation":
                 $format = "THES";
                 break;
+            case "book chapter":
+            case "conference proceeding":
+                // TODO: Find better codes for these; for now they'll drop through to "generic."
             default:
                 $format = "GEN";
-                break;
         }
 
         echo "TY  - $format\n";
-- 
GitLab