diff --git a/Info Box.txt b/Info Box.txt new file mode 100644 index 0000000000000000000000000000000000000000..b03d2f4f225a04e7d52b816e1c78ef66b7663947 --- /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 66529c37a74c6416c34d296246a25c61761ef0cb..c4637e01614bd9ddd46d2906e50cdcf310d9f116 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