From 7c2bc038afdd506c1724ae2cdbef9c8de24c2ec6 Mon Sep 17 00:00:00 2001 From: Dave Martin Date: Wed, 19 Jul 2017 15:50:50 +0100 Subject: [PATCH] 1.7.2 minor bug fix for DOIs so they are included in downloads --- CollectoryGrailsPlugin.groovy | 2 +- .../controllers/au/org/ala/collectory/LookupController.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CollectoryGrailsPlugin.groovy b/CollectoryGrailsPlugin.groovy index a2684944..a9016d8b 100644 --- a/CollectoryGrailsPlugin.groovy +++ b/CollectoryGrailsPlugin.groovy @@ -9,7 +9,7 @@ class CollectoryGrailsPlugin { def authenticateService // the plugin version - def version = "1.7.1" + def version = "1.7.2" // the version or versions of Grails the plugin is designed for def grailsVersion = "2.3 > *" // resources that are excluded from plugin packaging diff --git a/grails-app/controllers/au/org/ala/collectory/LookupController.groovy b/grails-app/controllers/au/org/ala/collectory/LookupController.groovy index 568abc23..e8525ad3 100644 --- a/grails-app/controllers/au/org/ala/collectory/LookupController.groovy +++ b/grails-app/controllers/au/org/ala/collectory/LookupController.groovy @@ -299,7 +299,7 @@ class LookupController { switch (format) { case "tab separated": return "${name}\t${citation}\t${rights}\t${link}\t${dataGen}\t${infoWithheld}\t${downloadLimit}\t${pg.uid}\t${doi}" case "map": return ['name': name, 'citation': citation, 'rights': rights, 'link': link, - 'dataGeneralizations': dataGen, 'informationWithheld': infoWithheld, 'downloadLimit': downloadLimit, 'uid': pg.uid, 'doi':doi] + 'dataGeneralizations': dataGen, 'informationWithheld': infoWithheld, 'downloadLimit': downloadLimit, 'uid': pg.uid, 'DOI':doi] case "array": return [name, citation, rights, link, dataGen, infoWithheld, downloadLimit, pg.uid, doi] } }