|
60 | 60 |
|
61 | 61 | ;; 获取作者字段(优先使用author,如果没有则使用editor) |
62 | 62 | (define (gbt-get-author-field x) |
| 63 | + ;; editor和author同逻辑:优先使用author,没有author才使用editor |
63 | 64 | (let ((author-field (bib-field x "author")) |
64 | 65 | (editor-field (bib-field x "editor"))) |
65 | 66 | (cond |
|
69 | 70 |
|
70 | 71 | ;; 为作者字符串添加后缀(如果是editor) |
71 | 72 | (define (gbt-add-suffix author-str field-type chinese? count) |
72 | | - (cond |
73 | | - ((equal? field-type 'author) author-str) ;; author不加后缀 |
74 | | - ((equal? field-type 'editor) |
75 | | - (if chinese? |
76 | | - (if (= count 1) |
77 | | - `(concat ,author-str " (<#7F16>)") ;; (编) |
78 | | - `(concat ,author-str " (<#4E3B><#7F16>)")) ;; (主编) |
79 | | - (if (= count 1) |
80 | | - `(concat ,author-str " (ed.)") |
81 | | - `(concat ,author-str " (eds.)")))) |
82 | | - (else author-str))) |
| 73 | + ;; editor和author同逻辑:都不加后缀 |
| 74 | + author-str) |
83 | 75 |
|
84 | 76 | ;; 获取作者字符串(用于natbib-triple的author字段 - 完整格式,用于参考文献表) |
85 | 77 | (tm-define (gbt-get-author-string x) |
|
490 | 482 | ,(bib-new-block |
491 | 483 | (bib-new-sentence |
492 | 484 | `(,(bib-format-field x "journal") |
493 | | - ,(bib-format-vol-num-pages x))) |
494 | | - ,(bib-new-block (bib-format-url-doi x))))))) |
| 485 | + ,(bib-format-vol-num-pages x)))) |
| 486 | + ,(bib-new-block (bib-format-url-doi x)))))) |
495 | 487 |
|
496 | 488 | ;; 重写图书格式以添加文献类型标识符 [M] |
497 | 489 | (tm-define (bib-format-book n x) |
|
515 | 507 | (bib-new-sentence |
516 | 508 | `(,(bib-format-number-series x) |
517 | 509 | ,(bib-format-address-institution x)))) |
518 | | - ,(bib-new-block (bib-format-url-doi x)))))) |
| 510 | + ,(bib-new-block (bib-format-url-doi x))))))) |
519 | 511 |
|
520 | 512 | ;; 重写析出图书格式以添加文献类型标识符 [M] |
521 | 513 | (tm-define (bib-format-inbook n x) |
|
571 | 563 | (bib-new-sentence |
572 | 564 | `(,(bib-format-number-series x) |
573 | 565 | ,(bib-format-address-institution x)))) |
574 | | - ,(bib-new-block (bib-format-url-doi x)))))) |
| 566 | + ,(bib-new-block (bib-format-url-doi x))))))) |
575 | 567 |
|
576 | 568 | ;; 重写会议论文格式以添加文献类型标识符 [C] |
577 | 569 | (tm-define (bib-format-inproceedings n x) |
|
635 | 627 | (let ((address-institution (bib-format-address-institution x))) |
636 | 628 | (if (equal? address-institution "") '() `(,address-institution))) |
637 | 629 | `(,(bib-format-address-institution x))))) |
638 | | - ,(bib-new-block (bib-format-url-doi x)))))) |
| 630 | + ,(bib-new-block (bib-format-url-doi x))))))) |
639 | 631 |
|
640 | 632 | ;; 重写博士论文格式以添加文献类型标识符 [D] |
641 | 633 | (tm-define (bib-format-phdthesis n x) |
|
750 | 742 | (tm-define (bib-format-electronic n x) |
751 | 743 | (:mode bib-gbt7714-2015-author-year?) |
752 | 744 | `(concat |
753 | | - ,(bib-format-bibitem n x) |
754 | | - ,(bib-label (list-ref x 2)) |
755 | | - ,(bib-new-list-spc |
756 | | - `(,(bib-new-block |
757 | | - `(concat ,(bib-format-field-preserve-case x "title") |
758 | | - ,(bib-document-type-identifier x "electronic"))) |
759 | | - ,(bib-new-block (bib-format-url-doi x)))))) |
| 745 | + ,(bib-format-bibitem n x) |
| 746 | + ,(bib-label (list-ref x 2)) |
| 747 | + ,(bib-new-list-spc |
| 748 | + `(,(bib-new-block |
| 749 | + `(concat ,(bib-format-field-preserve-case x "title") |
| 750 | + ,(bib-document-type-identifier x "electronic"))) |
| 751 | + ,(bib-new-block (bib-format-url-doi x)))))) |
760 | 752 |
|
761 | 753 | ;; 重写在线网页格式以添加文献类型标识符 [EB] |
762 | 754 | (tm-define (bib-format-online n x) |
|
795 | 787 | (bib-new-sentence |
796 | 788 | `(,(bib-format-field x "journal") |
797 | 789 | ,date-pages-str))) |
798 | | - ,(bib-new-block (bib-format-url-doi x)))))) |
| 790 | + ,(bib-new-block (bib-format-url-doi x))))))) |
799 | 791 |
|
800 | 792 | ;; 重写汇编格式以添加文献类型标识符 [G] |
801 | 793 | (tm-define (bib-format-collection n x) |
|
915 | 907 | ,(bib-new-block |
916 | 908 | (bib-new-sentence |
917 | 909 | `(,(bib-format-address-institution x)))) |
918 | | - ,(bib-new-block (bib-format-url-doi x)))))) |
| 910 | + ,(bib-new-block (bib-format-url-doi x))))))) |
919 | 911 |
|
920 | 912 | ;; 重写数据集格式以添加文献类型标识符 [DS] |
921 | 913 | (tm-define (bib-format-dataset n x) |
|
0 commit comments