95 *
label +=
"Unpublished " + year;
99 if (jtitle ==
NULL || jtitle->size() < 3) {
108 if ( !pages.empty() && !is_electronic ) {
124 *
label +=
", " + pages;
128 *
label +=
':' + pages;
135 *
label +=
' ' + year;
141 *
label +=
"In press";
bool GetLabelV1(string *label, TLabelFlags flags) const override
bool GetLabelV2(string *label, TLabelFlags flags) const override
const string & GetTitle(C_E::E_Choice type=C_E::e_not_set) const
If the internal list contains a title (of the specified type, if given), returns the corresponding st...
int TLabelFlags
binary OR of ELabelFlags
@ fLabel_FlatEMBL
For EMBL or EMBLPept [V2].
@ fLabel_ISO_JTA
Only ISO jnl. title abbrevs. OK [V2].
@ fLabel_FlatNCBI
For GenBank or GenPept [V2].
static string GetParenthesizedYear(const CDate &date)
static string FixPages(const string &orig_pages)
Canonicalize a range of page numbers, expanding Medline-style 125-35 -> 125-135, F124-34 -> F124-F134...
static bool HasText(const string &s)
static void NoteSup(string *label, const CImprint &imp)
static bool x_GetLabelV1(string *label, bool unique, const CAuth_list *authors, const CImprint *imprint, const CTitle *title, const CCit_book *book, const CCit_jour *journal, const string *title1=0, const string *title2=0, const string *titleunique=0, const string *date=0, const string *volume=0, const string *issue=0, const string *pages=0, bool unpublished=false)
static void MaybeAddSpace(string *label)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
static const char label[]
const TVolume & GetVolume(void) const
Get the Volume member data.
const TPages & GetPages(void) const
Get the Pages member data.
bool CanGetPubstatus(void) const
Check if it is safe to call GetPubstatus method.
bool CanGetPrepub(void) const
Check if it is safe to call GetPrepub method.
bool CanGetPages(void) const
Check if it is safe to call GetPages method.
TPrepub GetPrepub(void) const
Get the Prepub member data.
bool CanGetVolume(void) const
Check if it is safe to call GetVolume method.
const TImp & GetImp(void) const
Get the Imp member data.
const TDate & GetDate(void) const
Get the Date member data.
const TTitle & GetTitle(void) const
Get the Title member data.
TPubstatus GetPubstatus(void) const
Get the Pubstatus member data.
@ e_Iso_jta
specifically ISO jta J
@ ePubStatus_aheadofprint
epublish, but will be followed by print
@ ePubStatus_epublish
published electronically by publisher
@ ePrepub_in_press
accepted, not published
@ ePrepub_submitted
submitted, not accepted