From b5dc05f45360076f94cf2be9d14d721b2edc83ac Mon Sep 17 00:00:00 2001 From: Suireen <isysiebels@hotmail.de> Date: Thu, 2 Dec 2021 15:32:28 +0100 Subject: [PATCH] Info Box Version 1 --- Info Box.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ citation_parser_ui.py | 7 ++++++- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 Info Box.txt diff --git a/Info Box.txt b/Info Box.txt new file mode 100644 index 0000000..b03d2f4 --- /dev/null +++ b/Info Box.txt @@ -0,0 +1,43 @@ +English + +Show Info: Can be activated and deactivated by clicking on the button. + +Input: input by entering a DOI ("Digital Object Identifier") + +Drag and drop or click to select a file to upload: entering multiple DOI by txt-file is only possible if every DOI has its own line. + +Recursion: + +Clear All: clearing all inputs + +Clear Selected: clearing all selected inputs + +Generate Graph: generates the graph + +Update Automatically: updates Automatically the graph for every new input + +Smart Input: checks the correctness of the entered DOI and shows a nicer depiction: Author, Journal, publication date. + + + +German + +Show Info: Durch wiederholtes klicken kann das Fenster ein und aus geblendet werden. + +Input: Die Eingabe erfolgt in Form eines DOI ("Digital Object Identifier") + +Drag and drop or click to select a file to upload: Mehrere DOI in einem txt-Dokument müssen untereinander angeordnet sein. + +Recursion: + +Clear All: alle Eingaben werden gelöscht + +Clear Selected: alle markierten Eingaben werden gelöscht + +Generate Graph: generiert den zugehörigen Graphen + +Update Automatically: automatische Aktualisierung des Graphen nach neuer Eingabe + +Smart Input: direkte Überprüfung der Eingabe auf Richtigkeit zudem wird nicht mehr der DOI angezeigt sondern: Der Autor, Das Journal, Das Veröffentlichungsdatum. + + diff --git a/citation_parser_ui.py b/citation_parser_ui.py index 66529c3..c4637e0 100644 --- a/citation_parser_ui.py +++ b/citation_parser_ui.py @@ -154,7 +154,12 @@ def show_hide_info_box(n_clicks): if n_clicks % 2 == 0: return '' else: - return 'Hier koennte Ihre Werbung stehen' + list_ = open("Info Box.txt").read().split() + f = open('Info Box.txt', 'r') + boxcontent = f.read() + #print(boxcontent) + return html.Div(boxcontent, style={'whiteSpace': 'pre-line'}) + f.close() ''' Basic structure for a callback that generates an output -- GitLab