diff --git a/bibtexbrowser.php b/bibtexbrowser.php
index 45f7513..f49baa4 100644
--- a/bibtexbrowser.php
+++ b/bibtexbrowser.php
@@ -3,6 +3,7 @@
URL: http://www.monperrus.net/martin/bibtexbrowser/
Feedback & Bug Reports: martin.monperrus@gmail.com
+(C) 2013 Matthieu Guillaumin
(C) 2006-2012 Martin Monperrus
(C) 2005-2006 The University of Texas at El Paso / Joel Garcia, Leonardo Ruiz, and Yoonsik Cheon
This program is free software; you can redistribute it and/or
@@ -117,6 +118,8 @@ define('BIBTEXBROWSER','v20121205');
@define('METADATA_DC',true);
@define('METADATA_EPRINTS',false);
+@define('LAYOUT','table'); // may be table/list/deflist. defines the HTML rendering options (
, /, , resp.). 'list' only works with 'ABBRV_TYPE'='index' (ordered list) and 'none' (unordered list, the default if another choice than 'list' is made).
+
// in embedded mode, we still need a URL for displaying bibtex entries alone
// this is usually resolved to bibtexbrowser.php
// but can be overridden in bibtexbrowser.local.php
@@ -240,7 +243,7 @@ function _zetDB($bibtex_filenames) {
&& is_readable($compiledbib)
&& filesize($compiledbib)>0
) {
- $f = fopen($compiledbib,'r');
+ $f = fopen($compiledbib,'r+'); // my Unix seems to consider flock as a writing operation
//we use a lock to avoid that a call to bibbtexbrowser made while we write the object loads an incorrect object
if (flock($f,LOCK_EX)) {
$s = filesize($compiledbib);
@@ -1244,7 +1247,13 @@ class BibEntry {
/** Returns the abbreviation. */
function getAbbrv() {
- if (ABBRV_TYPE == 'index') return $this->index;
+ if (ABBRV_TYPE == 'index') {
+ if ( LAYOUT == 'list' ) { //