NCBI C++ ToolKit
Classes | Enumerations | Functions | Variables
fix_pub Namespace Reference

Classes

struct  SErrorSubcodes
 

Enumerations

enum  EFixPubErrorCategory { err_Reference = 1 , err_Print , err_AuthList }
 
enum  EFixPubReferenceError {
  err_Reference_MuidNotFound = 1 , err_Reference_SuccessfulMuidLookup , err_Reference_OldInPress , err_Reference_No_reference ,
  err_Reference_Multiple_ref , err_Reference_Multiple_muid , err_Reference_MedlineMatchIgnored , err_Reference_MuidMissmatch ,
  err_Reference_NoConsortAuthors , err_Reference_DiffConsortAuthors , err_Reference_PmidMissmatch , err_Reference_Multiple_pmid ,
  err_Reference_FailedToGetPub , err_Reference_MedArchMatchIgnored , err_Reference_SuccessfulPmidLookup , err_Reference_PmidNotFound ,
  err_Reference_NoPmidJournalNotInPubMed , err_Reference_PmidNotFoundInPress , err_Reference_NoPmidJournalNotInPubMedInPress
}
 
enum  EFixPubPrintError { err_Print_Failed = 1 }
 
enum  EFixPubAuthListError { err_AuthList_SignificantDrop = 1 , err_AuthList_PreserveGB , err_AuthList_LowMatch }
 

Functions

void MedlineToISO (CCit_art &cit_art)
 
void SplitMedlineEntry (CPub_equiv::Tdata &medlines)
 
bool IsInpress (const CCit_art &cit_art)
 
bool MULooksLikeISSN (const string &str)
 
static void s_GetESearchIds (CESearch_Request &req, const string &term, list< string > &ids)
 
static bool s_IsIndexed (CRef< CEUtils_ConnContext > pContext, const string &id)
 
bool MUIsJournalIndexed (const string &journal)
 
void PrintPub (const CCit_art &cit_art, bool found, bool auth, long muid, IMessageListener *err_log)
 
bool IsFromBook (const CCit_art &art)
 
static void MoveAuthors (CCit_art &to, CCit_art &from)
 
bool TenAuthorsCompare (CCit_art &cit_old, CCit_art &cit_new)
 
size_t ExtractConsortiums (const CAuth_list::C_Names::TStd &names, CAuth_list::C_Names::TStr &extracted)
 
static bool s_GetConsortia (const list< CRef< CAuthor >> &authors, list< string > &consortia)
 
static void s_TrimPrefixThe (CTempString &str)
 
static bool s_ConsortiaMatch (const list< string > &x, const list< string > &y)
 
static void s_ProcessConsortia (const CCit_art &old_cit, CCit_art &new_cit, IMessageListener *pListener)
 
void GetFirstTenNames (const CAuth_list::C_Names::TStd &names, list< CTempString > &res)
 
bool TenAuthorsProcess (CCit_art &cit, CCit_art &new_cit, IMessageListener *err_log)
 
void MergeNonPubmedPubIds (const CCit_art &cit_old, CCit_art &cit_new)
 
bool NeedToPropagateInJournal (const CCit_art &cit_art)
 
void PropagateInPress (bool inpress, CCit_art &cit_art)
 
void MedlineToISO (CCit_art &cit_art, void *)
 
void SplitMedlineEntry (CPub_equiv::Tdata &medlines, void *)
 

Variables

static map< int, SErrorSubcodesERROR_CODE_STR
 
static const size_t MAX_MATCH_COEFF = 3
 

Enumeration Type Documentation

◆ EFixPubAuthListError

Enumerator
err_AuthList_SignificantDrop 
err_AuthList_PreserveGB 
err_AuthList_LowMatch 

Definition at line 92 of file pub_fix_aux.hpp.

◆ EFixPubErrorCategory

Enumerator
err_Reference 
err_Print 
err_AuthList 

Definition at line 56 of file pub_fix_aux.hpp.

◆ EFixPubPrintError

Enumerator
err_Print_Failed 

