Last modified: 2014-04-15 23:56:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T2423, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 423 - A reference system that support BibTeX databases
A reference system that support BibTeX databases
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Cite (Other open bugs)
unspecified
All All
: Lowest enhancement with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-08 14:30 UTC by Mads Hansen
Modified: 2014-04-15 23:56 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
new extension, 'copy' of cite.php, with bibtex enhancement (52.23 KB, patch)
2006-11-05 18:53 UTC, Dirk Beetstra
Details
new extension, 'copy' of cite.php, with bibtex enhancement (52.23 KB, patch)
2006-11-05 18:53 UTC, Dirk Beetstra
Details
Functionality as a patch for cite.php (14.13 KB, patch)
2006-11-05 20:05 UTC, Dirk Beetstra
Details
BibTeX functionality patch for cite.php (56.16 KB, patch)
2006-11-05 23:01 UTC, Dirk Beetstra
Details
BibTeX patch for cite.php (51.70 KB, patch)
2006-11-06 00:10 UTC, Dirk Beetstra
Details
Addition of BibTeX functionality, and a new working variety of ref (58.00 KB, patch)
2006-11-07 00:03 UTC, Dirk Beetstra
Details
code cleanup and removal of some errors in bibtex functionality (60.05 KB, patch)
2006-11-07 23:10 UTC, Dirk Beetstra
Details
BibTeX functionality patch for cite.php (22.88 KB, patch)
2006-11-08 12:28 UTC, Dirk Beetstra
Details
BibTeX patch for cite.php (22.84 KB, patch)
2006-11-08 14:15 UTC, Dirk Beetstra
Details
BibTeX and BibRef functionality for cite.php (28.02 KB, patch)
2006-11-09 17:11 UTC, Dirk Beetstra
Details
BibTeX patch for cite.php (27.58 KB, patch)
2006-11-09 23:46 UTC, Dirk Beetstra
Details
BibTeX functionality patch for cite.php (27.46 KB, patch)
2006-11-10 15:18 UTC, Dirk Beetstra
Details
BibTeX functionality patch for cite.php (31.96 KB, patch)
2006-11-11 18:21 UTC, Dirk Beetstra
Details
BibTeX functionality patch for cite.php (33.53 KB, patch)
2006-11-12 14:30 UTC, Dirk Beetstra
Details
BibTeX functionality patch for cite.php (34.58 KB, patch)
2006-11-12 18:32 UTC, Dirk Beetstra
Details
BibTeX functionality patch for cite.php (36.73 KB, patch)
2006-11-12 23:11 UTC, Dirk Beetstra
Details
BibTeX functionality patch for cite.php (40.26 KB, patch)
2006-11-20 13:04 UTC, Carl Fürstenberg
Details
BibTeX functionality patch for cite.php (40.24 KB, patch)
2006-11-20 13:11 UTC, Carl Fürstenberg
Details
BibTeX functionality patch for cite.php (65.81 KB, patch)
2006-11-20 14:10 UTC, Carl Fürstenberg
Details
Bibtex and footnote functionality for cite.php (63.55 KB, patch)
2006-12-16 14:19 UTC, Dirk Beetstra
Details
small adaption of last patch (63.74 KB, patch)
2006-12-16 15:14 UTC, Dirk Beetstra
Details
Bibtex and footnote functionality for cite.php (63.27 KB, patch)
2006-12-16 20:57 UTC, Dirk Beetstra
Details
Bibtex and footnote functionality for cite.php (64.89 KB, patch)
2007-01-13 14:40 UTC, Dirk Beetstra
Details
Bibtex and footnote functionality for cite.php (64.93 KB, patch)
2007-01-13 15:03 UTC, Dirk Beetstra
Details
Bibtex and footnote functionality for cite.php (64.89 KB, patch)
2007-01-13 18:04 UTC, Dirk Beetstra
Details

