Changeset 20927 in project


Ignore:
Timestamp:
10/22/10 04:38:38 (11 years ago)
Author:
Ivan Raikov
Message:

scbib: added support for eid and doi fields in the bibtex module.

Location:
release/4/scbib/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • release/4/scbib/trunk/modules/bibtex.scm

    r20404 r20927  
    107107                  #f))))
    108108
    109     (format output-port "@~a{~a,\n~a~a~a~a~a~a~a~a~a~a~a~a~a~a~a~a}~%"
     109    (format output-port "@~a{~a,\n~a~a~a~a~a~a~a~a~a~a~a~a~a~a~a~a~a~a}~%"
    110110            (let ((bibtype (get 'bibtype)))
    111               (if (string=? bibtype "web")
    112                   "misc"
    113                   bibtype))
     111              (cond ((not bibtype) (error 'scbib-bibtex-print-item "bibtype not given for item" bibitem))
     112                    ((and (string? bibtype) (string=? bibtype "web"))  "misc")
     113                    (else bibtype)))
    114114            (scbib-get-abbrev bibitem key-style)
    115115            (itemize "author" (authors))
     
    127127            (itemize "note" (note))
    128128;           (itemize "month" (get 'month))
    129             (itemize "volume" (get 'volume))
    130             (itemize "number" (get 'number))
    131             (itemize "school" (get 'school))
    132             (itemize "journal" (get 'journal)))
     129            (itemize "volume"  (get 'volume))
     130            (itemize "number"  (get 'number))
     131            (itemize "school"  (get 'school))
     132            (itemize "journal" (get 'journal))
     133            (itemize "eid" (get 'eid))
     134            (itemize "doi" (get 'doi))
     135            )
    133136    )
    134137
  • release/4/scbib/trunk/scbib.setup

    r20717 r20927  
    77 'scbib
    88 `("scbib.so" "scbib.import.so")
    9  `((version 1.4)
     9 `((version 1.5)
    1010   (documentation "scbib.html")
    1111   ))
     
    1717 'scbib-bibtex
    1818 `("scbib-bibtex.so" "scbib-bibtex.import.so")
    19  `((version 1.4)))
     19 `((version 1.5)))
    2020
    2121(compile -s -O -d2 "modules/style.scm" -j scbib-style -o "scbib-style.so")
     
    2525 'scbib-style
    2626 `("scbib-style.so" "scbib-style.import.so")
    27  `((version 1.4)))
     27 `((version 1.5)))
    2828
Note: See TracChangeset for help on using the changeset viewer.