function PARSEENTRIES::parseEntry in Bibliography Module 6
Same name and namespace in other branches
- 5 bibtexParse/PARSEENTRIES.php \PARSEENTRIES::parseEntry()
- 6.2 modules/bibtexParse/PARSEENTRIES.php \PARSEENTRIES::parseEntry()
- 7.3 plugins/biblio_style/bibtex/PARSEENTRIES.php \PARSEENTRIES::parseEntry()
- 7 modules/bibtexParse/PARSEENTRIES.php \PARSEENTRIES::parseEntry()
- 7.2 modules/bibtexParse/PARSEENTRIES.php \PARSEENTRIES::parseEntry()
1 call to PARSEENTRIES::parseEntry()
- PARSEENTRIES::extractEntries in bibtexParse/
PARSEENTRIES.php
File
- bibtexParse/
PARSEENTRIES.php, line 309
Class
Code
function parseEntry($entry) {
set_time_limit(30);
// reset the script timer to avoid timeouts
$entry = $this->translate_latex ? $this
->searchReplaceText($this->transtab_latex_unicode, $entry, false) : $entry;
$count = 0;
$lastLine = FALSE;
if (preg_match("/@(.*)([{(])/U", preg_quote($entry), $matches)) {
if (!array_key_exists(1, $matches)) {
return $lastLine;
}
if (preg_match("/string/i", trim($matches[1]))) {
$this->strings[] = $entry;
}
else {
if (preg_match("/preamble/i", trim($matches[1]))) {
$this->preamble[] = $entry;
}
else {
if (preg_match("/comment/i", $matches[1])) {
}
else {
if ($this->fieldExtract) {
$this
->fullSplit($entry);
}
else {
$this->entries[$this->count] = $entry;
}
$this->count++;
}
}
}
return $lastLine;
}
}