Definition at line 87 of file pub_fix_aux.hpp.

◆ EFixPubReferenceError

Enumerator
err_Reference_MuidNotFound 
err_Reference_SuccessfulMuidLookup 
err_Reference_OldInPress 
err_Reference_No_reference 
err_Reference_Multiple_ref 
err_Reference_Multiple_muid 
err_Reference_MedlineMatchIgnored 
err_Reference_MuidMissmatch 
err_Reference_NoConsortAuthors 
err_Reference_DiffConsortAuthors 
err_Reference_PmidMissmatch 
err_Reference_Multiple_pmid 
err_Reference_FailedToGetPub 
err_Reference_MedArchMatchIgnored 
err_Reference_SuccessfulPmidLookup 
err_Reference_PmidNotFound 
err_Reference_NoPmidJournalNotInPubMed 
err_Reference_PmidNotFoundInPress 
err_Reference_NoPmidJournalNotInPubMedInPress 

Definition at line 63 of file pub_fix_aux.hpp.

Function Documentation

◆ ExtractConsortiums()

size_t fix_pub::ExtractConsortiums ( const CAuth_list::C_Names::TStd names,
CAuth_list::C_Names::TStr extracted 
)

◆ GetFirstTenNames()

void fix_pub::GetFirstTenNames ( const CAuth_list::C_Names::TStd names,
list< CTempString > &  res 
)

Definition at line 789 of file pub_fix.cpp.

References names.

Referenced by BOOST_AUTO_TEST_CASE(), and TenAuthorsProcess().

◆ IsFromBook()

bool fix_pub::IsFromBook ( const CCit_art art)

◆ IsInpress()

bool fix_pub::IsInpress ( const CCit_art cit_art)

◆ MedlineToISO() [1/2]

void fix_pub::MedlineToISO ( CCit_art cit_art)

◆ MedlineToISO() [2/2]

void fix_pub::MedlineToISO ( CCit_art cit_art,
void *   
)
inline

Definition at line 101 of file pub_fix_aux.hpp.

References MedlineToISO().

◆ MergeNonPubmedPubIds()

void fix_pub::MergeNonPubmedPubIds ( const CCit_art cit_old,
CCit_art cit_new 
)

◆ MoveAuthors()

static void fix_pub::MoveAuthors ( CCit_art to,
CCit_art from 
)
static

◆ MUIsJournalIndexed()

bool fix_pub::MUIsJournalIndexed ( const string journal)

◆ MULooksLikeISSN()

bool fix_pub::MULooksLikeISSN ( const string str)

Definition at line 232 of file pub_fix.cpp.

References i, NStr::IsBlank(), isdigit(), and str().

Referenced by BOOST_AUTO_TEST_CASE(), and MUIsJournalIndexed().

◆ NeedToPropagateInJournal()

bool fix_pub::NeedToPropagateInJournal ( const CCit_art cit_art)

◆ PrintPub()

void fix_pub::PrintPub ( const CCit_art cit_art,
bool  found,
bool  auth,
long  muid,
IMessageListener err_log 
)

Definition at line 456 of file pub_fix.cpp.

