Commit Graph
295 Commits
Author SHA1 Message Date
Tomas-A 315437cd92 Fixing a bug where ajax wouldn't grab whole document in case there was an un-escaped ampersand in link.
The ajax request is being sent to html page hence you should use html as data type. Using xml might break in case there is un-escaped characters such as "<" or "&" in html. In fact it was causing problems when trying to retrieve bibtex data for particular item which included link with an ampersand.

It was mentioned in comments section in website by Tobi:

> Tobi: Hi Martin, 
> 
> it seems like bibtexbrowser cannot handle & (ampersands) in URLs. Entries that contain & confuse > the bibtex-block-script, which displays bibtex information in a new site instead of loading the > block of information just below the entry. I can't seem to find the bug, but hope that you can. 
> 
> Tobi
> (May 27, 2014 - 6:33 pm)

Also I have found some random page which is using bibtexbrowser and you can see the bug here http://www.imp.kiev.ua/~kord/papers/ by clicking on "Strong electron pairing at the iron 3dxz,yz orbitals in hole-doped BaFe2As2 superconductors revealed by angle-resolved photoemission spectroscopy" article's bib anchor.
2014-07-09 13:25:33 +01:00
Martin Monperrus 8c5868be17 Merge pull request #20 from tbrisker/master
prevent collision if i18n function already exists
2014-06-23 19:35:29 +02:00
tbrisker 7ad2d10102 prevent collision if i18n function already exists 2014-06-14 22:16:21 +03:00
Martin Monperrus 25212dd687 adds a link to the github page 2014-05-19 22:47:08 +02:00
Martin Monperrus 1a13d89307 adds support for "file" fields (exported by Zotero)
suggested by Luis J. Villanueva, see https://github.com/monperrus/bibtexbrowser/pull/14
2014-05-19 22:33:43 +02:00
Matthieu Guillaumin 46ae7a06a5 improves the configurability of the link menu ([bib], [pdf], ...) 2014-05-19 22:26:47 +02:00
Martin Monperrus 4d2f21f344 improves the configurability of the output through CSS classes (adds .bibcomment) 2014-05-16 11:00:50 +02:00
Martin Monperrus db987616a7 fixes a bug in Javascript progressive enhancement (bug reported by Elvis) 2014-05-15 22:09:24 +02:00
Martin Monperrus 9f230368d9 preserves math formula for use with MathJax (bug reported by Elvis) 2014-05-15 22:08:42 +02:00
Martin Monperrus bf91b17fe3 improves the configurability of the output through CSS classes (adds .bibmenu and .bibanchor) 2014-05-15 20:08:53 +02:00
Martin Monperrus 63aef9c2ed Merge pull request #16 from arnehaber/clean_xss_fix
Fixes a potential cross site scripting (XSS) issue
2014-05-05 12:29:16 +02:00
ahaber fc7f5c77fb Fixes a potential cross site scripting (XSS) issue 2014-05-05 12:15:05 +02:00
Martin Monperrus 8473ccb50f adds a word about pull requests on documentation 2014-05-02 16:24:30 +02:00
Martin Monperrus 9641eef5da updates the documentation for correct rendering on Github 2014-05-02 16:05:49 +02:00
Martin Monperrus 51c3e14795 adds the documentation of bibtexbrowser to the Git repository 2014-05-01 09:23:14 +02:00
Martin Monperrus 19c7177eb5 cleans the repo 2014-05-01 09:22:35 +02:00
Martin Monperrus ed120ab4cf removes useless code that hinders understandability 2014-04-01 18:30:51 +02:00
Martin Monperrus 0a2c97b68c improves documentation of configuration 2014-04-01 18:30:02 +02:00
Martin Monperrus c9462cb1e9 replaces double quotes by simple quotes for facilitating search 2014-04-01 18:29:26 +02:00
Martin Monperrus c929400a8b refactors to remove duplicated and ambiguous code 2014-03-07 22:56:37 +01:00
Martin Monperrus 01c2eaec85 improves google scholar metadata 2014-03-07 22:53:03 +01:00
Martin Monperrus 4c1b7ebfd4 adds configuration item for the default frame (suggested by Christopher David Ramos) 2014-01-30 21:17:40 +01:00
Martin Monperrus 7d45c51b6f fixes a bug (reported by Pawel)
Section A
<?php
$_GET['bib']='listA.bib';
$_GET['all']=1;
include( 'bibtexbrowser.php' );
?>

Section B
<?php
$_GET['bib']='listB.bib';
$_GET['all']=1;
include( 'bibtexbrowser.php' );
?>

Bug: both times it displays the entries from only listA.bib.

Fix: if (!isset($_GET[Q_DB]) || !$_GET[Q_DB]->is_already_loaded($_GET[Q_FILE])) { setDB(); }
2014-01-30 21:09:54 +01:00
Martin Monperrus 518d22e9ca Merge 2014-01-30 19:40:58 +01:00
Martin Monperrus 63a3efb2da Merge pull request #10 from arnehaber/master
Bugfix issue #8, introduces issue #9
2014-01-30 10:40:07 -08:00
Matthieu Guillaumin c42ff8abc5 adds the option keys for selecting multiple entries
based on a list of specified entries. This is compatible with other search criteria, as it is implemented as an extra filter rule in multisearch(). This is useful for presenting a selection or short-list of bibtex entries (eg, on a homepage, in a research project page, etc...)

