Extension talk:Bibtex/archive 1
Combine Bibtex and Biblio Extension
editBiblio is an extension for MediaWiki which provides a citation manager. Biblio supports ISBN and other medical document indexes but unfortunately no bibtex.
- Download Biblio Extension from their homepage and install as it is mentioned there.
- Open the file Biblio.php in the Extension directory. Search for "$text = $this->get($ref, 'text');" and insert the following code behind it:
if(strcmp(substr($text, 0, 10), '<bibtex') == 0){ $bibtexx->BibTex($text); $text = $bibtexx->html(); }
- Now you can render bibtex entries like:
<biblio force=false> #localref local reference #[[Literatur]] #somebook <bibtex>@book{Alexander1979, 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}}</bibtex> #someusualbook MySelf. "Me Myself and I". Self. #x ...
MediaWiki 1.15.2
editNow 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 = '<span style="display: none;">'; // The trick is invisible foreach( $bibtexArray as $name) { $links .= '[['.$wbib_medianamespace.$name.']]'; } $links .= "</span>\n"; $text .= $links; } return true; }
I will do some further test and post it here.
MediaWiki 1.11
editI 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
editI 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
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 .= '<a href="' . $url . '">' . $nameurl . '</a> | ';
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.