Update of /cvsroot/refdb/refdb/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15449
Modified Files:
Tag: Release_0_9_5_stable
backend-bibtex.c
Log Message:
turn RIS CHAP into bibtex INCOLLECTION rather than INBOOK; fix title and booktitle stuff for this type
Index: backend-bibtex.c
===================================================================
RCS file: /cvsroot/refdb/refdb/src/backend-bibtex.c,v
retrieving revision 1.16.2.11
retrieving revision 1.16.2.12
diff -u -U2 -r1.16.2.11 -r1.16.2.12
--- backend-bibtex.c 9 Apr 2006 21:35:42 -0000 1.16.2.11
+++ backend-bibtex.c 10 Apr 2006 21:03:02 -0000 1.16.2.12
@@ -252,5 +252,5 @@
}
else if (strcmp(type, "CHAP") == 0) {
- strcat(*(ptr_rendinfo->ptr_ref), "@INBOOK{ ");
+ strcat(*(ptr_rendinfo->ptr_ref), "@INCOLLECTION{ ");
}
else if (strcmp(type, "THES") == 0) {
@@ -429,14 +429,5 @@
item = get_refdb_title_copy(ptr_rendinfo->dbires);
if (item != NULL) {
- char titlestring[32];
-
- if (!strcmp(type, "CHAP")) {
- strcpy(titlestring, " CHAPTER = {");
- }
- else {
- strcpy(titlestring, " TITLE = {");
- }
-
- if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), titlestring, ptr_rendinfo->ptr_ref_len, 0)) == NULL) {
+ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), " TITLE = {", ptr_rendinfo->ptr_ref_len, 0)) == NULL) {
unload_style();
LOG_PRINT(LOG_CRIT, get_status_msg(801));
@@ -481,14 +472,5 @@
item = get_refdb_booktitle_copy(ptr_rendinfo->dbires);
if (item != NULL) {
- char titlestring[32];
-
- if (!strcmp(type, "CHAP")
- || !strcmp(type, "BOOK")) {
- strcpy(titlestring, " TITLE = {");
- }
- else {
- strcpy(titlestring, " BOOKTITLE = {");
- }
- if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), titlestring, ptr_rendinfo->ptr_ref_len, 0)) == NULL) {
+ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), " BOOKTITLE = {", ptr_rendinfo->ptr_ref_len, 0)) == NULL) {
unload_style();
LOG_PRINT(LOG_CRIT, get_status_msg(801));
|