|
|
@ -236,7 +236,7 @@ if (defined('ENCODING')) { |
|
|
@define('BIBTEXBROWSER_URL',basename(__FILE__)); |
|
|
@define('BIBTEXBROWSER_URL',basename(__FILE__)); |
|
|
|
|
|
|
|
|
// Specify the location of the cache file for servers that need temporary files written in a specific location
|
|
|
// Specify the location of the cache file for servers that need temporary files written in a specific location
|
|
|
@define('CACHE_DIR',''); |
|
|
|
|
|
|
|
|
@define('CACHE_DIR','.'); |
|
|
|
|
|
|
|
|
// Specify the location of the bib file for servers that need do not allow slashes in URLs,
|
|
|
// Specify the location of the bib file for servers that need do not allow slashes in URLs,
|
|
|
// where the bib file and bibtexbrowser.php are in different directories.
|
|
|
// where the bib file and bibtexbrowser.php are in different directories.
|
|
|
@ -368,7 +368,7 @@ function _zetDB($bibtex_filenames) { |
|
|
// ---------------------------- HANDLING caching of compiled bibtex files
|
|
|
// ---------------------------- HANDLING caching of compiled bibtex files
|
|
|
// for sake of performance, once the bibtex file is parsed
|
|
|
// for sake of performance, once the bibtex file is parsed
|
|
|
// we try to save a "compiled" in a txt file
|
|
|
// we try to save a "compiled" in a txt file
|
|
|
$compiledbib = CACHE_DIR.'bibtexbrowser_'.md5($bibtex_filenames).'.dat'; |
|
|
|
|
|
|
|
|
$compiledbib = c("CACHE_DIR").'/bibtexbrowser_'.md5($bibtex_filenames).'.dat'; |
|
|
|
|
|
|
|
|
$parse=filemtime(__FILE__)>@filemtime($compiledbib); |
|
|
$parse=filemtime(__FILE__)>@filemtime($compiledbib); |
|
|
|
|
|
|
|
|
@ -2587,6 +2587,12 @@ function JanosBibliographyStyle($bibentry) { |
|
|
// some comments (e.g. acceptance rate)?
|
|
|
// some comments (e.g. acceptance rate)?
|
|
|
if ($bibentry->hasField('comment')) { |
|
|
if ($bibentry->hasField('comment')) { |
|
|
$result .= " (".$bibentry->getField("comment").")"; |
|
|
$result .= " (".$bibentry->getField("comment").")"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// some notes (e.g. "accepted for publishing")?
|
|
|
|
|
|
if (($type!="misc") && $bibentry->hasField('note')) { |
|
|
|
|
|
$result .= " (".$bibentry->getField("note").")"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// add the Coin URL
|
|
|
// add the Coin URL
|
|
|
$result .= "\n".$bibentry->toCoins(); |
|
|
$result .= "\n".$bibentry->toCoins(); |
|
|
@ -3481,7 +3487,7 @@ class AcademicDisplay { |
|
|
$this->db = createBibDataBase(); |
|
|
$this->db = createBibDataBase(); |
|
|
$this->db->bibdb = $this->entries; |
|
|
$this->db->bibdb = $this->entries; |
|
|
|
|
|
|
|
|
if (BIBTEXBROWSER_ACADEMIC_TOC != true) { |
|
|
|
|
|
|
|
|
if (c("BIBTEXBROWSER_ACADEMIC_TOC") == false) { |
|
|
foreach (_DefaultBibliographySections() as $section) { |
|
|
foreach (_DefaultBibliographySections() as $section) { |
|
|
$this->search2html($section['query'],$section['title']); |
|
|
$this->search2html($section['query'],$section['title']); |
|
|
} |
|
|
} |
|
|
@ -3515,7 +3521,7 @@ class AcademicDisplay { |
|
|
echo "\n<a name=\"".$section['anchor']."\"></a>"; |
|
|
echo "\n<a name=\"".$section['anchor']."\"></a>"; |
|
|
echo "<h".BIBTEXBROWSER_HTMLHEADINGLEVEL.">"; |
|
|
echo "<h".BIBTEXBROWSER_HTMLHEADINGLEVEL.">"; |
|
|
echo $section['title']." (".$section['count'].")"; |
|
|
echo $section['title']." (".$section['count'].")"; |
|
|
echo "</h".BIBTEXBROWSER_HTMLHEADINGLEVEL.">\n", |
|
|
|
|
|
|
|
|
echo "</h".BIBTEXBROWSER_HTMLHEADINGLEVEL.">\n"; |
|
|
$section['display']->display(); |
|
|
$section['display']->display(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|