NCBI C++ ToolKit
Typedefs | Functions | Variables
doi_lookup.cpp File Reference
#include <ncbi_pch.hpp>
#include <gui/objutils/doi_lookup.hpp>
#include <gui/objutils/registry.hpp>
#include <connect/ncbi_http_session.hpp>
#include <sstream>
#include <misc/jsonwrapp/jsonwrapp.hpp>
#include <objects/biblio/Cit_jour.hpp>
#include <objects/biblio/Title.hpp>
#include <objects/biblio/Imprint.hpp>
#include <objects/general/Date.hpp>
#include <objects/general/Date_std.hpp>
#include <objects/pub/Pub.hpp>
#include <objects/pub/Pub_equiv.hpp>
#include <objects/pub/Pub_set.hpp>
#include <objects/biblio/Cit_art.hpp>
#include <objects/biblio/Auth_list.hpp>
#include <objects/biblio/Author.hpp>
#include <objects/general/Person_id.hpp>
#include <objects/general/Name_std.hpp>
#include <objects/biblio/Affil.hpp>
#include <objects/biblio/DOI.hpp>
#include <objects/biblio/ArticleId.hpp>
#include <objects/biblio/ArticleIdSet.hpp>
#include <objtools/validator/utilities.hpp>
#include <objtools/cleanup/capitalization_string.hpp>
#include <misc/xmlwrapp/document.hpp>
#include <gui/objutils/gui_eutils_client.hpp>
#include <html/html.hpp>
#include <chrono>
+ Include dependency graph for doi_lookup.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.


typedef SStaticPair< const char *, const char * > TISOShortcutPairElem
typedef CStaticArrayMap< const char *, const char *, PNocase_CStrTISOShortcutMap


 USING_SCOPE (objects)
void FixAuthorCap (string &name, bool bApostrophes)
string s_GetValFromChildren (xml::node &node)
string s_GetTitleSuggestion (const string &medline, const string &title, const string &issn)
void s_GetTitle (xml::node &node, string &medline, string &title, string &issn, vector< string > &titles)
static void ExtractMiddleInitial (string &name, string &initial)
 DEFINE_STATIC_ARRAY_MAP (TISOShortcutMap, sc_ISOShortcutMap, k_iso_shortcut_pair_map)


static const TISOShortcutPairElem k_iso_shortcut_pair_map []

Typedef Documentation

◆ TISOShortcutMap

Definition at line 1090 of file doi_lookup.cpp.

◆ TISOShortcutPairElem

Definition at line 1073 of file doi_lookup.cpp.

Function Documentation


sc_ISOShortcutMap  ,

◆ ExtractMiddleInitial()

static void ExtractMiddleInitial ( string name,
string initial 

◆ FixAuthorCap()

void FixAuthorCap ( string name,
bool  bApostrophes 

◆ s_GetTitle()

void s_GetTitle ( xml::node node,
string medline,
string title,
string issn,
vector< string > &  titles 

◆ s_GetTitleSuggestion()

string s_GetTitleSuggestion ( const string medline,
const string title,
const string issn 

Definition at line 618 of file doi_lookup.cpp.

References NStr::IsBlank(), and kEmptyStr.

Referenced by CDoiLookup::LookupIsojta(), and s_GetTitle().

◆ s_GetValFromChildren()

string s_GetValFromChildren ( xml::node node)


USING_SCOPE ( objects  )

Variable Documentation

◆ k_iso_shortcut_pair_map

const TISOShortcutPairElem k_iso_shortcut_pair_map[]
Initial value:
= {
{ "Antimicrobial Agents and Chemotherapy", "Antimicrob Agents Chemother" },
{ "Cell", "Cell" },
{ "Genes", "Genes Basel" },
{ "IJSEM", "Int J Syst Evol Microbiol" },
{ "Journal of Clinical Microbiology", "J Clin Microbiol" },
{ "journal of microbiology", "J Microbiol" },
{ "Journal of Virology", "J Virol" },
{ "mitochondrial DNA A", "Mitochondrial DNA A DNA Mapp Seq Anal" },
{ "mitochondrial DNA B", "Mitochondrial DNA B Resour" },
{ "Nature", "Nature" },
{ "Nucleic Acids Research", "Nucleic Acids Res" },
{ "Science", "Science" },
{ "Virology", "Virology" },

Definition at line 1074 of file doi_lookup.cpp.

Modified on Sat Dec 02 09:20:37 2023 by rev. 669887