Issue Number | 4463 |
---|---|
Summary | [Citations] Problem Importing Citation on PROD |
Created | 2018-04-19 17:10:10 |
Issue Type | Bug |
Submitted By | Juthe, Robin (NIH/NCI) [E] |
Assigned To | Kline, Bob (NIH/NCI) [C] |
Status | Closed |
Resolved | 2018-05-02 16:15:12 |
Resolution | Fixed |
Path | /home/bkline/backups/jira/ocecdr/issue.224530 |
I'm running into problems importing the following citation on PROD: PMID: 29277811
The CDR error message reads:
An error has occurred
Unable to find article title
Can you give me a rough idea of the time when the attempted import failed?
I tried it a few times - twice right before I entered this ticket (5:05 or so) and once just now (5:40). Thanks!
The title starts with a gene name - not sure if that could be a problem? I've imported several other citations successfully in the past half hour.
Yep, that's the problem. Here's the patch for the workaround:
--- a/Inetpub/wwwroot/cgi-bin/cdr/CiteSearch.py
+++ b/Inetpub/wwwroot/cgi-bin/cdr/CiteSearch.py
@@ -110,7 +110,7 @@ def getPubmedArticle(doc):
#----------------------------------------------------------------------
def getArticleTitle(article):
for node in article.findall("MedlineCitation/Article/ArticleTitle"):
- return node.text
+ return cdr.get_text(node)
#----------------------------------------------------------------------
# Retrieve an XML document for a Pubmed article from NLM.
I propose that we merge this fix into the patch for OCECDR-4434, which we are planning to apply next month.
Patch applied on DEV. We will apply this along with the patch for OCECDR-4434. Ready for user testing.
Verified on DEV. Thanks!
I also confirmed that an abstract beginning with a gene name (e.g., PMID: 28620008) also displayed correctly in the citation record.
CBIIT has applied the patch to STAGE. Please test importing a citation whose title begins with markup on that tier.
I was able to import PMID 29277811 successfully on STAGE. thanks!
The patch is on PROD. Please import PMID 29277811 on that tier.
Done. Verified on PROD. Thank you!
Elapsed: 0:00:00.001987