Localization
/** * Localization * Available: en_US, fr_FR, de_DE, it_IT */ define("DEFAULT_LANG",'en_US'); /** * Show available languages on BibORB pages * TRUE/FALSE */ define("DISPLAY_LANG_SELECTION",TRUE);
Use the DEFAULT_LANG
variable to select the default language that should be used in BibORB.
Use the DISPLAY_LANG_SELECTION
to enable people to select their language within the BibORB interface. If this variable is set to FALSE
then the interface is localized using the value of DEFAULT_LANG
.
Authentication
/** * If TRUE, this will disable authentification. * All users will have the administrator status */ define("DISABLE_AUTHENTICATION",TRUE); /** * Authentication methods: mysql, files * Used if DISABLE_AUTHENTICATION = FALSE */ define("AUTH_METHOD",'files');
If you want to share your bibliography within a local network, you may not want other people to edit or even delete your data. If DISABLE_AUTHENTICATION
is set to FALSE
, user must login to be able to add, delete or update references. See Authentication Help to set up correctly BibORB to use the authentication method defined (AUTH_METHOD
).
Delete entries
/** * Should a confirmation be displayed when deleting entries */ define("WARN_BEFORE_DELETING",TRUE);
When a user has the authorization to delete entries, a confirmation message may be display when deleting entries. Set this variable to TRUE
if you want this message to be displayed.
Display icons/text actions
/** * Should action be represented by icons or not. */ define("DISPLAY_IMAGES",TRUE); /** * Sould action be represented by text or not. */ define("DISPLAY_TEXT",FALSE);
Actions on a reference (edit, delete, get ps, ps.gz, pdf ...) are available in both text format or icons. Set DISPLAY_IMAGES
and DISPLAY_TEXT
to display both or only one of them.
Display abstract
/** * Should the abstract be present for each entry. */ define("DISPLAY_ABSTRACT",FALSE);
Set the DISPLAY_ABSTRACT
variable to TRUE
if you want the abstract to be always displayed. If FALSE
, the abstract is displayed only if you click on the abstract action.
Sorting entries
/** * Display sort in all/group/search view * If no, displayed only on search * TRUE/FALSE */ define("DISPLAY_SORT",TRUE); /** * Default sort method: ID,title,year * and order: ascending/descending */ define("DEFAULT_SORT","ID"); define("DEFAULT_SORT_ORDER","ascending");
It is possible to select which is the default sort method to display references. Presently, three sort method are provided: title, year and bibtex key.
Set DISPLAY_SORT
to TRUE
if you want to choose the sort method to use in BibORB.
Export entries to BibTeX
/** * Choose which fields to save when exporting an entry to bibtex * By default all fields are exported */ $fields_to_export = array('author', 'address', 'annote', 'author', 'booktitle', 'chapter', 'crossref', 'edition', 'editor', 'howpublished', 'institution', 'journal', 'key', 'month', 'note', 'number', 'organization', 'pages', 'publisher', 'school', 'series', 'title', 'type', 'volume', 'year');
When exporting the basket to bibtex, you can select which BibTeX fields are exported. Add/remove the name of fields that you want/don't want to be exported by default.
Select the number of references to display in a page
You can choose the number of references that are displayed in a BibORB page:
/** * Max number of references by page. */ define("MAX_REFERENCES_BY_PAGE",10);
Keep an up-to-date BibTeX copy of the database
References are stored in an XML format. BibTeX exporting is possible through the BibORB interface. You may also need to generate an up-to-date BibTeX file you will share over the network. If you activate the GEN_BIBTEX
option, a BibTeX file in the bibs
directory is keep up-to-date each time a modification is done.
/** * Keep an up-to-date BibTeX file. * If true, each time a bibliography is modified, a BibTeX file is updated * in its 'bibs' directory. */ define("GEN_BIBTEX",TRUE);
Shelf mode
The 'Shelf mode' allows to save two additional information: the read status (read, not read, to read) of a reference and its ownership (own, not own, to buy, borrowed). If you want this information to be displayed in BibORB (reference display) activate it. If not activated, these information can only be modified while creating or editing a reference.
/** * Activate the shelf mode. * Additional action will be available to set the ownership of a reference * and its reading status(read, read next, not read) * value: TRUE/FALSE */ define("SHELF_MODE",TRUE);
Tune BibORB files permissions
/** * umask - Set the mask to use when creating files. * */ define("UMASK",0111); /** * dmask - Set the mask to use when creating directories. */ define("DMASK",0000); /** * List of file types that can be uploaded */ $valid_upload_extensions = array('ps','pdf','gz','bz2','zip');
See umask
help.
Add extension to $valid_upload_extensions
to allow new type of files to be uploaded.