Description Mads Hansen 2004-09-08 14:30:36 UTC
A system that would allow the easy (automated) creation of 
refernces (to books or webpages) along with bibliography, 
with support for BiBTeX databases would be awesome.
Comment 1 Gregory Marton 2005-05-07 14:29:11 UTC
I'm glad I'm not the first to think of this.  In reality, what I think I would
want is this:   (and I'm willing to help)

* articles in a special format that has a bib entry on top, and with pdf-link,
ps-link, doc-link, etc. BibTeX fields to show where the original document can be
found.  Of course these really are just articles, and can be edited as usual.

* a new bib: namespace that will link to articles and if it finds bib
information, then it formats "[bib:key]" by default as "<u>title</u>.
<i>authors</i> publication-short-name year (link-to-pdf) (link-to-other-format)
(link-to-yet-another-format)" or some user-specified format.

* Special Page to view just the BibTex parts of all the bib articles at once
(for copy-paste to a .bib file)

* Buttons on bib pages to open a new browser window and find the article on
Google Scholar, CiteSeer, etc.

* Special Page to import from Google Scholar, CiteSeer, etc. 



I'm totally willing to put in some time to making this happen, but I am new to
MediaWiki, and to php, and don't even know what mailing lists I should be asking
questions on.  (I've installed php-mode.el and have started digging around.  a
bit.) Help?

Thanks,
Grem
Comment 2 Gregory Marton 2005-05-07 14:41:17 UTC
And as I'm thinking about it, also a separate [cite:foo] namespace that would be
formatted as (Author YEAR), and link to the full [bib:foo] at the bottom, where
those would be accumulated and displayed in alphabetical order by author, as
usual at the bottom of articles.  

I totally see this as a public scholarly discourse medium of the future: Want a
good argument against creationism being taught in schools?  Want a scholarly
history avec bibliography of France?  Want a scholarly introduction to the
relevant literature on Natural Language Question Answering?  Check it on this
wiki page, and track its changes, and have largish groups contribute to it.   

This is happening now, except for the ability to cite sources cleanly.  This
relates to Bug 800 in that we could pioneer a bibtex entry format (including
datestamp) for wiki pages. 
Comment 3 Mads Hansen 2005-08-24 22:43:07 UTC
Thanks for your imput. My ambition is to create a site with social science
research and a system that make refernces as painless as possible would be very
usefull.


- Mads
Comment 4 Dirk Beetstra 2006-11-05 18:53:35 UTC
Created attachment 2639 [details]
new extension, 'copy' of cite.php, with bibtex enhancement

This is a working version of a bibtex enhancement of the cite.php.  It is
ABSOLUTELY not a perfect system, but before patching on, I think I should make
this one visible to the public, and maybe allow it for further discussion. 
Things to be done:

* Error handling (hardly anything at the moment)
* Maybe move code into cite.php, so not a standalone extension, or make this an
extension of the cite class from cite.php?
* Discuss how to format references that are loaded from a bibtex format
* Security checks
* Performance checks (this thing may be very slow)
(and maybe more).
* Other formats (RIS-files?)
Comment 5 Dirk Beetstra 2006-11-05 18:53:57 UTC
Created attachment 2640 [details]
new extension, 'copy' of cite.php, with bibtex enhancement

This is a working version of a bibtex enhancement of the cite.php.  It is
ABSOLUTELY not a perfect system, but before patching on, I think I should make
this one visible to the public, and maybe allow it for further discussion. 
Things to be done:

* Error handling (hardly anything at the moment)
* Maybe move code into cite.php, so not a standalone extension, or make this an
extension of the cite class from cite.php?
* Discuss how to format references that are loaded from a bibtex format
* Security checks
* Performance checks (this thing may be very slow)
(and maybe more).
* Other formats (RIS-files?)
Comment 6 Dirk Beetstra 2006-11-05 18:59:51 UTC
For those who want to see a working copy, see http://chemistry.poolspares.com/wiki/Text
Comment 7 Dirk Beetstra 2006-11-05 20:05:15 UTC
Created attachment 2641 [details]
Functionality as a patch for cite.php

Should be the same as the other patch, but patched into cite.php
Comment 8 Dirk Beetstra 2006-11-05 23:01:50 UTC
Created attachment 2647 [details]
BibTeX functionality patch for cite.php

New version of patch, some enhancement in comparison with the previous version:

- Error handling
- formatting references slightly adapted
- removed quite some php-errors
- extended working of biblio tag
- security improved (should be ok now, system similar to cite.php

Still need to be done:
+ other formats (but that is not important for the working)
+ internationalisation

IMPORTANT: This patch needs a performance test.  It might be that with large
"external" BibTeX pages, mediawiki performance is affected.
Comment 9 Dirk Beetstra 2006-11-06 00:10:43 UTC
Created attachment 2648 [details]
BibTeX patch for cite.php

Internationalisation added.  For further info, see comment #8
Comment 10 Phil Boswell 2006-11-06 14:36:40 UTC
I think that this is a fabulous idea, but in the wrong place.

Rather than spatchcocking it into [[m:Cite/Cite.php]] and subverting the <ref> tags, I 
feel that it would be better to create a new independent set of tags which could work 
orthogonally with <ref> and <references/>.

There are still people who prefer not to work with <ref> who would be very interested 
in these BibTeX tags: surely it would make more sense to make them independent.
Comment 11 Dirk Beetstra 2006-11-07 00:03:23 UTC
Created attachment 2649 [details]
Addition of BibTeX functionality, and a new working variety of ref

1) Further tweak of BibTeX
2) Added an 'other way around' functionality.  <bibtex store> or <biblio store>
creates a table of references, which can be used in the text to create an
inline reference with a new tag <bibref>.

