File indexing completed on 2024-11-24 04:34:30
0001 format: xml 0002 entries: feed/entry 0003 introduction: static const QRegularExpression arxivIdVersion(QStringLiteral("v(?<version>[1-9]\\d*)$")); 0004 field[Entry::ftYear]: []() { 0005 bool ok = false; 0006 const int year = {{updated}}.left(4).toInt(&ok); 0007 if (ok && year >= 1600 && year < 2100) 0008 return QString::number(year); 0009 else 0010 return QString(); 0011 }() 0012 field[Entry::ftMonth]: OnlineSearchAbstract::monthToMacroKeyText({{updated}}.mid(5, 2)) 0013 field[Entry::ftNote]: {{arxiv:comment}} 0014 field[Entry::ftTitle]: {{title}} 0015 field[Entry::ftAbstract]: {{summary}} 0016 value[Entry::ftAuthor]: []() { 0017 Value v; 0018 for (const QString &author : {{QStringList:author/name}}) 0019 v.append(FileImporterBibTeX::personFromString(author)); 0020 return v; 0021 }() 0022 field[Entry::ftDOI]: []() { 0023 const QRegularExpressionMatch m = KBibTeX::doiRegExp.match({{arxiv:doi}}); 0024 if (m.hasMatch()) 0025 return m.captured(); 0026 else 0027 return QString(QStringLiteral("10.48550/arXiv.")).append({{id}}.replace(QStringLiteral("http://arxiv.org/abs/"), QString()).replace(QStringLiteral("https://arxiv.org/abs/"), QString()).replace(arxivIdVersion, QString())); 0028 }() 0029 field[Entry::ftUrl]: []() { 0030 if ({{id}}.startsWith(QStringLiteral("http"))) 0031 return {{id}}; 0032 else if ({{QStringList:link/@href}}.isEmpty()) 0033 return QString(); 0034 else 0035 return {{QStringList:link/@href}}.first(); 0036 }() 0037 field["archivePrefix"]: {QStringLiteral("arXiv")} 0038 field["eprint"]: {{id}}.replace(QStringLiteral("http://arxiv.org/abs/"), QString()).replace(QStringLiteral("https://arxiv.org/abs/"), QString()).replace(arxivIdVersion, QString()) 0039 valueItemType["eprint"]: VerbatimText 0040 field["primaryClass"]: {{arxiv:primary_category/@term}} 0041 valueItemType["primaryClass"]: VerbatimText 0042 postprocessingfields: const QString journalref = {{arxiv:journal_ref}}; 0043 if (!journalref.isEmpty()) 0044 evaluateJournal(journalref, entry); 0045 entrytype: journalref.isEmpty() ? Entry::etMisc : Entry::etArticle 0046 entryid: QStringLiteral("arXiv:") + {{id}}.replace(QStringLiteral("http://arxiv.org/abs/"), QString()).replace(QStringLiteral("https://arxiv.org/abs/"), QString())