References CTime::eCurrent, eDiag_Error, eDiag_Info, eDiag_Warning, CImprint_Base::ePrepub_in_press, ERR_POST_TO_LISTENER, err_Print, err_Print_Failed, err_Reference, err_Reference_MedArchMatchIgnored, err_Reference_NoPmidJournalNotInPubMed, err_Reference_NoPmidJournalNotInPubMedInPress, err_Reference_OldInPress, err_Reference_PmidNotFound, err_Reference_PmidNotFoundInPress, err_Reference_SuccessfulPmidLookup, CTitle_Base::Get(), CCit_art_Base::GetAuthors(), CCit_art_Base::C_From::GetBook(), CPerson_id_Base::GetConsortium(), CImprint_Base::GetDate(), CCit_art_Base::GetFrom(), CCit_book_Base::GetImp(), CName_std_Base::GetInitials(), CCit_art_Base::C_From::GetJournal(), CName_std_Base::GetLast(), CAuthor_Base::GetName(), CPerson_id_Base::GetName(), CAuth_list_Base::GetNames(), CImprint_Base::GetPages(), CImprint_Base::GetPrepub(), CAuth_list_Base::C_Names::GetStd(), CDate_Base::GetStd(), CAuth_list_Base::C_Names::GetStr(), CTitle::GetTitle(), CCit_book_Base::GetTitle(), CImprint_Base::GetVolume(), CDate_std_Base::GetYear(), CCit_art_Base::C_From::IsBook(), CPerson_id_Base::IsConsortium(), CCit_art_Base::C_From::IsJournal(), CPerson_id_Base::IsName(), CTitle_Base::IsSet(), CCit_art_Base::IsSetAuthors(), CImprint_Base::IsSetDate(), CCit_art_Base::IsSetFrom(), CCit_book_Base::IsSetImp(), CName_std_Base::IsSetInitials(), CName_std_Base::IsSetLast(), CAuthor_Base::IsSetName(), CAuth_list_Base::IsSetNames(), CImprint_Base::IsSetPages(), CImprint_Base::IsSetPrepub(), CCit_book_Base::IsSetTitle(), CImprint_Base::IsSetVolume(), CDate_std_Base::IsSetYear(), CAuth_list_Base::C_Names::IsStd(), CDate_Base::IsStd(), journal(), MUIsJournalIndexed(), and str().

Referenced by BOOST_AUTO_TEST_CASE(), CPubFix::FixPub(), and CPubFix::FixPubEquiv().

◆ PropagateInPress()

void fix_pub::PropagateInPress ( bool  inpress,
CCit_art cit_art 
)

◆ s_ConsortiaMatch()

static bool fix_pub::s_ConsortiaMatch ( const list< string > &  x,
const list< string > &  y 
)
static

◆ s_GetConsortia()

static bool fix_pub::s_GetConsortia ( const list< CRef< CAuthor >> &  authors,
list< string > &  consortia 
)
static

Definition at line 676 of file pub_fix.cpp.

Referenced by s_ProcessConsortia().

◆ s_GetESearchIds()

static void fix_pub::s_GetESearchIds ( CESearch_Request req,
const string term,
list< string > &  ids 
)
static

◆ s_IsIndexed()

static bool fix_pub::s_IsIndexed ( CRef< CEUtils_ConnContext pContext,
const string id 
)
static

◆ s_ProcessConsortia()

static void fix_pub::s_ProcessConsortia ( const CCit_art old_cit,
CCit_art new_cit,
IMessageListener pListener 
)
static

◆ s_TrimPrefixThe()

static void fix_pub::s_TrimPrefixThe ( CTempString str)
static

◆ SplitMedlineEntry() [1/2]

void fix_pub::SplitMedlineEntry ( CPub_equiv::Tdata medlines)

◆ SplitMedlineEntry() [2/2]

void fix_pub::SplitMedlineEntry ( CPub_equiv::Tdata medlines,
void *   
)
inline

Definition at line 103 of file pub_fix_aux.hpp.

References SplitMedlineEntry().

◆ TenAuthorsCompare()

bool fix_pub::TenAuthorsCompare ( CCit_art cit_old,
CCit_art cit_new 
)

◆ TenAuthorsProcess()

bool fix_pub::TenAuthorsProcess ( CCit_art cit,
CCit_art new_cit,
IMessageListener err_log 
)

Variable Documentation

◆ ERROR_CODE_STR

map<int, SErrorSubcodes> fix_pub::ERROR_CODE_STR
static

Definition at line 88 of file pub_fix.cpp.

Referenced by CPubFix::GetErrorId().

◆ MAX_MATCH_COEFF

const size_t fix_pub::MAX_MATCH_COEFF = 3
static

Definition at line 616 of file pub_fix.cpp.

Referenced by TenAuthorsCompare(), and TenAuthorsProcess().

Modified on Sun Jul 21 04:16:21 2024 by modify_doxy.py rev. 669887