From 9d44cc92a754f9234682ac8a7f37791551b50101 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Thu, 7 Nov 2019 09:43:25 -0500
Subject: [PATCH] Add DOI to RIS export.

---
 .../root/templates/RecordDriver/AbstractBase/export-ris.phtml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/themes/root/templates/RecordDriver/AbstractBase/export-ris.phtml b/themes/root/templates/RecordDriver/AbstractBase/export-ris.phtml
index bb3f3ef6c6d..26693164e15 100644
--- a/themes/root/templates/RecordDriver/AbstractBase/export-ris.phtml
+++ b/themes/root/templates/RecordDriver/AbstractBase/export-ris.phtml
@@ -157,6 +157,10 @@ foreach ($this->record($this->driver)->getUrlList() as $url) {
     echo 'UR  - ' . "$url\r\n";
 }
 
+if ($doi = $this->driver->tryMethod('getCleanDOI')) {
+    echo "DO  - $doi\r\n";
+}
+
 // End of Record:
 echo "ER  -\r\n\r\n";
 ?>
-- 
GitLab