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);
|
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';
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
+1
-1
@@ -6,7 +6,7 @@ BIBTEX_URL="https://cloud.hiz-saarland.de/public.php/dav/files/Yj8FtZsTS9TkFWG"
|
|||||||
BIBTEXBROWSER="php -c \"php_cli.ini\" -f \"bibtexbrowser.php\""
|
BIBTEXBROWSER="php -c \"php_cli.ini\" -f \"bibtexbrowser.php\""
|
||||||
|
|
||||||
# DELETEME
|
# DELETEME
|
||||||
rm -r "artifacts" "temp"
|
rm -rf "artifacts" "temp"
|
||||||
# create output directories and download bibtex file
|
# create output directories and download bibtex file
|
||||||
mkdir -p "artifacts/keys" "temp"
|
mkdir -p "artifacts/keys" "temp"
|
||||||
wget -O "temp/zrd.bib" "$BIBTEX_URL"
|
wget -O "temp/zrd.bib" "$BIBTEX_URL"
|
||||||
|
|||||||
Reference in New Issue
Block a user