diff --git a/bibtexbrowser.php b/bibtexbrowser.php
index ed8a145..7f5ac31 100755
--- a/bibtexbrowser.php
+++ b/bibtexbrowser.php
@@ -59,10 +59,7 @@ Create a bib file with the publication records (e.g. csgroup2008.bib) and upload
** Warning **: bibtexbrowser maintains a cached version of the parsed bibtex, for high performance, check that PHP can write in the working directory of PHP.
-=====Handling mutliple bibtex files=====
-
-It is a common practice to create one file for the @string, and another one with the bib entries. In this case, just give bibtexbrowser the files separated by a semi-column e.g:
-
+**Handling mutliple bibtex files**: It is a common practice to create one file for the @string, and another one with the bib entries. In this case, just give bibtexbrowser the files separated by a semi-column e.g:
''bibtexbrowser.php?bib=strings.bib;csgroup2008.bib''
@@ -106,7 +103,11 @@ include( 'bibtexbrowser.php' );
-And tailor it with a CSS style, for example:
+=====How to tailor bibtexbrowser?=====
+
+====By modifying the CSS====
+
+If bibtexbrowser.css exists, it is used, otherwise bibtexbrowser uses its own embedded CSS style (see function bibtexbrowserDefaultCSS). An example of CSS tailoring is:
<style>
.date { background-color: blue; }
.rheader { font-size: large }
@@ -115,20 +116,48 @@ And tailor it with a CSS style, for example:
.bibbooktitle { font-style:italic; }
</style>
-=====How to tailor bibtexbrowser?=====
-
-====By modifying the CSS====
-If bibtexbrowser.css exists, it will be used, otherwise bibtexbrowser uses its own embedded CSS style (see function bibtexbrowserDefaultCSS).
+====By creating a "bibtexbrowser.local.php"====
-====By modifying the configuration parameters====
-
-All configuration parameters are of the form ''define("PARAMETER_NAME","PARAMER_VALUE")'' at the beginning of the script. You can modify them by creating a file named "bibtexbrowser.local.php" containing the modified value. For instance:
+All the variable parts of bibtexbrowser can be modified with a file called ''bibtexbrowser.local.php''.
+
@@ -159,8 +188,7 @@ comment={<a href="myslides.pdf">[slides]</a>}
}
-
-
+This comment field can also be used to add acceptance rates and impact factors.
=====Related tools=====
@@ -239,8 +267,8 @@ License, or (at your option) any later version.
// in embedded mode, we still need a URL for displaying bibtex entries alone
// this is usually resolved to bibtexbrowser.php
// but can be overridden in bibtexbrowser.local.php
-// for instance with @define('BIBTEXBROWSER',''); // links to the current page with ?
-@define('BIBTEXBROWSER',basename(__FILE__));
+// for instance with @define('BIBTEXBROWSER_URL',''); // links to the current page with ?
+@define('BIBTEXBROWSER_URL',basename(__FILE__));
// *************** END CONFIGURATION
@@ -877,7 +905,7 @@ class BibEntry {
/** Tries to build a good URL for this entry */
function getURL() {
if ($this->hasField('url')) return $this->getField('url');
- else return "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']).'/'.BIBTEXBROWSER.'?'.createQueryString(array('key'=>$this->getKey()));
+ else return "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']).'/'.BIBTEXBROWSER_URL.'?'.createQueryString(array('key'=>$this->getKey()));
}
/** returns a "[pdf]" link if relevant */
@@ -1141,7 +1169,7 @@ class BibEntry {
echo '
<?php
-@define("ENCODING","utf-8");// if your bibtex file is utf-8 encoded
+
+// if your bibtex file is utf-8 encodedd
+define("ENCODING","utf-8");
+
+// number of bib items per page
+define('PAGE_SIZE',50);
+
+// if you are not satisifed with the default style (see below)
+define('BIBLIOGRAPHYSTYLE','MyFancyBibliographyStyle');
+function MyFancyBibliographyStyle() {
+ // see function DefaultBibliographyStyle
+}
+
+// if you are not satisifed with the default sections
+define('BIBLIOGRAPHYSECTIONS','mySections');
+function mySections() {
+return
+ array(
+ // Books
+ array(
+ 'query' => array(Q_TYPE=>'book'),
+ 'title' => 'Cool Books'
+ ),
+ // .. see function DefaultBibliographySections
+);
+}
+
+
+// Advanced
+// to get the individual bib pages embedded as well
+// define('BIBTEXBROWSER_URL','');
+
?>
+