vector<string> options;
72options.push_back(field_name);
80vector<string> options;
87options.push_back(field_name);
95vector<string> options;
102options.push_back(field_name);
126 switch(field_type) {
131rval =
"institution";
134rval =
"department";
158rval =
"postal code";
161rval =
"first name";
164rval =
"middle initials";
173rval =
"consortium";
200rval =
"serial number";
221rval =
"affiliation "+ rval;
224rval =
"author "+ rval;
226rval =
"publication "+ rval;
248orig_label = orig_label.substr(12);
251orig_label = orig_label.substr(12);
258vector<string> choices;
260 switch(field_type) {
262allow_other =
false;
265choices.push_back(
match);
278 switch(pub.
Which()) {
362 switch(pub.
Which()) {
438rval =
"Unpublished";
444rval =
"Submitter Block";
467 stringaffil_field, author_field, date_field, pars(
"()");
468 switch(field_type) {
470rval = macro::CMacroFunction_PubFields::sm_PubTitle + pars;
473affil_field =
"affil";
476affil_field =
"div";
479affil_field =
"street";
482affil_field =
"city";
485affil_field =
"sub";
488affil_field =
"country";
491affil_field =
"email";
494affil_field =
"fax";
497affil_field =
"phone";
500affil_field =
"postal-code";
503author_field =
"first";
506author_field =
"initials";
509author_field =
"last";
512author_field =
"suffix";
515author_field =
"consortium";
518rval = macro::CMacroFunction_PubFields::sm_PubJournal + pars;
521rval = macro::CMacroFunction_PubFields::sm_PubVolume + pars;
524rval = macro::CMacroFunction_PubFields::sm_PubIssue + pars;
527rval = macro::CMacroFunction_PubFields::sm_PubPages + pars;
533date_field =
"year";
536date_field =
"month";
542rval = macro::CMacroFunction_PubFields::sm_PubSerialNumber + pars;
545rval = macro::CMacroFunction_PubFields::sm_PubCit + pars;
548rval = macro::CMacroFunction_PubFields::sm_PubStatus + pars;
551rval = macro::CMacroFunction_PubFields::sm_PubAuthors + pars;
554rval = macro::CMacroFunction_PubFields::sm_PubPMID + pars;
557rval = macro::CMacroFunction_PubFields::sm_PubDOI + pars;
563 if(!affil_field.empty()) {
564rval = macro::CMacroFunction_PubFields::sm_PubAffil +
string(
"(\""+ affil_field +
"\")");
566 else if(!author_field.empty()) {
567rval = macro::CMacroFunction_PubFields::sm_PubAuthors +
string(
"(\""+ author_field +
"\")");
569 else if(!date_field.empty()) {
570rval = macro::CMacroFunction_PubFields::sm_PubDate +
string(
"(\""+ date_field +
"\")");
User-defined methods of the data storage class.
User-defined methods of the data storage class.
static vector< string > GetFieldNamesWithoutDOI(bool extended=false)
static vector< string > GetMacroFieldNames(bool extended=false)
static bool IsImprintField(EPubFieldType field_type)
static EPubFieldStatus GetStatusFromString(const string &str)
static bool SetImprint(objects::CPub &pub, const objects::CImprint &imp)
static bool IsAffilField(EPubFieldType field_type)
@ ePubFieldType_AffilCountry
@ ePubFieldType_AffilEmail
@ ePubFieldType_AuthorLastName
@ ePubFieldType_AuthorFirstName
@ ePubFieldType_AffilDept
@ ePubFieldType_AffilState
@ ePubFieldType_SerialNumber
@ ePubFieldType_DateMonth
@ ePubFieldType_AuthorConsortium
@ ePubFieldType_AuthorMiddleInitial
@ ePubFieldType_AuthorSuffix
@ ePubFieldType_AffilPhone
@ ePubFieldType_AffilStreet
@ ePubFieldType_AffilCity
@ ePubFieldType_AffilPostalCode
@ ePubFieldType_AffilAffil
static string GetLabelForStatus(EPubFieldStatus status)
static EPubFieldType GetTypeForLabel(string label)
static string NormalizePubFieldName(string orig_label)
static string GetLabelForType(EPubFieldType field_type)
static vector< string > GetFieldNames(bool extended=false)
static bool IsAuthorField(EPubFieldType field_type)
static vector< string > GetChoicesForField(EPubFieldType field_type, bool &allow_other)
static string GetMacroLabelForType(EPubFieldType field_type)
static CConstRef< objects::CImprint > GetImprint(const objects::CPub &pub)
@ ePubFieldStatus_InPress
@ ePubFieldStatus_Published
@ ePubFieldStatus_Unpublished
static const char * str(char *buf, int n)
#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 bool EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive equality of a substring with another string.
static const char label[]
void SetBook(TBook &value)
Assign a value to Book data member.
const TCit & GetCit(void) const
Get the Cit member data.
const TBook & GetBook(void) const
Get the Book member data.
const TJournal & GetJournal(void) const
Get the variant data.
const TFrom & GetFrom(void) const
Get the From member data.
void SetImp(TImp &value)
Assign a value to Imp data member.
void SetFrom(TFrom &value)
Assign a value to From data member.
bool IsSetFrom(void) const
Check if a value has been assigned to From data member.
bool IsSetImp(void) const
Check if a value has been assigned to Imp data member.
const TProc & GetProc(void) const
Get the variant data.
E_Choice Which(void) const
Which variant is currently selected.
void SetImp(TImp &value)
Assign a value to Imp data member.
void SetCit(TCit &value)
Assign a value to Cit data member.
const TImp & GetImp(void) const
Get the Imp member data.
bool IsSetBook(void) const
citation to meeting Check if a value has been assigned to Book data member.
bool IsSetCit(void) const
same fields as a book Check if a value has been assigned to Cit data member.
const TImp & GetImp(void) const
Get the Imp member data.
bool IsSetImp(void) const
Check if a value has been assigned to Imp data member.
const TBook & GetBook(void) const
Get the variant data.
TProc & SetProc(void)
Select the variant.
const TMan & GetMan(void) const
Get the variant data.
TBook & SetBook(void)
Select the variant.
Tdata & Set(void)
Assign a value to data member.
const TArticle & GetArticle(void) const
Get the variant data.
const TJournal & GetJournal(void) const
Get the variant data.
const Tdata & Get(void) const
Get the member data.
const TProc & GetProc(void) const
Get the variant data.
TEquiv & SetEquiv(void)
Select the variant.
const TEquiv & GetEquiv(void) const
Get the variant data.
E_Choice Which(void) const
Which variant is currently selected.
TMan & SetMan(void)
Select the variant.
TJournal & SetJournal(void)
Select the variant.
TArticle & SetArticle(void)
Select the variant.
const TBook & GetBook(void) const
Get the variant data.
@ e_Pat_id
identify a patent
@ e_Gen
general or generic unparsed
@ e_not_set
No variant selected.
@ e_Proc
proceedings of a meeting
@ e_Equiv
to cite a variety of ways
@ e_Man
manuscript, thesis, or letter
static int match(PCRE2_SPTR start_eptr, PCRE2_SPTR start_ecode, uint16_t top_bracket, PCRE2_SIZE frame_size, pcre2_match_data *match_data, match_block *mb)
static bool s_OnlyShowInMacroEditor(CPubFieldType::EPubFieldType type)
bool QualifierNamesAreEquivalent(string name1, string name2)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4