+
+
+ {% if reference.pubmed %}
+
+
+
+
+ {% include 'pubmed_modal.html' %}
+
+
+
+
+
+ {% endif %}
+
+
{{reference.comboTxt}}
diff --git a/gn2/wqflask/templates/pubmed_modal.html b/gn2/wqflask/templates/pubmed_modal.html
new file mode 100644
index 00000000..96047e9f
--- /dev/null
+++ b/gn2/wqflask/templates/pubmed_modal.html
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+ Abstract
+
+
+
{{reference.pubmed[0].get('abstract')|safe}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--
cgit 1.4.1
From b9cef93cb52aece67b7178f54033286ef80925b6 Mon Sep 17 00:00:00 2001
From: Alexander_Kabui
Date: Mon, 18 Mar 2024 13:51:59 +0300
Subject: add pumed search link
---
gn2/wqflask/templates/gnqa_answer.html | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/gn2/wqflask/templates/gnqa_answer.html b/gn2/wqflask/templates/gnqa_answer.html
index 51ea71c6..f8010931 100644
--- a/gn2/wqflask/templates/gnqa_answer.html
+++ b/gn2/wqflask/templates/gnqa_answer.html
@@ -131,10 +131,10 @@ outline: none;
{% if reference.pubmed %}
-
+
-
@@ -180,9 +180,15 @@ outline: none;
{% if reference.pubmed %}
-
- Pubmed Link
-
+
+
+
+
+ *See PubMed Search
+
+
+
+
{% include 'pubmed_modal.html' %}
--
cgit 1.4.1
From 7a1646add6b48ff65881a9253c3346c39fb3715d Mon Sep 17 00:00:00 2001
From: Alexander_Kabui
Date: Mon, 18 Mar 2024 17:49:09 +0300
Subject: linnkify abstract and references
---
gn2/wqflask/templates/gnqa_answer.html | 44 +++++++++++++++++++++++++----
gn2/wqflask/templates/pubmed_modal.html | 49 ++++++++++++++++++++++++++++-----
2 files changed, 81 insertions(+), 12 deletions(-)
diff --git a/gn2/wqflask/templates/gnqa_answer.html b/gn2/wqflask/templates/gnqa_answer.html
index f8010931..fea487b9 100644
--- a/gn2/wqflask/templates/gnqa_answer.html
+++ b/gn2/wqflask/templates/gnqa_answer.html
@@ -134,7 +134,7 @@ outline: none;
- *See PubMed Search
+ See PubMed Info
@@ -146,7 +146,7 @@ outline: none;
{% endif %}
-
{{reference.comboTxt}}
+
{{reference.comboTxt}}
@@ -184,7 +184,7 @@ outline: none;
- *See PubMed Search
+ See PubMed Info
@@ -201,7 +201,7 @@ outline: none;
-
{{reference.comboTxt}}
+
{{reference.comboTxt}}
@@ -243,7 +243,6 @@ $('.panel-collapse').on('show.bs.collapse', function () {
document.addEventListener('DOMContentLoaded', function() {
const GN_SERVER_URL = {{gn_server_url|tojson}}
- console.log(GN_SERVER_URL)
$('#globalsearchform').hide()
$('#gnqna_search_home').show()
$('footer').hide()
@@ -296,5 +295,40 @@ if(likeBtn.hasClass("blue")){
})
+
+
+
+
+
+
+
{% endblock %}
diff --git a/gn2/wqflask/templates/pubmed_modal.html b/gn2/wqflask/templates/pubmed_modal.html
index 96047e9f..f1bb05cb 100644
--- a/gn2/wqflask/templates/pubmed_modal.html
+++ b/gn2/wqflask/templates/pubmed_modal.html
@@ -1,5 +1,27 @@
+
@@ -11,8 +33,21 @@
{{reference.pubmed[0].get('title')}}
-
- {{reference.pubmed[0].get('authors')}}
+
+
+
+
+ Authors:
+
+ Expand
+
+
+
+
+ {{reference.pubmed[0].get('authors')}}
+
+
+
PMID:{{reference.pubmed[0].get('pub_id')}}
@@ -22,16 +57,15 @@
Abstract
-
+
{{reference.pubmed[0].get('abstract')|safe}}
-
-
-
+
+
@@ -41,3 +75,4 @@
+
--
cgit 1.4.1