constants.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <?php
  2. //
  3. // +------------------------------------------------------------------------+
  4. // | phpBIB
  5. // | $Id: constants.php,v 2.0 2005/07/22 08:58:54 dfolio Exp $
  6. // | Creation Date : Tue Apr 28 2005
  7. // | LastUpdate $Date: 2005/07/22 08:58:54 $
  8. // +------------------------------------------------------------------------+
  9. // | Copyright (c) 2003-2005 David FOLIO, Antre Team
  10. // | Email dfolio@free.fr
  11. // | Web http://dfolio.free.fr
  12. // +------------------------------------------------------------------------+
  13. // | This source file is subject to BSD License, that is available
  14. // | at http://opensource.org/licenses/bsd-license.php
  15. // | or http://dfolio.free.fr/license.txt
  16. // +------------------------------------------------------------------------+
  17. //
  18. /** phpBIB constant/configuration
  19. *
  20. * This script provide the main phpBIB constant.
  21. * You may customize some constants value to your own purpose.
  22. *
  23. * @version $Revision: 2.0 $
  24. * @author David FOLIO <dfolio@free.fr>
  25. * @copyright Copyright &copy; 2003-2005, Antre Team
  26. * @license http://dfolio.free.fr/license.txt
  27. *
  28. * @package phpBIB
  29. */
  30. /*Define _df_ function if not defined...*/
  31. if (!function_exists('_df_')){
  32. function _df_($cname,$cval=null){
  33. if (!defined($cname)) define($cname,$cval);
  34. }
  35. }
  36. /** (Dis)Enable bibtex parser debug message*/
  37. _df_("BIB_PARSE_DEBUG",true);
  38. if (!defined("BIB_INDEX")) define("BIB_INDEX","references.php");
  39. if (!defined("BIB_USE_CACHE")) define("BIB_USE_CACHE",true);
  40. if (!isset($BIB_BIBFILES))
  41. /**
  42. * This global variable define the bibfiles list to parse, required in {@link references.php}
  43. * @global (array) $GLOBALS["BIB_BIBFILES"]
  44. * @name $BIB_BIBFILES
  45. */
  46. $BIB_BIBFILES= (isset($GLOBALS["BIB_BIBFILES"])) ? $GLOBALS["BIB_BIBFILES"]: array(dirname(__FILE__).'/references.bib');
  47. _df_("BIB_DEFAULT_LANG","fr");
  48. _df_("BIB_ICONS_PATH","images");
  49. /**#@+
  50. * Item rendering constant
  51. * You may customize as your own purpose. You may also want to modify the
  52. * corresponding cascading style sheet file.
  53. */
  54. /** Bibliography start environment*/
  55. //_df_("BIB_BIBLIO_START",'<dl id="biblio">');
  56. /** Bibliography end environment*/
  57. //_df_("BIB_BIBLIO_END",'</dl>');
  58. /** Bibliography start environment*/
  59. _df_("BIB_VIEW_START",'<dl id="bibView">');
  60. /** Bibliography end environment*/
  61. _df_("BIB_VIEW_END",'</dl>');
  62. /** Bibitem start environment*/
  63. _df_("BIB_BIBITEM_START",'<dt id="%s">');
  64. /** Bibitem syart environment*/
  65. _df_("BIB_SUBITEM_START",'<dd>');
  66. /**#@+
  67. * Subitem is used for not common item fields, such as 'abstract',
  68. * 'keywords'... which are usefull here!
  69. */
  70. /** Subitem end environment*/
  71. _df_("BIB_SUBITEM_END",'</dd>');
  72. /** Subitem end environment*/
  73. _df_("BIB_BIBITEM_END",'</dt>');
  74. /**#@-*/
  75. /** Bibentry start environment*/
  76. _df_("BIB_BIBENTRY_START",'<p class="bibEntry">');
  77. /** Bibentry end environment*/
  78. _df_("BIB_BIBENTRY_END",'</p>');
  79. /** Bibentry start environment*/
  80. _df_("BIB_ABSTRACT_START",'<p class="bibAbstract">');
  81. /** Bibentry end environment*/
  82. _df_("BIB_ABSTRACT_END",'</p>');
  83. /** Bibentry start environment*/
  84. _df_("BIB_KEYWORDS_START",'<p class="bibKeywords">');
  85. /** Bibentry end environment*/
  86. _df_("BIB_KEYWORDS_END",'</p>');
  87. /** Bibkey start fields*/
  88. _df_("BIB_BIBKEY_START",'<span class="bibkey">');
  89. /** Bibkey start fields*/
  90. _df_("BIB_BIBKEY_END",'</span><br/>'."\n&nbsp;");
  91. /** Author start fields*/
  92. _df_("BIB_AUTHOR_START",'<span class="bibAuthor">');
  93. /** Author end fields*/
  94. _df_("BIB_AUTHOR_END",'</span>');
  95. /** Title start fields*/
  96. _df_("BIB_TITLE_START",'<span class="bibTitle">&quot;');
  97. /** Title end fields*/
  98. _df_("BIB_TITLE_END",'&quot;</span>. ');
  99. /** Date start fields*/
  100. _df_("BIB_DATE_END",'</span>');
  101. /** Date end fields*/
  102. _df_("BIB_DATE_START",'<span class="bibDate">');
  103. /** Booktitle start fields*/
  104. _df_("BIB_BOOKTITLE_START",'<span class="bibBooktitle">');
  105. /** Booktitle end fields*/
  106. _df_("BIB_BOOKTITLE_END",'</span>');
  107. /** Journal start fields*/
  108. _df_("BIB_JOURNAL_START",'<span class="bibJournal">');
  109. /** Journal end fields*/
  110. _df_("BIB_JOURNAL_END",'</span>');
  111. /** Publisher start fields*/
  112. _df_("BIB_PUBLISHER_START",'<span class="bibPublisher">');
  113. /** Publisher end fields*/
  114. _df_("BIB_PUBLISHER_END",'</span>');
  115. /** School start fields*/
  116. _df_("BIB_SCHOOL_START",'<span class="bibSchool">');
  117. /** School end fields*/
  118. _df_("BIB_SCHOOL_END",'.</span>');
  119. /** Institution start fields*/
  120. _df_("BIB_INSTITUTION_START",'<span class="bibInstitution">');
  121. /** Institution end fields*/
  122. _df_("BIB_INSTITUTION_END",'</span>');
  123. /** Pages start fields*/
  124. _df_("BIB_PAGES_START",'');
  125. /** Pages end fields*/
  126. _df_("BIB_PAGES_END",'');
  127. /** Address start fields*/
  128. _df_("BIB_ADDRESS_START",'');
  129. /** Address end fields*/
  130. _df_("BIB_ADDRESS_END",'');
  131. /** Web part start*/
  132. _df_("BIB_WEB_START",'<div class="bibWeb">');
  133. /** Web part start*/
  134. _df_("BIB_WEB_END",'</div>');
  135. /** URL partern*/
  136. _df_("BIB_URL_PATERN",'<span class="bibURI"><a href="%s" title="Visite the URL">%s</a></span>');
  137. /** BIB Icons partern*/
  138. _df_("BIB_ICONS_START",' &nbsp;<span class="bibIcons">');
  139. /** BIB Icons partern*/
  140. _df_("BIB_ICONS_END",'</span>');
  141. /** BIB Icons partern*/
  142. _df_("BIB_ICONS_IMG_PATERN",'<img src="'.BIB_ICONS_PATH.'/bibTeX.png" alt="BIB:%s"/>');
  143. /** DOI partern*/
  144. _df_("BIB_DOI_PATERN",'<span class="bibDOI"><a href="http://dx.doi.org/%s" title="DOI:%s"><img src="'.BIB_ICONS_PATH.'/doi.gif" alt="DOI:%s"/></a></span>');
  145. /** Annote part start*/
  146. _df_("BIB_ANNOTE_START",'<div class="bibAnnote">');
  147. /** Annote part start*/
  148. _df_("BIB_ANNOTE_END",'</div>');
  149. /** ISBN part start*/
  150. _df_("BIB_ISBN_START",'<span class="bibISBN">');
  151. /** ISBN part start*/
  152. _df_("BIB_ISBN_END",'</span>');
  153. /**#@- */
  154. /** Define a comma separate list of view. */
  155. _df_("BIB_VIEW_LIST","index,biblio,author,keyword,bibkey,year,category");
  156. /** Categories list start fields*/
  157. _df_("BIB_CATEGORIES_LIST_START",'<ul id="BIBcategoriesList">');
  158. /** Categories list end fields*/
  159. _df_("BIB_CATEGORIES_LIST_END",'</ul>');
  160. /** Years list start fields*/
  161. _df_("BIB_YEARS_LIST_START",'<ul id="BIByearsList">');
  162. /** Years list end fields*/
  163. _df_("BIB_YEARS_LIST_END",'</ul>');
  164. /** Keywords list start fields*/
  165. _df_("BIB_KEYWORDS_LIST_START",'<ul id="BIBkeywordsList">');
  166. /** Keywords list end fields*/
  167. _df_("BIB_KEYWORDS_LIST_END",'</ul>');
  168. /** Authors list start fields*/
  169. _df_("BIB_AUTHORS_LIST_START",'<ul id="BIBauthorsList">');
  170. /** Authors list end fields*/
  171. _df_("BIB_AUTHORS_LIST_END",'</ul>');
  172. /** Define a comma separate list of sort cartegory.
  173. * All category prefixed by 'r' _df the "reverse" sort.
  174. */
  175. _df_("BIB_SORT_LIST","category,year,author,rcategory,ryear,rauthor");
  176. ?>