$_GET['keys'] should contain a url-encoded json-encoded array of bibtex entries.

With @define(ABBRV_TYPE,'keys-index'), the array in $_GET['keys'] is considered as an associative array "$abbrv=>$bibkey" and $abbrv is used for abbreviation.
2014-01-30 19:34:04 +01:00
Martin Monperrus 618250c463 Merge pull request #7 from g-oikonomou/fix-dot-and-ring
Output correct HTML entity for \r{a}
2014-01-30 10:16:17 -08:00
ahaber 0092442d83 preserve ENCODING in text2rss() while decoding characters encoded by
latex2html
2014-01-30 13:51:50 +01:00
ahaber 275c1a41b5 issue #9
Adds properties to also disable the links [pdf], [doi] and [gsid]
2014-01-22 15:45:32 +01:00
ahaber af120fdda3 fix for issue #8
adds checks for file extension of referenced bibtexfiles
2014-01-22 15:27:05 +01:00
George Oikonomou 4d39449b2c Output correct HTML entity for \r{a}
There is an issue with characters å and Å (with ring above). The corresponding HTML entities are &aring; / &Aring;

To get this character with latex we'd do: \r{a} or \aa

With bibtextbrowser \aa works fine. However, \r{a} doesn't do anything at all. This pull fixes this, we now output the correct HTML for \r{a} and \r{A}.

Furthermore, up till now bibtexbrowser will output &aring; if it encounters \.{a}, but this is wrong since this latex is meant to be used to produce an overdot (dot above char) and not "ring above char". Since in practice this is a "spelling error", this behaviour is removed and from now on \.{a} will not get replaced.
2014-01-03 21:40:31 +00:00
Joseph L. Richards 2c976cd1b6 fixes bug in bibtex concatenation with # 2013-12-24 10:09:56 +01:00
Martin Monperrus ad871ba363 adds handling of three new characters (contributed by Mateusz Łącki) 2013-11-14 21:07:56 +01:00
Martin Monperrus e4396f129d refactored the template mechanism 2013-11-14 21:06:28 +01:00
Martin Monperrus 8eaee2f277 implements &search=key1|key2|key3 or &search=key1,key2,key3 for emulating \cite{key1,key2,key3} (feature request by Mateusz) 2013-10-24 22:41:51 +02:00
Martin Monperrus 2ace26a260 fixed bug when @String are removed 2013-10-24 22:23:40 +02:00
Martin Monperrus fee4593473 refactoring 2013-10-03 22:57:32 +02:00
Martin Monperrus 5a9b9f1db5 refactoring 2013-10-03 22:33:28 +02:00
Martin Monperrus 5d2cb77457 fixed bug when slashes are used in bibtex keys 2013-10-03 22:32:29 +02:00
Martin Monperrus 8bfbe0e0d9 added support for internationalization 2013-10-03 22:12:37 +02:00
Martin Monperrus 79f769b3a6 adds a better configuration system, which is backward compatible 2013-10-03 21:56:20 +02:00
Martin Monperrus 4743902994 improves testability 2013-10-03 20:51:41 +02:00
Matthieu Guillaumin 1d0ac2bcfa Merge remote branch 'monperrus/master' into keys 2013-04-03 15:15:11 +02:00
Martin Monperrus 0f205dc06a improved ordering and sectioning of entries 2013-03-28 22:59:53 +01:00
Matthieu Guillaumin 5acf5b643d merged with monperrus/bibtexbrowsed@17dbef223d. Simplified and improved the "keys" search option. Now uses a new ABBRV_TYPE option, prints a correct title, can read $_GET from the url. New function to sort by raw Abbrv. 2013-03-12 10:42:26 +01:00
Martin Monperrus 17dbef223d updated CSS to fit with new BIBTEXBROWSER_LAYOUT 2013-03-10 17:34:14 +01:00
Matthieu Guillaumin 154f7410ea merged with Martin's changes 2013-03-10 14:11:17 +01:00
Martin Monperrus 2d3f27015d refactored the excellent commit of M. Guillaumin
- LAYOUT -> BIBTEXBROWSER_LAYOUT by convention
- BIBTEXBROWSER_LAYOUT has non-abbreviated values (for sake of intuitiveness)
- BIBTEXBROWSER_LAYOUT has no complex interplay with ABBRV_TYPE  (for sake of intuitiveness)
- ordered lists are responsible for the indices
- no new line at the end of the file
- renamed or moved some functions
2013-03-10 09:48:36 +01:00
Matthieu Guillaumin f9b2f7a62a added a LAYOUT option
use @define(LAYOUT,{'table','list','deflist'}) to choose between table, ul, ol ('list' and ABBRV_TYPE='index') and definition lists for displaying bibtex entries.

$bib->index is now displayed as a number, not a number in brackets, for compatibility with list values. however this is invisible to the user because the brackets are added in getAbbrv().

bib2html now includes the echoing of links.
2013-03-10 09:44:10 +01:00
Martin Monperrus bf49236033 fixed a spurious 'notice' when used as library 2013-03-09 23:45:11 +01:00