Commit Graph
322 Commits
Author SHA1 Message Date
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 å / Å

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 å 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
Martin Monperrus 8d28126de4 changed the version number to __GITHUB__ (the github version is not a release) 2013-03-09 23:42:06 +01:00
Matthieu Guillaumin 177c75e18e keys 2013-02-28 19:32:18 +01:00
Matthieu Guillaumin 230ca17d7f improved abbrv for list; factorized code for toHTML(); reverted modifications to bib2html and created bib2links() instead. 2013-02-28 17:40:25 +01:00
Matthieu Guillaumin fa56993706 the LAYOUT option and minor modifications 2013-02-27 19:53:42 +01:00
Martin Monperrus 531ebd0756 see http://www.monperrus.net/martin/bibtexbrowser-changelog 2012-12-05 22:16:58 +01:00
Martin Monperrus bf7b180dfa release of Oct 27 2012 2012-10-28 18:41:16 +01:00
Martin Monperrus f15adf086a hello github! initial github repo for bibtexbrowser
the goal is to collect patches and extensions as pull requests,
as suggested by George Oikonomou and Sjoerd OP 'T LAND

this version is the release candidate v20120703
2012-07-18 14:50:22 +02:00
Martin Monperrus c24a8d1de4 Initial commit 2012-07-18 05:44:22 -07:00
Martin Monperrus 16d1702327 added rel=nofollow in default message 2012-07-03 11:29:15 +02:00
Martin Monperrus 44d5d40dea added support for disabling the default message 2012-07-03 11:13:20 +02:00
Martin Monperrus 8acec31aff * added support for displaying only recently modified bibtex entries (see NewEntriesDisplay), thanks Jen
* added support for displaying a single entry as raw bibtex (http://localhost/bibtexbrowser.php?key=monperrus08phd&bib=pubs.bib&astext), thanks George Oikonomou
* added support for disabling [bibtex] links (set <code>define('BIBTEXBROWSER\_BIBTEX\_LINKS',false);</code> in bibtexbrowser.local.php), thanks Sascha Schnepp
* renamed [bib] in [bibtex] to facilitate indexing by search engines
* fixed bug in Google Scholar metadata (citation\_date -> citation\_publication_date), thanks Antonio Cuomo
* added extension point for embedded wrappers, thanks George Oikonomou
* renamed CSS class "header" in "btb-header" (so as not to clash with other CSS)
* moved documentation out of the source file
* fixed bug when calling Dispatcher several times, now $_GET is cleared (thanks Benoit Baudry)
2012-07-03 10:55:19 +02:00
Martin Monperrus 901fb4e4c1 improved configurability of the number of items per page 2012-04-17 20:48:34 +02:00
Martin Monperrus 7ab9c3d90f added support for timestamps on bibtex entries 2012-04-17 20:39:32 +02:00
Martin Monperrus ca42eb9625 fixed bug in parser 2011-12-11 22:58:35 +01:00
Martin Monperrus 7dc3b2ebbd added support for angstrom and protection against magic_quotes_runtime (feedback from Alexander Refsum Jensenius) 2011-12-11 22:40:23 +01:00
Martin Monperrus 7f23eca401 forgot @ in @define('ENCODING','UTF-8'); 2011-12-11 22:14:47 +01:00
Martin Monperrus b587f54acf improved documentation based on the feedback from http://www.arj.no/2011/12/08/testing-dynamic-bibtex-plugins/ 2011-12-11 20:32:43 +01:00
Martin Monperrus 7ecfaef8ab reverted a PHP4 incompatible change (no exception in PHP4) 2011-12-11 12:57:52 +01:00
Martin Monperrus e76077da0b solved bug on setDB found by Sebastien Lion (recompilation trigger) 2011-12-11 12:46:59 +01:00
Martin Monperrus ac682585cb Entries are now sorted by month if the field is present.
Excellent patch from Jan Geldmacher.
2011-12-11 12:18:21 +01:00
Martin Monperrus 46b298d429 improved the way to handle labels.
Now it depends on the value of the variable ABBRV_TYPE
ABBRV_TYPE == "default" => [1] One paper
ABBRV_TYPE == "year" => [2007] One paper (the year of publication)
ABBRV_TYPE == "x-abbrv" => [OOPSLA] One paper (the value of the bibtex field x-abbrv)
2011-12-11 11:49:03 +01:00
Martin Monperrus a5ec97afca updated documentation to be compatible with a new version of gakowiki 2011-11-11 01:35:28 +01:00
Martin Monperrus ec407d9830 fixed bug in the new bibtex entry view 2011-10-02 23:08:49 +02:00