Commit Graph
63 Commits
Author SHA1 Message Date
Markus Jochim 724eea77e4 added compare_bib_entry_by_name() 2014-12-04 22:41:34 +01:00
Markus Jochim ef908a3298 Turns doi, url, gsid etc. into hyperlinks in bibtex entry display
Does not yet work in js progressive enhancement mode
2014-12-04 22:41:34 +01:00
Markus Jochim dbc28d4448 Tidied up generation mechanism for [pdf], [doi] links etc.
Removed duplicate code that existed inside and outside of get*Link() functions.
Added option BIBTEXBROWSER_LINKS_IN_NEW_WINDOW. It is used instead of BIBTEXBROWSER_BIB_IN_NEW_WINDOW for external links (everything but [bibtex]).
2014-12-04 22:41:34 +01:00
Markus Jochim c2b330bb7c Option FORCE_NAMELIST_SEPARATOR allows for commas between authors as well as between last and first name 2014-12-04 22:41:34 +01:00
Markus Jochim 67510a8972 Escape German ß in addition to umlauts 2014-12-04 22:41:33 +01:00
Markus Jochim 18552e824a Added css class and i18n to no “result” string 2014-12-04 22:41:33 +01:00
Markus Jochim 2a9e852e4d Now displaying something sensible in result heading for Q_RANGE searches 2014-12-04 22:41:33 +01:00
Markus Jochim 19a3335597 Now also applies graceful ordering and i18n of non-string year-values to yearIndex() 2014-12-04 22:41:33 +01:00
Markus Jochim 02a3df6fed Made sorting of non-int year values easily configurable 2014-12-04 22:41:33 +01:00
Markus Jochim ef426e9bb1 i18n and graceful sorting for year values 'in press', 'submitted' and 'accepted'
The sorting mechanism relied solely on strcmp before, which yielded a more or less random result.
It is now possible to define an order as long as the strings in the bibtex file are given in their standard English form.
In output though, the strings are internationalised.
2014-12-04 22:41:33 +01:00
Markus Jochim 0897e0fac6 Allow the user to search for a range of years 2014-12-04 22:41:33 +01:00
Martin Monperrus 24d8902132 fixes PHP notice 2014-12-01 14:49:21 +01:00
Martin Monperrus 9677c5bb29 updates metadata 2014-09-18 21:31:10 +02:00
Martin Monperrus 71c56c3e6e fixes a bug in UTF8 handling in COinS metadata (reported by Wojtek) 2014-09-18 21:05:16 +02:00
Martin Monperrus c0181d2593 Merge pull request #21 from Tomas-A/master
Fixing a bug where ajax wouldn't grab whole document in case there was ampersands in link.
2014-08-14 13:56:16 +02:00
George Oikonomou b94508c39b Remove trailing whitespaces 2014-07-26 14:44:52 +01:00
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
tbrisker 7ad2d10102 prevent collision if i18n function already exists 2014-06-14 22:16:21 +03: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
ahaber fc7f5c77fb Fixes a potential cross site scripting (XSS) issue 2014-05-05 12:15:05 +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