Build custom URLs to point to our static files
This commit is contained in:
@@ -31,4 +31,10 @@ function compare_bib_entry_by_year_reverse($a, $b)
|
||||
{
|
||||
return 0 - compare_bib_entry_by_year($a, $b);
|
||||
}
|
||||
|
||||
// A custom URL builder for the static files we create
|
||||
define('BIBTEXBROWSER_URL_BUILDER', 'url_builder_static');
|
||||
function url_builder_static($bibentry) {
|
||||
return BIBTEXBROWSER_URL.'keys/'.$bibentry->getKey().'.html';
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user