Still needs:
* Performance checking
* Code clean up
* Security check (though I think it is OK)
* optimisation of the output-code (functions parseBibTeX and parseBibRef (are
now generating a template call, while the template may not exist).
Comment 12 Dirk Beetstra 2006-11-07 23:10:06 UTC
Created attachment 2656 [details]
code cleanup and removal of some errors in bibtex functionality

Upgraded version.  Former comments still true.
Comment 13 Dirk Beetstra 2006-11-08 12:28:48 UTC
Created attachment 2661 [details]
BibTeX functionality patch for cite.php

Almost the same as the previous, without annoying whitespace patching and with
repair of some small errors.  For comments, see earlier patches
Comment 14 Dirk Beetstra 2006-11-08 14:15:25 UTC
Created attachment 2662 [details]
BibTeX patch for cite.php

One major error in 2661, resolved.
Comment 15 Dirk Beetstra 2006-11-09 17:11:24 UTC
Created attachment 2664 [details]
BibTeX and BibRef functionality for cite.php

Added format, removed some errors.  Ready for a review (escpecially
performance).
Comment 16 Dirk Beetstra 2006-11-09 23:46:38 UTC
Created attachment 2668 [details]
BibTeX patch for cite.php

Adapted the i18n with newer reference formatting.  For further comments see my
earlier additions.
Comment 17 Dirk Beetstra 2006-11-10 15:18:30 UTC
Created attachment 2671 [details]
BibTeX functionality patch for cite.php

Changed some things in the files after recommendations from Brion, and removed
a bug.	For rest see comments above.
Comment 18 Dirk Beetstra 2006-11-11 18:21:01 UTC
Created attachment 2677 [details]
BibTeX functionality patch for cite.php

Removed some small errors, better internationalisation (BibliographyReader now
does his own), rest similar to above.
Comment 19 Dirk Beetstra 2006-11-12 14:30:13 UTC
Created attachment 2679 [details]
BibTeX functionality patch for cite.php

Added error messages for empty inputs, made error messages more informative,
BibTeX fields from other page are now loaded only from within the tagset (see
http://chemistry.poolspares.com, lower half of main page).  Further comments as
above.
Comment 20 Dirk Beetstra 2006-11-12 18:32:36 UTC
Created attachment 2681 [details]
BibTeX functionality patch for cite.php

newer version, some minor glitches removed, code cleanup, and bibref now reads
bibtex fields as well.	Further comments, see above
Comment 21 Dirk Beetstra 2006-11-12 23:11:59 UTC
Created attachment 2685 [details]
BibTeX functionality patch for cite.php

More errors gone, see comments above
Comment 22 Carl Fürstenberg 2006-11-20 13:04:11 UTC
Created attachment 2746 [details]
BibTeX functionality patch for cite.php

Cleaning up using exceptions
Comment 23 Carl Fürstenberg 2006-11-20 13:11:28 UTC
Created attachment 2747 [details]
BibTeX functionality patch for cite.php

removed wrongly str_replace, wfMsg takes parameter. also changed wfMsg to
wfMsgForContent.
Comment 24 Carl Fürstenberg 2006-11-20 14:10:14 UTC
Created attachment 2748 [details]
BibTeX functionality patch for cite.php

Moved around the code a bit, introduce private and public functions/variables.
Comment 25 Dirk Beetstra 2006-12-16 14:19:04 UTC
Created attachment 2877 [details]
Bibtex and footnote functionality for cite.php

Moved the code around, and generalised the use of the code (numbering can now
be adapted to users preference).

This allows for using the same cite-mechanism for footnotes (which are
different from the references).  <references/> gets used at the bottom of the
document (as usual, the functionality for bibtex is only available for the
ref/references tagset), <footnotes/> can be used on a per-section basis, for
separate comments.  The contents for the footnotes gets reset every time when
<footnotes/> gets called.
Comment 26 Dirk Beetstra 2006-12-16 15:14:02 UTC
Created attachment 2879 [details]
small adaption of last patch

Changed generator for tags, now independent of array-size (for custom tags)
Comment 27 Dirk Beetstra 2006-12-16 20:57:56 UTC
Created attachment 2888 [details]
Bibtex and footnote functionality for cite.php

Removed 4 bugs and 1 error (found while writing a manual at
http://chemistry.poolspares.com/wiki/CiteManual).
Comment 28 Dirk Beetstra 2007-01-13 14:40:44 UTC
Created attachment 3065 [details]
Bibtex and footnote functionality for cite.php

(updated patch, old patch conflicted with patch in bug 7908)
Comment 29 Dirk Beetstra 2007-01-13 15:03:19 UTC
Created attachment 3066 [details]
Bibtex and footnote functionality for cite.php

(resolving patch conflict with 19203)
Comment 30 Dirk Beetstra 2007-01-13 18:04:05 UTC
Created attachment 3067 [details]
Bibtex and footnote functionality for cite.php

(remove conflict)
Comment 31 Dirk Beetstra 2007-01-20 13:58:42 UTC
Disregard last patch, contains a serious design-flaw (cite.php may loose it's capability of counting 
consistently).
Comment 32 p858snake 2011-04-30 00:10:01 UTC
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
Comment 33 Mark A. Hershberger 2011-05-28 03:15:52 UTC
I really wish the patch worked :(
Comment 34 Dereckson 2012-06-10 20:13:09 UTC
Unassigning this bug, as there is no assignee.
Comment 35 Quim Gil 2014-04-15 23:53:18 UTC
James, when you say "in the future, I would like VisualEditor to autofill references automatically" (or something similar), are you considering the approach proposed here as a possibility?

In other words, is there a future for this old request in our plans?
Comment 36 James Forrester 2014-04-15 23:56:31 UTC
(In reply to Quim Gil from comment #35)
> James, when you say "in the future, I would like VisualEditor to autofill
> references automatically" (or something similar), are you considering the
> approach proposed here as a possibility?
> 
> In other words, is there a future for this old request in our plans?

Not as written, though I imagine export to BibTeX format would be a fairly trivial enhancement onto such a system.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links