diff --git a/bibtexbrowser.php b/bibtexbrowser.php
index f743ea1..293014b 100755
--- a/bibtexbrowser.php
+++ b/bibtexbrowser.php
@@ -39,7 +39,7 @@ bibtexbrowser is a PHP script that creates publication lists from Bibtex files.
=====Download=====
For feature requests, bug reports, or patch proposals, [[http://www.monperrus.net/martin/|please drop me an email ]] or comment this page. Don't hesitate to contact me to be added in the [[users|lists of bibtexbrowser users]] :-)
-You may try bibtexbrowser without installation with [[http://www.publications.li]].
+You may try bibtexbrowser without installation with [[http://my.publications.li]].
**[[http://www.monperrus.net/martin/bibtexbrowser.php.txt|Download bibtexbrowser]]** (Try the release candidate!)';} ?>
@@ -51,7 +51,7 @@ Demo: [[http://www.monperrus.net/martin/bibtexbrowser.php?bib=metrics.bib|Here,
=====Basic installation=====
-
+
Sorted by year | Sorted by publication type |
---|
.date { background-color: blue; } .rheader { font-size: large } .bibref { padding:3px; padding-left:15px; vertical-align:top;} .bibtitle { font-weight:bold; } .bibbooktitle { font-style:italic; } -</style> ++
+<?php
+include( 'bibtexbrowser-yourstyle.php' );
+define('BIBLIOGRAPHYSTYLE','MyFancyBibliographyStyle');
+?>
+
+[[http://www.monperrus.net/martin/bibtexbrowser-style-janos.php.txt|Janos Tapolcai contributed with this style, which looks like IEEE references]].
+For contributing with a new style, [[http://www.monperrus.net/martin/|please drop me an email ]]
+
+
<?php
-
+// ------------------------------- NOVICE LEVEL
// 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)
+// see the other define(...) in the source, they are all overridable
+
+// ------------------------------- INTERMEDIATE LEVEL
+
+// if you are not satisifed with the default style
define('BIBLIOGRAPHYSTYLE','MyFancyBibliographyStyle');
function MyFancyBibliographyStyle() {
// see function DefaultBibliographyStyle
@@ -151,27 +173,15 @@ return
}
-// Advanced
+// ------------------------------- EXPERT LEVEL
// to get the individual bib pages embedded as well
// define('BIBTEXBROWSER_URL','');
?>
-
-
-
+
+
-<?php
-include( 'bibtexbrowser-yourstyle.php' );
-define('BIBLIOGRAPHYSTYLE','MyFancyBibliographyStyle');
-?>
-
-[[http://www.monperrus.net/martin/bibtexbrowser-style-janos.php.txt|Janos Tapolcai contributed with this style, which looks like IEEE references]].
-For contributing with a new style, [[http://www.monperrus.net/martin/|please drop me an email ]]
=====How to add links to the slides of a conference/workshop paper?=====
@@ -216,6 +226,7 @@ modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
+
*/
// *************** CONFIGURATION
@@ -846,6 +857,11 @@ function latex2html($line) {
/** Note that & are encoded as %26 and not as & so it does not break the Z3988 URL */
function s3988($s) {return urlencode(utf8_encode($s));}
+/** @deprecated */
+function formatAuthor() {
+ die('Sorry, this function does not exist anymore, however, you can simply use $bibentry->formatAuthor($author) instead.');
+}
+
// ----------------------------------------------------------------------
// BIB ENTRIES
// ----------------------------------------------------------------------
@@ -2053,6 +2069,21 @@ class BibEntryDisplay extends BibtexBrowserDisplay {
$result[] = array('citation_pdf_url',$this->bib->getField("url"));
}
+ // now adding the pure bibtex with no translation
+ foreach ($this->bib->getFields() as $k => $v) {
+ if (!preg_match("/^_/",$k)) {
+ $result[] = array("bibtex:".$k,$v);
+ }
+ }
+
+ // and a fallback to essential dublin core
+ $result[] = array('DC.Title',$this->bib->getTitle());
+ foreach($this->bib->getArrayOfCommaSeparatedAuthors() as $author) {
+ $result[] = array('DC.Creator',$author);
+ }
+ $result[] = array('DC.Date',$this->bib->getYear());
+
+
return $result;
}