Extension talk:Bibtex/archive 1

Combine Bibtex and Biblio Extension
Biblio is an extension for MediaWiki which provides a citation manager. Biblio supports ISBN and other medical document indexes but unfortunately no bibtex.

if(strcmp(substr($text, 0, 10), '&lt;bibtex') == 0){ $bibtexx->BibTex($text); $text = $bibtexx->html; }	Author = {Christopher Alexander}, Date-Added = {2010-03-08 17:46:37 +0100}, Date-Modified = {2010-03-08 17:47:29 +0100}, Publisher = {Oxford University Press}, Title = {The Timeless Way of Building}, Year = {1979}}
 * 1) Download Biblio Extension from their homepage and install as it is mentioned there.
 * 2) Open the file Biblio.php in the Extension directory. Search for "$text = $this->get($ref, 'text');" and insert the following code behind it:
 * 1) Now you can render bibtex entries like:
 * 1) localref local reference
 * 2) Literatur
 * 3) somebook @book{Alexander1979,
 * 1) someusualbook MySelf. "Me Myself and I". Self.
 * 2) x ...

MediaWiki 1.15.2
Now there is at least an return value for bibtexHook needed: function bibtexHook( &$parser, &$text, &$strip ) {    global $bibtexArray; global $wbib_medianamespace; if ( count($bibtexArray) > 0 ) {	 $links = ' '; // The trick is invisible foreach( $bibtexArray as $name) { $links .= .$wbib_medianamespace.$name.; }	 $links .= " \n"; $text .= $links; }    return true; }

I will do some further test and post it here.

MediaWiki 1.11
I have updated this extension to run under MediaWiki 1.11 and have done the English translation. I've done additional work and emailed the author, but he has not responded. You can download it from my user page. Simsong 06:41, 16 October 2007 (UTC)


 * Your version runs great under MediaWiki 1.12. Thank you!
 * --dvL 08:34, 4 December 2008 (UTC)

Weblinks
I have a problem with the weblinks. The Bibtex extension should format the weblink like WWW | Bibtex, but its like

Mike Mason - Pragmatic Version Control Using Subversion
 * http://www.amazon.com
 * Bibtex

What do I have to change? I am using MediaWiki 1.12.

--dvL 10:16, 3 December 2008 (UTC)

I've read some PHP-tutorials, so I could do it on my own. Just change line 415 to $nameurl="WWW"; $output .= ''. $nameurl. ' | ';

I really don't know if this is the way a programer would do it, but I've never done such things before.. This is my way :> Btw: You don't have to use WWW. Just change the $nameurl string.

--dvL 14:50, 3 December 2008 (UTC)