From 066d2cd08fdd31ebba3cca10ced3b88731fa923f Mon Sep 17 00:00:00 2001 From: William Moore Date: Wed, 19 Apr 2023 16:59:20 +0100 Subject: [PATCH] Remove Publication Title from description in study_parser.py --- pyidr/study_parser.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pyidr/study_parser.py b/pyidr/study_parser.py index 5c0273c0..11fd519e 100755 --- a/pyidr/study_parser.py +++ b/pyidr/study_parser.py @@ -405,25 +405,18 @@ def __str__(self): def generate_description(self, component): """Generate the description of the study/experiment/screen""" - publication_title = "" - if component["Study Publication Title"]: - # Only display the first publication - publication_title = ( - "Publication Title\n%(Study Publication Title)s" % - component).split('\t')[0] + "\n\n" if "Type" in component: key = "%s Description" % component["Type"] else: key = "Study Description" - component_title = ( - "%s\n%s" % (key, component[key])) + component_title = component[key] if "Study Version History" in component: history = ("\n\nVersion History\n%s" % component["Study Version History"]) else: history = "" - return publication_title + component_title + history + return component_title + history def generate_annotation(self, component): """Generate the map annotation of the study/experiment/screen"""