refdb-cvs Mailing List for RefDB (Page 40)
Status: Beta
Brought to you by:
mhoenicka
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(47) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(88) |
Feb
(50) |
Mar
(36) |
Apr
(9) |
May
(30) |
Jun
(30) |
Jul
(22) |
Aug
(16) |
Sep
(42) |
Oct
(18) |
Nov
(29) |
Dec
(23) |
2005 |
Jan
(18) |
Feb
(28) |
Mar
(21) |
Apr
(35) |
May
(62) |
Jun
(22) |
Jul
(5) |
Aug
(40) |
Sep
(98) |
Oct
(81) |
Nov
(51) |
Dec
(62) |
2006 |
Jan
(46) |
Feb
(36) |
Mar
(8) |
Apr
(16) |
May
(14) |
Jun
(16) |
Jul
(47) |
Aug
(60) |
Sep
(34) |
Oct
(16) |
Nov
(46) |
Dec
(11) |
2007 |
Jan
(16) |
Feb
(13) |
Mar
(58) |
Apr
(32) |
May
(4) |
Jun
(8) |
Jul
(31) |
Aug
(46) |
Sep
(22) |
Oct
(30) |
Nov
(58) |
Dec
(15) |
2008 |
Jan
(8) |
Feb
(8) |
Mar
(2) |
Apr
(6) |
May
(3) |
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
(6) |
Nov
(3) |
Dec
(5) |
2009 |
Jan
(1) |
Feb
(20) |
Mar
(8) |
Apr
(5) |
May
(8) |
Jun
(3) |
Jul
(6) |
Aug
(4) |
Sep
(7) |
Oct
(8) |
Nov
(2) |
Dec
(1) |
2010 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
2011 |
Jan
(5) |
Feb
(5) |
Mar
(13) |
Apr
(3) |
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(5) |
Nov
|
Dec
(3) |
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(13) |
2014 |
Jan
(2) |
Feb
(2) |
Mar
(2) |
Apr
(4) |
May
(1) |
Jun
(1) |
Jul
|
Aug
(6) |
Sep
(3) |
Oct
|
Nov
(2) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
(9) |
Feb
(16) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Markus H. <mho...@us...> - 2005-12-17 01:15:54
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23772 Modified Files: Tag: Release_0_9_5_stable backend-dbib.h Log Message: mset fixes Index: backend-dbib.h =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend-dbib.h,v retrieving revision 1.9.2.5 retrieving revision 1.9.2.6 diff -u -U2 -r1.9.2.5 -r1.9.2.6 --- backend-dbib.h 2 Oct 2005 23:38:15 -0000 1.9.2.5 +++ backend-dbib.h 17 Dec 2005 01:15:44 -0000 1.9.2.6 @@ -20,4 +20,6 @@ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ +#include "mset.h" + struct BIBCONNS { dbi_conn conn; @@ -29,5 +31,5 @@ int finish_render_dbib(char** ptr_ref, size_t* ptr_ref_len, struct BIBCONNS* ptr_bibconns, struct bibinfo* ptr_biblio_info, char* table_name, struct CLIENT_REQUEST* ptr_clrequest); int render_dbib(char** ptr_ref, size_t* ref_len, struct BIBCONNS* ptr_bibconns, dbi_result dbires, const char* database, struct bibinfo* ptr_biblio_info, char* username, char* pdfroot, int nref_counter, short title_as_author); -int format_entry(char** ptr_ref, size_t* ptr_ref_len, char* pubtype, struct BIBCONNS* ptr_bibconns, dbi_result dbiresref, dbi_result dbires, const char* database, const char* username, int nref_counter, char* current_mset, struct bibinfo* ptr_biblio_info, short title_as_author); +int format_entry(char** ptr_ref, size_t* ptr_ref_len, char* pubtype, struct BIBCONNS* ptr_bibconns, dbi_result dbiresref, dbi_result dbires, const char* database, const char* username, int nref_counter, struct mset* ptr_mset_sentinel, struct bibinfo* ptr_biblio_info, short title_as_author); char* format_refnumber(char** ptr_ref, size_t* ptr_ref_len, struct BIBCONNS* ptr_bibconns, dbi_result dbires, dbi_result dbiresref, int nref_counter, int n_intext); |
From: Markus H. <mho...@us...> - 2005-12-17 01:09:31
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22042 Modified Files: Tag: Release_0_9_5_stable backend-dbib.c Log Message: moved set_mset to mset.c;assorted mset fixes;alltitle support Index: backend-dbib.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend-dbib.c,v retrieving revision 1.28.2.12 retrieving revision 1.28.2.13 diff -u -U2 -r1.28.2.12 -r1.28.2.13 --- backend-dbib.c 3 Nov 2005 20:40:19 -0000 1.28.2.12 +++ backend-dbib.c 17 Dec 2005 01:09:21 -0000 1.28.2.13 @@ -37,11 +37,9 @@ #include "dbfncs.h" #include "connect.h" +#include "mset.h" extern int n_log_level; extern dbi_result dbi_style_res; -/* forward declarations of local functions */ -static char* set_mset(char* current_mset, char* new_mset, char** ref, size_t* ptr_ref_len); - /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @@ -203,5 +201,4 @@ char *myjournal; char intext_string[] = "INTEXT"; - char current_mset[10] = ""; char *item_rangesep; const char *item_intextseq; @@ -233,4 +230,5 @@ unsigned long long n_orig_id; struct lilimem sentinel; + struct mset* ptr_mset_sentinel; /* we need quite a few database queries here */ @@ -241,8 +239,13 @@ dbi_result dbires4; + /* initialize linked lists and stacks */ sentinel.ptr_mem = NULL; sentinel.ptr_next = NULL; sentinel.varname[0] = '\0'; + if ((ptr_mset_sentinel = new_mset_stack()) == NULL) { + return 801; + } + drivername = dbi_driver_get_name(dbi_conn_get_driver(ptr_bibconns->conn_refdb)); @@ -250,4 +253,5 @@ sql_command = malloc(sql_command_len); if (!sql_command || insert_lilimem(&sentinel, (void**)&sql_command, "sql_command")) { + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -256,4 +260,5 @@ if (!myjournal || insert_lilimem(&sentinel, (void**)&myjournal, "myjournal")) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -261,4 +266,5 @@ if (dbi_conn_quote_string(ptr_bibconns->conn_refdb, &myjournal) == 0) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -277,4 +283,5 @@ if (!dbires || dbi_result_next_row(dbires) == 0) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 241; } @@ -290,4 +297,5 @@ if (item_rangesep && insert_lilimem(&sentinel, (void**)&item_rangesep, "item_rangesep")) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -295,4 +303,5 @@ if (item_rangesep && sgml_entitize(&item_rangesep, NULL) == NULL) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -316,4 +325,5 @@ if (item_preceeding && insert_lilimem(&sentinel, (void**)&item_preceeding, "item_preceeding")) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -321,4 +331,5 @@ if (item_preceeding && sgml_entitize(&item_preceeding, NULL) == NULL) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -333,4 +344,5 @@ if (item_following && insert_lilimem(&sentinel, (void**)&item_following, "item_following")) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -338,4 +350,5 @@ if (item_following && sgml_entitize(&item_following, NULL) == NULL) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -350,4 +363,5 @@ if (item_citsep && insert_lilimem(&sentinel, (void**)&item_citsep, "item_citsep")) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -355,4 +369,5 @@ if (item_citsep && sgml_entitize(&item_citsep, NULL) == NULL) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -366,4 +381,5 @@ delete_all_lilimem(&sentinel); dbi_result_free(dbires); + clear_mset_stack(ptr_mset_sentinel); return 234; } @@ -373,4 +389,5 @@ dbi_result_free(dbires); dbi_result_free(dbires1); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -404,4 +421,5 @@ dbi_result_free(dbires); dbi_result_free(dbires1); + clear_mset_stack(ptr_mset_sentinel); return 234; } @@ -436,4 +454,5 @@ dbi_result_free(dbires1); dbi_result_free(dbires2); + clear_mset_stack(ptr_mset_sentinel); return 234; } @@ -445,4 +464,5 @@ dbi_result_free(dbires1); dbi_result_free(dbires2); + clear_mset_stack(ptr_mset_sentinel); return 234; } @@ -454,4 +474,5 @@ dbi_result_free(dbires1); dbi_result_free(dbires2); + clear_mset_stack(ptr_mset_sentinel); return 234; } @@ -470,4 +491,5 @@ dbi_result_free(dbires1); dbi_result_free(dbires2); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -481,4 +503,5 @@ dbi_result_free(dbires1); dbi_result_free(dbires2); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -493,4 +516,5 @@ dbi_result_free(dbires1); dbi_result_free(dbires2); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -506,4 +530,5 @@ dbi_result_free(dbires1); dbi_result_free(dbires2); + clear_mset_stack(ptr_mset_sentinel); return 234; } @@ -522,4 +547,5 @@ dbi_result_free(dbires1); dbi_result_free(dbires2); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -536,4 +562,5 @@ dbi_result_free(dbires1); dbi_result_free(dbires2); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -588,4 +615,5 @@ dbi_result_free(dbires1); dbi_result_free(dbires2); + clear_mset_stack(ptr_mset_sentinel); return 204; } @@ -599,4 +627,5 @@ dbi_result_free(dbires1); dbi_result_free(dbires2); + clear_mset_stack(ptr_mset_sentinel); return 234; } @@ -619,4 +648,5 @@ dbi_result_free(dbires2); dbi_result_free(dbires3); + clear_mset_stack(ptr_mset_sentinel); return 234; } @@ -630,5 +660,5 @@ /* if we are supposed to display consecutive sequences of numerical citations as a numerical range, we have to format the first in a possible series and then look ahead if at least two more citations are consecutive (as defined by their sorted order in the bibliography) */ if (ndo_range) { - if ((n_status = format_entry(ptr_ref, ptr_ref_len, intext_string, ptr_bibconns, dbires, dbires3, item_dbname, ptr_clrequest->username, n_sorted_pos, current_mset, ptr_biblio_info, title_as_author)) != 0) { + if ((n_status = format_entry(ptr_ref, ptr_ref_len, intext_string, ptr_bibconns, dbires, dbires3, item_dbname, ptr_clrequest->username, n_sorted_pos, ptr_mset_sentinel, ptr_biblio_info, title_as_author)) != 0) { delete_all_lilimem(&sentinel); dbi_result_free(dbires); @@ -636,4 +666,5 @@ dbi_result_free(dbires2); dbi_result_free(dbires3); + clear_mset_stack(ptr_mset_sentinel); return n_status; } @@ -683,5 +714,5 @@ /* don't use ranges. We have to format each entry */ else { - if ((n_status = format_entry(ptr_ref, ptr_ref_len, intext_string, ptr_bibconns, dbires, dbires3, item_dbname, ptr_clrequest->username, n_sorted_pos, current_mset, ptr_biblio_info, title_as_author)) != 0) { + if ((n_status = format_entry(ptr_ref, ptr_ref_len, intext_string, ptr_bibconns, dbires, dbires3, item_dbname, ptr_clrequest->username, n_sorted_pos, ptr_mset_sentinel, ptr_biblio_info, title_as_author)) != 0) { delete_all_lilimem(&sentinel); dbi_result_free(dbires); @@ -689,4 +720,5 @@ dbi_result_free(dbires2); dbi_result_free(dbires3); + clear_mset_stack(ptr_mset_sentinel); return n_status; } @@ -705,9 +737,10 @@ } /* end loop over all xrefs of this citation */ - if ((new_ref = set_mset(current_mset, "", ptr_ref, ptr_ref_len)) == NULL) { + if ((new_ref = set_mset(ptr_mset_sentinel, "", ptr_ref, ptr_ref_len)) == NULL) { delete_all_lilimem(&sentinel); dbi_result_free(dbires); dbi_result_free(dbires1); dbi_result_free(dbires2); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -723,4 +756,5 @@ dbi_result_free(dbires1); dbi_result_free(dbires2); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -735,4 +769,5 @@ dbi_result_free(dbires1); dbi_result_free(dbires2); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -748,4 +783,5 @@ if ((new_ref = mstrcat(*ptr_ref, "</bibliomixed>", ptr_ref_len, 0)) == NULL) { + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -755,4 +791,5 @@ if ((new_ref = mstrcat(*ptr_ref, "</bibliography>\n", ptr_ref_len, 0)) == NULL) { + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -761,4 +798,6 @@ } + clear_mset_stack(ptr_mset_sentinel); + return 0; } @@ -819,5 +858,4 @@ char empty_string[1] = ""; char bmset_buffer[256] = ""; - char current_mset[10] = ""; char entry_id[32] = ""; char journaltype[4][12] = {"name", @@ -848,4 +886,5 @@ struct lilimem sentinel; + struct mset* ptr_mset_sentinel; sentinel.ptr_mem = NULL; @@ -853,4 +892,8 @@ sentinel.varname[0] = '\0'; + if ((ptr_mset_sentinel = new_mset_stack()) == NULL) { + return 801; + } + /* printf("now in render_dbib for %s\n", ptr_biblio_info->entry_id); */ @@ -861,4 +904,5 @@ sql_command = malloc(sql_command_len); if (!sql_command || insert_lilimem(&sentinel, (void**)&sql_command, "sql_command")) { + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -869,4 +913,5 @@ if (!myjournal || insert_lilimem(&sentinel, (void**)&myjournal, "myjournal")) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -874,4 +919,5 @@ if (dbi_conn_quote_string(ptr_bibconns->conn_refdb, &myjournal) == 0) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -889,4 +935,5 @@ if (!dbires_cit || dbi_result_next_row(dbires_cit) == 0) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 234; } @@ -901,4 +948,5 @@ if (item_preceeding && insert_lilimem(&sentinel, (void**)&item_preceeding, "item_preceeding")) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -913,4 +961,5 @@ if (item_following && insert_lilimem(&sentinel, (void**)&item_following, "item_following")) { delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -921,4 +970,5 @@ delete_all_lilimem(&sentinel); dbi_result_free(dbires_cit); + clear_mset_stack(ptr_mset_sentinel); return 244; } @@ -943,4 +993,5 @@ - id="IDxyz:Y": contains the year-only in-text citation */ +/* printf("here intext contents start for %s\n", ptr_biblio_info->entry_id); */ for (i = 0; i < 5; i++) { sprintf(bmset_buffer, "<bibliomset role=\"%s\" id=\"%s%s", role_string[i], ptr_biblio_info->entry_id, bibliomset_endstring[i]); @@ -949,4 +1000,5 @@ delete_all_lilimem(&sentinel); dbi_result_free(dbires_cit); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -955,9 +1007,10 @@ } - if (i < 2 || i > 3) { + if (i < 2 || i > 3) { /* all but the author-onlies */ if (item_preceeding && *item_preceeding) { /* CITSTYLE PRECEEDING */ if ((new_ref = mstrcat(*ptr_ref, (char*)item_preceeding, ptr_ref_len, 0)) == NULL) { delete_all_lilimem(&sentinel); dbi_result_free(dbires_cit); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -968,13 +1021,15 @@ } - if ((n_status = format_entry(ptr_ref, ptr_ref_len, format_spec[i], ptr_bibconns, dbires_cit, dbires, database, username, nref_counter, current_mset, ptr_biblio_info, title_as_author)) != 0) { + if ((n_status = format_entry(ptr_ref, ptr_ref_len, format_spec[i], ptr_bibconns, dbires_cit, dbires, database, username, nref_counter, ptr_mset_sentinel, ptr_biblio_info, title_as_author)) != 0) { dbi_result_free(dbires_cit); delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return n_status; } - if ((new_ref = set_mset(current_mset, empty_string, ptr_ref, ptr_ref_len)) == NULL) { + if ((new_ref = set_mset(ptr_mset_sentinel, empty_string, ptr_ref, ptr_ref_len)) == NULL) { dbi_result_free(dbires_cit); delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -989,4 +1044,5 @@ delete_all_lilimem(&sentinel); dbi_result_free(dbires_cit); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -995,4 +1051,5 @@ dbi_result_free(dbires_cit); delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -1006,4 +1063,5 @@ dbi_result_free(dbires_cit); delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -1011,8 +1069,8 @@ *ptr_ref = new_ref; } - } + } /* end for */ -/* printf("here the real bibliography contents start for %s\n", ptr_biblio_info->entry_id); */ +/* printf("here the real bibliography contents start for %s\n", ptr_biblio_info->entry_id); */ /* here the real bibliography contents start */ @@ -1021,4 +1079,5 @@ dbi_result_free(dbires_cit); delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -1027,13 +1086,25 @@ } - if ((n_status = format_entry(ptr_ref, ptr_ref_len, buffer, ptr_bibconns, dbires_cit, dbires, database, username, nref_counter, current_mset, ptr_biblio_info, title_as_author)) != 0) { /* format bibliography entry body according to PUBTYPE */ + if ((n_status = format_entry(ptr_ref, ptr_ref_len, buffer, ptr_bibconns, dbires_cit, dbires, database, username, nref_counter, ptr_mset_sentinel, ptr_biblio_info, title_as_author)) != 0) { /* format bibliography entry body according to PUBTYPE */ dbi_result_free(dbires_cit); delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return n_status; } - if ((new_ref = set_mset(current_mset, empty_string, ptr_ref, ptr_ref_len)) == NULL) { + if ((new_ref = set_mset(ptr_mset_sentinel, empty_string, ptr_ref, ptr_ref_len)) == NULL) { dbi_result_free(dbires_cit); delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); + return 801; + } + else { + *ptr_ref = new_ref; + } + + if ((new_ref = set_mset(ptr_mset_sentinel, empty_string, ptr_ref, ptr_ref_len)) == NULL) { + dbi_result_free(dbires_cit); + delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -1045,4 +1116,5 @@ dbi_result_free(dbires_cit); delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 801; } @@ -1053,4 +1125,5 @@ dbi_result_free(dbires_cit); delete_all_lilimem(&sentinel); + clear_mset_stack(ptr_mset_sentinel); return 0; } @@ -1090,6 +1163,5 @@ int nref_counter number of reference (to be displayed in bibliography) - char* current_mset ptr to a string holding the current bibliomset - relation attribute, if any + struct mset* ptr_mset_sentinel ptr to the bibliomset relation attribute stack struct bibinfo* ptr_biblio_info ptr to struct with additional bibliographic @@ -1099,5 +1171,5 @@ wants the title to be printed instead ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -int format_entry(char** ptr_ref, size_t* ptr_ref_len, char* pubtype, struct BIBCONNS* ptr_bibconns, dbi_result dbires_cit, dbi_result dbires, const char* database, const char* username, int nref_counter, char* current_mset, struct bibinfo* ptr_biblio_info, short title_as_author) { +int format_entry(char** ptr_ref, size_t* ptr_ref_len, char* pubtype, struct BIBCONNS* ptr_bibconns, dbi_result dbires_cit, dbi_result dbires, const char* database, const char* username, int nref_counter, struct mset* ptr_mset_sentinel, struct bibinfo* ptr_biblio_info, short title_as_author) { int error = 0; size_t nref_buffer_len; @@ -1232,5 +1304,5 @@ if (strcmp(item_type, "REFNUMBER") == 0) { /* if (!nformat_spec) { */ - if ((new_ref_buffer = set_mset(current_mset, "", &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, "", &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1272,5 +1344,5 @@ mset_string[0] = '\0'; } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1304,5 +1376,5 @@ } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1335,5 +1407,5 @@ mset_string[0] = '\0'; } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1375,5 +1447,5 @@ } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1415,5 +1487,5 @@ } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1454,5 +1526,5 @@ } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1485,5 +1557,5 @@ } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1515,5 +1587,5 @@ strcpy(mset_string, "intext"); } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1538,4 +1610,35 @@ } /*---------------------------------------------------------------*/ + else if (strcmp(item_type, "ALLTITLE") == 0) { +/* if (!n_intext) { */ + strcpy(mset_string, "all"); /* does this make sense? */ +/* } */ +/* else { */ +/* *mset_string = '\0'; */ +/* } */ + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + error = 801; + break; + } + + ref_buffer = new_ref_buffer; + + if ((new_ref_buffer = format_title(&ref_buffer, &nref_buffer_len, ptr_bibconns, dbires, dbi_style_res, 3, n_intext, 0 /* not title as author */)) == NULL) { + error = 813; + break; + } + + ref_buffer = new_ref_buffer; + if (ref_buffer[0]) { + if ((new_ref = mstrcat(*ptr_ref, ref_buffer, ptr_ref_len, 0)) == NULL) { + error = 801; + break; + } + + *ptr_ref = new_ref; + } + ref_buffer[0] = '\0'; + } + /*---------------------------------------------------------------*/ else if (strcmp(item_type, "JOURNALNAME") == 0) { if (!n_intext) { @@ -1545,5 +1648,5 @@ strcpy(mset_string, "intext"); } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1575,5 +1678,5 @@ strcpy(mset_string, "intext"); } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1605,5 +1708,5 @@ strcpy(mset_string, "intext"); } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1640,5 +1743,5 @@ strcpy(mset_string, "intext"); } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1675,5 +1778,5 @@ strcpy(mset_string, "intext"); } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1710,5 +1813,5 @@ strcpy(mset_string, "intext"); } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1749,5 +1852,5 @@ strcpy(mset_string, "intext"); } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1784,5 +1887,5 @@ strcpy(mset_string, "intext"); } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1819,5 +1922,5 @@ /* strcpy(mset_string, "intext"); */ /* } */ -/* if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { */ +/* if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { */ /* error = 801; */ /* break; */ @@ -1854,5 +1957,5 @@ strcpy(mset_string, "intext"); } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1915,5 +2018,5 @@ strcpy(mset_string, "intext"); } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -1964,5 +2067,5 @@ strcpy(mset_string, "intext"); } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -2025,5 +2128,5 @@ strcpy(mset_string, "intext"); } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -2061,5 +2164,5 @@ } - if ((new_ref_buffer = set_mset(current_mset, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { + if ((new_ref_buffer = set_mset(ptr_mset_sentinel, mset_string, &ref_buffer, &nref_buffer_len)) == NULL) { error = 801; break; @@ -2103,4 +2206,12 @@ } /* end while */ + strcpy(mset_string, ""); + + if ((new_ref = set_mset(ptr_mset_sentinel, mset_string, ptr_ref, ptr_ref_len)) == NULL) { + error = 801; + } + + *ptr_ref = new_ref; + dbi_result_free(dbires_pos); unload_style(); @@ -2111,92 +2222,4 @@ } -/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - set_mset(): starts and closes bibliomsets as requested - - static char* set_mset returns ptr to the buffer if successful, NULL if failed - - char* current_mset ptr to a string containing the currently open - bibliomset relation attribute. The string may be empty - indicating that there is no open bibliomset, but the - string must still be allocated (or created on the stack) - with a size of at least 10 char. - - char* new_mset ptr to a string containing the requested new - bibliomset relation attribute. The string may be empty - indicating that we shall only close the current bibliomset - if any - - char** ptr_ref ptr to a ptr to a buffer created with malloc which will receive - the output. The calling function must allocate the buffer - with at least one byte. This function will reallocate the - buffer as needed. *ptr will be updated whenever a realloc is - necessary. The calling function is responsible for freeing the - memory again. - - size_t* ptr_ref_len ptr to an int holding the current length of ref. - Will be modified if ref is reallocated. - - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -static char* set_mset(char* current_mset, char* new_mset, char** ptr_ref, size_t* ptr_ref_len) { - char* new_ref; - - assert(current_mset != NULL); - -/* printf("current:%s:new:%s\n", current_mset, new_mset); */ - if ((!(current_mset[0] == new_mset[0] && current_mset[0] == '\0')) || strcmp(current_mset, new_mset) != 0) { - if (!*new_mset && *current_mset) { /* dont add new bibliomset, but old one exists */ - if ((new_ref = mstrcat(*ptr_ref, "</bibliomset>", ptr_ref_len, 0)) == NULL) { - return NULL; - } - else { - *ptr_ref = new_ref; - } - } - else if (*new_mset && !*current_mset) { /* add new one, no old one to close */ - if ((new_ref = mstrcat(*ptr_ref, "<bibliomset relation=\"", ptr_ref_len, 0)) == NULL) { - return NULL; - } - else { - *ptr_ref = new_ref; - } - if ((new_ref = mstrcat(*ptr_ref, new_mset, ptr_ref_len, 0)) == NULL) { - return NULL; - } - else { - *ptr_ref = new_ref; - } - if ((new_ref = mstrcat(*ptr_ref, "\">", ptr_ref_len, 0)) == NULL) { - return NULL; - } - else { - *ptr_ref = new_ref; - } - } - else { /* close old one, add new one */ - if ((new_ref = mstrcat(*ptr_ref, "</bibliomset><bibliomset relation=\"", ptr_ref_len, 0)) == NULL) { - return NULL; - } - else { - *ptr_ref = new_ref; - } - if ((new_ref = mstrcat(*ptr_ref, new_mset, ptr_ref_len, 0)) == NULL) { - return NULL; - } - else { - *ptr_ref = new_ref; - } - if ((new_ref = mstrcat(*ptr_ref, "\">", ptr_ref_len, 0)) == NULL) { - return NULL; - } - else { - *ptr_ref = new_ref; - } - } - } - if (!(current_mset[0] == new_mset[0] && current_mset[0] == '\0')) { - strcpy(current_mset, new_mset); - } - return *ptr_ref; -} |
From: Markus H. <mho...@us...> - 2005-12-17 01:03:51
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20946 Added Files: Tag: Release_0_9_5_stable mset.c mset.h Log Message: initial version --- NEW FILE --- /*+++++++++++++++++ mset.c - implements some functions for bibliography output ma...@mh... 2005-12-15 $Id: mset.c,v 1.1.2.1 2005/12/17 01:03:42 mhoenicka Exp $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ #include <stdio.h> /* for a definition of NULL */ #include <stdlib.h> /* for malloc */ #include <string.h> #include "strfncs.h" #include "mset.h" /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ set_mset(): starts and closes bibliomsets as requested static char* set_mset returns ptr to the buffer if successful, NULL if failed struct mset* ptr_first pointer to the sentinel of the mset stack char* new_mset ptr to a string containing the requested new bibliomset relation attribute. The string may be empty indicating that we shall only close the current bibliomset if any char** ptr_ref ptr to a ptr to a buffer created with malloc which will receive the output. The calling function must allocate the buffer with at least one byte. This function will reallocate the buffer as needed. *ptr will be updated whenever a realloc is necessary. The calling function is responsible for freeing the memory again. size_t* ptr_ref_len ptr to an int holding the current length of ref. Will be modified if ref is reallocated. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ char* set_mset(struct mset* ptr_first, char* new_mset, char** ptr_ref, size_t* ptr_ref_len) { int no_close = 0; char* new_ref; char current_mset[MSET_RELATION_LEN]; /* if there is no stack, assume that no msets should be handled */ if (!ptr_first) { return *ptr_ref; } /* if (!pop_mset(ptr_first, current_mset)) { */ /* *current_mset = '\0'; */ /* no_close = 1; */ /* } */ if (!ptr_first->ptr_next) { *current_mset = '\0'; no_close = 1; } else { strncpy(current_mset, ptr_first->ptr_next->relation, MSET_RELATION_LEN); current_mset[MSET_RELATION_LEN-1] = '\0'; } printf("current:%s:new:%s:no_close=%d:stacksize:%d\n", current_mset, new_mset, no_close, ptr_first->stacksize); if (/*(!(*current_mset == *new_mset && *current_mset == '\0')) || strcmp(current_mset, new_mset) != 0*/ 1) { if (!*new_mset/* && *current_mset */ && !no_close) { /* dont add new bibliomset, but old one exists */ printf("close only\n"); if ((new_ref = mstrcat(*ptr_ref, "</bibliomset>", ptr_ref_len, 0)) == NULL) { return NULL; } else { *ptr_ref = new_ref; } pop_mset(ptr_first, current_mset); } else if (!no_close && *new_mset && strcmp(current_mset, new_mset)){ /* close old one, add new one */ printf("close and open\n"); pop_mset(ptr_first, current_mset); if ((new_ref = mstrcat(*ptr_ref, "</bibliomset><bibliomset relation=\"", ptr_ref_len, 0)) == NULL) { return NULL; } else { *ptr_ref = new_ref; } if ((new_ref = mstrcat(*ptr_ref, new_mset, ptr_ref_len, 0)) == NULL) { return NULL; } else { *ptr_ref = new_ref; } if ((new_ref = mstrcat(*ptr_ref, "\">", ptr_ref_len, 0)) == NULL) { return NULL; } else { *ptr_ref = new_ref; } push_mset(ptr_first, new_mset); } else if (*new_mset && strcmp(current_mset, new_mset)) { /* add new one, no old one to close */ printf("open only\n"); if ((new_ref = mstrcat(*ptr_ref, "<bibliomset relation=\"", ptr_ref_len, 0)) == NULL) { return NULL; } else { *ptr_ref = new_ref; } if ((new_ref = mstrcat(*ptr_ref, new_mset, ptr_ref_len, 0)) == NULL) { return NULL; } else { *ptr_ref = new_ref; } if ((new_ref = mstrcat(*ptr_ref, "\">", ptr_ref_len, 0)) == NULL) { return NULL; } else { *ptr_ref = new_ref; } push_mset(ptr_first, new_mset); } } /* else if (!strcmp(current_mset, new_mset)) { */ /* push_mset(ptr_first, new_mset); */ /* } */ return *ptr_ref; } struct mset* new_mset_stack(void) { struct mset* ptr_new; if ((ptr_new = malloc(sizeof(struct mset))) == NULL) { return NULL; } *(ptr_new->relation) = '\0'; ptr_new->ptr_next = NULL; ptr_new->stacksize = 0; return ptr_new; } void clear_mset_stack(struct mset* ptr_first) { struct mset* ptr_delete; if (ptr_first) { while((ptr_delete = ptr_first->ptr_next) != NULL) { ptr_first->ptr_next = ptr_delete->ptr_next; free(ptr_delete); } free(ptr_first); } } char* push_mset(struct mset* ptr_first, char* new_mset) { struct mset* ptr_new; if (!new_mset || (ptr_new = malloc(sizeof(struct mset))) == NULL) { return NULL; } strncpy(ptr_new->relation, new_mset, MSET_RELATION_LEN); ptr_new->relation[MSET_RELATION_LEN-1] = '\0'; ptr_new->ptr_next = ptr_first->ptr_next; ptr_first->ptr_next = ptr_new; ptr_first->stacksize++; return new_mset; } char* pop_mset(struct mset* ptr_first, char* prev_mset) { struct mset* ptr_pop; if (!prev_mset || !ptr_first->ptr_next) { return NULL; } strncpy(prev_mset, ptr_first->ptr_next->relation, MSET_RELATION_LEN); prev_mset[MSET_RELATION_LEN-1] = '\0'; ptr_pop = ptr_first->ptr_next; ptr_first->ptr_next = ptr_pop->ptr_next; free(ptr_pop); ptr_first->stacksize--; return prev_mset; } --- NEW FILE --- /*+++++++++++++++++ mset.h - header file for mset.c ma...@mh... 2005-12-15 $Id: mset.h,v 1.1.2.1 2005/12/17 01:03:42 mhoenicka Exp $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ #ifndef MSET_H_INCLUDED #define MSET_H_INCLUDED 1 #define MSET_RELATION_LEN 16 typedef struct mset { char relation[MSET_RELATION_LEN]; /* relation attribute value of bibliomset */ int stacksize; struct mset *ptr_next; /* pointer to next element in the list */ } MSET; char* push_mset(struct mset* ptr_first, char* new_mset); char* pop_mset(struct mset* ptr_first, char* prev_mset); char* set_mset(struct mset* ptr_first, char* new_mset, char** ref, size_t* ptr_ref_len); struct mset* new_mset_stack(void); void clear_mset_stack(struct mset* ptr_first); #endif |
From: Markus H. <mho...@us...> - 2005-12-17 01:01:46
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20113/src Modified Files: Tag: Release_0_9_5_stable Makefile.am Log Message: added mset.c and mset.h Index: Makefile.am =================================================================== RCS file: /cvsroot/refdb/refdb/src/Makefile.am,v retrieving revision 1.21.2.4 retrieving revision 1.21.2.5 diff -u -U2 -r1.21.2.4 -r1.21.2.5 --- Makefile.am 23 Apr 2005 21:24:33 -0000 1.21.2.4 +++ Makefile.am 17 Dec 2005 01:01:36 -0000 1.21.2.5 @@ -19,5 +19,5 @@ refdbc_SOURCES = refdbc.c pref.c strfncs.c readln.c page.c refdb-client.c client-commands.c readris.c connect.c tokenize.c getopt.c linklist.c enigma.c cgi.c atoll.c refdb.h refdbc.h pref.h strfncs.h readln.h page.h refdb-client.h client-commands.h readris.h connect.h tokenize.h getopt.h linklist.h enigma.h cgi.h -refdbd_SOURCES = refdbd.c refdbdref.c refdbda.c refdbdbib.c pref.c strfncs.c tokenize.c connect.c risdb.c writeris.c getopt.c readris.c backend.c backend-scrn.c backend-ris.c backend-risx.c backend-db31.c backend-teix.c backend-bibtex.c backend-html.c backend-dbib.c backend-dbiba.c linklist.c xmlhandler.c enigma.c cgi.c atoll.c dbfncs.c xmlout.c risxhandler.c authorinfo.c risdata.c noteshandler.c refdbdnote.c writenote.c backendn-scrn.c backendn-notex.c backendn-html.c xmlhelper.c refdb.h refdbd.h pref.h strfncs.h tokenize.h connect.h risdb.h writeris.h getopt.h readris.h backend.h backend-scrn.h backend-ris.h backend-risx.h backend-db31.h backend-teix.h backend-bibtex.h backend-html.h backend-dbib.h linklist.h xmlhandler.h enigma.h cgi.h dbfncs.h xmlout.h risxhandler.h authorinfo.h risdata.h noteshandler.h writenote.h backendn-scrn.h backendn-notex.h xmlhelper.h backendn-html.h +refdbd_SOURCES = refdbd.c refdbdref.c refdbda.c refdbdbib.c pref.c strfncs.c tokenize.c connect.c risdb.c writeris.c getopt.c readris.c backend.c backend-scrn.c backend-ris.c backend-risx.c backend-db31.c backend-teix.c backend-bibtex.c backend-html.c backend-dbib.c backend-dbiba.c linklist.c xmlhandler.c enigma.c cgi.c atoll.c dbfncs.c xmlout.c risxhandler.c authorinfo.c risdata.c noteshandler.c refdbdnote.c writenote.c backendn-scrn.c backendn-notex.c backendn-html.c xmlhelper.c mset.c refdb.h refdbd.h pref.h strfncs.h tokenize.h connect.h risdb.h writeris.h getopt.h readris.h backend.h backend-scrn.h backend-ris.h backend-risx.h backend-db31.h backend-teix.h backend-bibtex.h backend-html.h backend-dbib.h linklist.h xmlhandler.h enigma.h cgi.h dbfncs.h xmlout.h risxhandler.h authorinfo.h risdata.h noteshandler.h writenote.h backendn-scrn.h backendn-notex.h xmlhelper.h backendn-html.h mset.h refdbxp_SOURCES = refdbxp.c getopt.c strfncs.c getopt.h strfncs.h |
From: Markus H. <mho...@us...> - 2005-12-17 00:57:59
|
Update of /cvsroot/refdb/refdb/dsssl/refdb/html In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18893/dsssl/refdb/html Modified Files: Tag: Release_0_9_5_stable docbook-refdb.dsl Log Message: add support for alltitles and for link0 Index: docbook-refdb.dsl =================================================================== RCS file: /cvsroot/refdb/refdb/dsssl/refdb/html/docbook-refdb.dsl,v retrieving revision 1.8.2.2 retrieving revision 1.8.2.3 diff -u -U2 -r1.8.2.2 -r1.8.2.3 --- docbook-refdb.dsl 2 Oct 2005 23:38:14 -0000 1.8.2.2 +++ docbook-refdb.dsl 17 Dec 2005 00:57:51 -0000 1.8.2.3 @@ -728,4 +728,6 @@ ((equal? rel (normalize "series")) (refdb-process-inline "SERIESTITLESTYLE")) + ((equal? rel (normalize "all")) + (refdb-process-inline "ALLTITLESTYLE")) ((equal? rel (normalize "author")) (refdb-process-inline "AUTHORLISTALTERNATESTYLE")) @@ -765,4 +767,6 @@ ((equal? role (normalize "misc3")) (refdb-process-inline "MISC3STYLE")) + ((equal? role (normalize "link0")) + (refdb-process-inline "LINK0STYLE")) ((equal? role (normalize "link1")) (refdb-process-inline "LINK1STYLE")) |
From: Markus H. <mho...@us...> - 2005-12-17 00:57:59
|
Update of /cvsroot/refdb/refdb/dsssl/refdb/print In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18893/dsssl/refdb/print Modified Files: Tag: Release_0_9_5_stable docbook-refdb.dsl Log Message: add support for alltitles and for link0 Index: docbook-refdb.dsl =================================================================== RCS file: /cvsroot/refdb/refdb/dsssl/refdb/print/docbook-refdb.dsl,v retrieving revision 1.5.2.3 retrieving revision 1.5.2.4 diff -u -U2 -r1.5.2.3 -r1.5.2.4 --- docbook-refdb.dsl 2 Oct 2005 23:38:14 -0000 1.5.2.3 +++ docbook-refdb.dsl 17 Dec 2005 00:57:51 -0000 1.5.2.4 @@ -610,4 +610,6 @@ ((equal? rel (normalize "series")) (refdb-process-inline "SERIESTITLESTYLE")) + ((equal? rel (normalize "all")) + (refdb-process-inline "ALLTITLESTYLE")) ((equal? rel (normalize "author")) (refdb-process-inline "AUTHORLISTSTYLE")) @@ -647,4 +649,6 @@ ((equal? role (normalize "misc3")) (refdb-process-inline "MISC3STYLE")) + ((equal? role (normalize "link0")) + (refdb-process-inline "LINK0STYLE")) ((equal? role (normalize "link1")) (refdb-process-inline "LINK1STYLE")) |
From: Markus H. <mho...@us...> - 2005-12-11 21:17:49
|
Update of /cvsroot/refdb/refdb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14729 Modified Files: Tag: Release_0_9_5_stable configure.in Log Message: added refdb-backup and refdb-restore to client_scripts Index: configure.in =================================================================== RCS file: /cvsroot/refdb/refdb/configure.in,v retrieving revision 1.49.2.26 retrieving revision 1.49.2.27 diff -u -U2 -r1.49.2.26 -r1.49.2.27 --- configure.in 11 Dec 2005 20:21:34 -0000 1.49.2.26 +++ configure.in 11 Dec 2005 21:17:39 -0000 1.49.2.27 @@ -150,5 +150,5 @@ client_subdirs="declarations dsssl dtd styles xsl" client_bins="refdbib\$(EXEEXT) refdbc\$(EXEEXT) refdba\$(EXEEXT) refdbxp\$(EXEEXT) nmed2ris\$(EXEEXT) eenc\$(EXEEXT)" -client_scripts="refdbjade runbib refdb_tex2mail db2ris refdbxml marc2ris med2ris en2ris refdbnd refdb_dos2unix refdb-ms" +client_scripts="refdbjade runbib refdb_tex2mail db2ris refdbxml marc2ris med2ris en2ris refdbnd refdb_dos2unix refdb-ms refdb-backup refdb-restore" client_etc_objects="bib2risrc.example bib2riscgirc.example db2risrc.example nmed2risrc.example nmed2riscgirc.example refdbarc.example refdbcrc.example refdbcgirc.example refdbibrc.example med2risrc.example med2riscgirc.example marc2risrc.example refdbxmlrc.example" client_etc_distobjects="bib2risrc bib2riscgirc db2risrc nmed2risrc nmed2riscgirc refdbarc refdbcrc refdbcgirc refdbibrc med2risrc med2riscgirc marc2risrc refdbxmlrc" @@ -156,5 +156,5 @@ client_subdirs="declarations dsssl dtd etc examples scripts src styles xsl" client_bins="refdbib refdbc refdba refdbxp nmed2ris eenc" -client_scripts="refdbjade runbib refdb_tex2mail db2ris refdb-bug refdbxml marc2ris med2ris en2ris refdbnd refdb_dos2unix refdb-ms" +client_scripts="refdbjade runbib refdb_tex2mail db2ris refdb-bug refdbxml marc2ris med2ris en2ris refdbnd refdb_dos2unix refdb-ms refdb-backup refdb-restore" client_etc_objects="bib2risrc.example bib2riscgirc.example db2risrc.example nmed2risrc.example nmed2riscgirc.example refdbarc.example refdbcrc.example refdbcgirc.example refdbibrc.example med2risrc.example med2riscgirc.example marc2risrc.example refdbxmlrc.example" client_etc_distobjects="bib2risrc bib2riscgirc db2risrc nmed2risrc nmed2riscgirc refdbarc refdbcrc refdbcgirc refdbibrc med2risrc med2riscgirc marc2risrc refdbxmlrc" |
From: Markus H. <mho...@us...> - 2005-12-11 20:28:32
|
Update of /cvsroot/refdb/refdb/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5496/scripts Modified Files: Tag: Release_0_9_5_stable refdb.dump.mysql.in refdb.dump.mysql41.in Log Message: fixed length of nameorder fields Index: refdb.dump.mysql.in =================================================================== RCS file: /cvsroot/refdb/refdb/scripts/Attic/refdb.dump.mysql.in,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -U2 -r1.1.2.3 -r1.1.2.4 --- refdb.dump.mysql.in 7 Sep 2005 23:33:32 -0000 1.1.2.3 +++ refdb.dump.mysql.in 11 Dec 2005 20:28:25 -0000 1.1.2.4 @@ -163,8 +163,8 @@ YAUTHORSEPSTHREESEPSTHREESEPSLAST tinytext, ZAUTHORSEPSTHREESEPSTHREESEPSLAST tinytext, - QAUTHORNAMESNAMEFIRSTNAMEORDER varchar(20), - XAUTHORNAMESNAMEFIRSTNAMEORDER varchar(20), - YAUTHORNAMESNAMEFIRSTNAMEORDER varchar(20), - ZAUTHORNAMESNAMEFIRSTNAMEORDER varchar(20), + QAUTHORNAMESNAMEFIRSTNAMEORDER varchar(24), + XAUTHORNAMESNAMEFIRSTNAMEORDER varchar(24), + YAUTHORNAMESNAMEFIRSTNAMEORDER varchar(24), + ZAUTHORNAMESNAMEFIRSTNAMEORDER varchar(24), QAUTHORNAMESNAMEFIRSTINITIALSTYLE varchar(14), XAUTHORNAMESNAMEFIRSTINITIALSTYLE varchar(14), @@ -175,8 +175,8 @@ YAUTHORNAMESNAMEFIRSTUPPERCASE varchar(8), ZAUTHORNAMESNAMEFIRSTUPPERCASE varchar(8), - QAUTHORNAMESNAMEOTHERNAMEORDER varchar(20), - XAUTHORNAMESNAMEOTHERNAMEORDER varchar(20), - YAUTHORNAMESNAMEOTHERNAMEORDER varchar(20), - ZAUTHORNAMESNAMEOTHERNAMEORDER varchar(20), + QAUTHORNAMESNAMEOTHERNAMEORDER varchar(24), + XAUTHORNAMESNAMEOTHERNAMEORDER varchar(24), + YAUTHORNAMESNAMEOTHERNAMEORDER varchar(24), + ZAUTHORNAMESNAMEOTHERNAMEORDER varchar(24), QAUTHORNAMESNAMEOTHERINITIALSTYLE varchar(14), XAUTHORNAMESNAMEOTHERINITIALSTYLE varchar(14), Index: refdb.dump.mysql41.in =================================================================== RCS file: /cvsroot/refdb/refdb/scripts/Attic/refdb.dump.mysql41.in,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -U2 -r1.1.2.3 -r1.1.2.4 --- refdb.dump.mysql41.in 7 Sep 2005 23:33:32 -0000 1.1.2.3 +++ refdb.dump.mysql41.in 11 Dec 2005 20:28:25 -0000 1.1.2.4 @@ -178,8 +178,8 @@ `YAUTHORSEPSTHREESEPSTHREESEPSLAST` tinytext, `ZAUTHORSEPSTHREESEPSTHREESEPSLAST` tinytext, - `QAUTHORNAMESNAMEFIRSTNAMEORDER` varchar(20) default NULL, - `XAUTHORNAMESNAMEFIRSTNAMEORDER` varchar(20) default NULL, - `YAUTHORNAMESNAMEFIRSTNAMEORDER` varchar(20) default NULL, - `ZAUTHORNAMESNAMEFIRSTNAMEORDER` varchar(20) default NULL, + `QAUTHORNAMESNAMEFIRSTNAMEORDER` varchar(24) default NULL, + `XAUTHORNAMESNAMEFIRSTNAMEORDER` varchar(24) default NULL, + `YAUTHORNAMESNAMEFIRSTNAMEORDER` varchar(24) default NULL, + `ZAUTHORNAMESNAMEFIRSTNAMEORDER` varchar(24) default NULL, `QAUTHORNAMESNAMEFIRSTINITIALSTYLE` varchar(14) default NULL, `XAUTHORNAMESNAMEFIRSTINITIALSTYLE` varchar(14) default NULL, @@ -190,8 +190,8 @@ `YAUTHORNAMESNAMEFIRSTUPPERCASE` varchar(8) default NULL, `ZAUTHORNAMESNAMEFIRSTUPPERCASE` varchar(8) default NULL, - `QAUTHORNAMESNAMEOTHERNAMEORDER` varchar(20) default NULL, - `XAUTHORNAMESNAMEOTHERNAMEORDER` varchar(20) default NULL, - `YAUTHORNAMESNAMEOTHERNAMEORDER` varchar(20) default NULL, - `ZAUTHORNAMESNAMEOTHERNAMEORDER` varchar(20) default NULL, + `QAUTHORNAMESNAMEOTHERNAMEORDER` varchar(24) default NULL, + `XAUTHORNAMESNAMEOTHERNAMEORDER` varchar(24) default NULL, + `YAUTHORNAMESNAMEOTHERNAMEORDER` varchar(24) default NULL, + `ZAUTHORNAMESNAMEOTHERNAMEORDER` varchar(24) default NULL, `QAUTHORNAMESNAMEOTHERINITIALSTYLE` varchar(14) default NULL, `XAUTHORNAMESNAMEOTHERINITIALSTYLE` varchar(14) default NULL, |
From: Markus H. <mho...@us...> - 2005-12-11 20:26:12
|
Update of /cvsroot/refdb/refdb/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5070/doc Modified Files: Tag: Release_0_9_5_stable refdb-manual-chapter11.sgml refdb-manual-chapter5.sgml Log Message: fixed couple of errors Index: refdb-manual-chapter11.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual-chapter11.sgml,v retrieving revision 1.14.2.2 retrieving revision 1.14.2.3 diff -u -U2 -r1.14.2.2 -r1.14.2.3 --- refdb-manual-chapter11.sgml 14 Aug 2005 00:18:27 -0000 1.14.2.2 +++ refdb-manual-chapter11.sgml 11 Dec 2005 20:26:03 -0000 1.14.2.3 @@ -542,25 +542,19 @@ </listitem> <listitem> - <para>Run the command <command>insert-set</command> (<keycombo> - <keysym>C-c</keysym> - <keysym>C-s</keysym> - </keycombo>) to insert a new skeleton dataset (a "reference"). The function will prompt you to enter the publication type. You can use either the auto-completion feature of the minibuffer to enter a valid type or the history feature to select a previously entered type. The function will create a newline, a type tag with the type you selected, and an end tag. + <para>Run the command <command>insert-set</command> (<keycombo><keycap>C</keycap><keycap>c</keycap></keycombo> <keycombo><keycap>C</keycap><keycap>s</keycap></keycombo>) to insert a new skeleton dataset (a "reference"). The function will prompt you to enter the publication type. You can use either the auto-completion feature of the minibuffer to enter a valid type or the history feature to select a previously entered type. The function will create a newline, a type tag with the type you selected, and an end tag. </para> </listitem> <listitem> - <para>You can insert a new tag at the beginning of a line with the command <command>insert-tag</command> which is bound to <keycombo> - <keysym>C-c</keysym> - <keysym>C-t</keysym> - </keycombo>. Use either the auto-completion feature of the minibuffer to enter a valid tag or the history feature to select a previously entered tag.</para> + <para>You can insert a new tag at the beginning of a line with the command <command>insert-tag</command> which is bound to <keycombo><keycap>C</keycap><keycap>c</keycap></keycombo> <keycombo><keycap>C</keycap><keycap>t</keycap></keycombo>. Use either the auto-completion feature of the minibuffer to enter a valid tag or the history feature to select a previously entered tag.</para> </listitem> <listitem> - <para>You can insert a new line below the current line with the same tag as the current line with the command <command>duplicate-tag</command>. This is bound to <keysym>M-RET</keysym>. This command is convenient if you add multiple keywords or authors, each of which have to go on separate tag lines.</para> + <para>You can insert a new line below the current line with the same tag as the current line with the command <command>duplicate-tag</command>. This is bound to <keycombo><keycap>M</keycap><keycap>RET</keycap></keycombo>. This command is convenient if you add multiple keywords or authors, each of which have to go on separate tag lines.</para> </listitem> <listitem> - <para>You can move between RIS datasets with the commands <command>backward-set</command> (<keysym>C-x[</keysym>) and <command>forward-set</command> (<keysym>C-x]</keysym>). You can narrow the buffer to the current RIS set with the command <command>narrow-to-set</command> (<keysym>C-xns</keysym>). To widen to the full buffer contents again you'd use <keysym>C-xnw</keysym> as usual.</para> + <para>You can move between RIS datasets with the commands <command>backward-set</command> (<keycombo><keycap>C</keycap><keycap>x[</keycap></keycombo>) and <command>forward-set</command> (<keycombo><keycap>C</keycap><keycap>x]</keycap></keycombo>). You can narrow the buffer to the current RIS set with the command <command>narrow-to-set</command> (<keycombo><keycap>C</keycap><keycap>xns</keycap></keycombo>). To widen to the full buffer contents again use <keycombo><keycap>C</keycap><keycap>xnw</keycap></keycombo>as usual.</para> </listitem> </itemizedlist> <note> - <para>ris-mode does not attempt to <emphasis>validate</emphasis> the buffer contents. You can create invalid tags, leave out the essential type or end tags, forget about the newline preceeding each dataset and ris-mode will not complain. However, you can spot most errors by looking at the font colors: If the first and the last line of a dataset are not displayed in red, you have a problem (you might be using a monochrome display but that's not what I mean). If any tag (except TY and ER) is not displayed in blue, you have a problem as well.</para> + <para>ris-mode does not attempt to <emphasis>validate</emphasis> the buffer contents. You can create invalid tags, leave out the essential type or end tags, forget about the newline preceeding each dataset and ris-mode will not complain. However, you can spot most errors by looking at the font colors: If the first and the last line of a dataset are not displayed in red, you have a problem (you might be using a monochrome display but that's not what I mean). If any tag (except TY and ER) is displayed in the default foreground color (usually black on X displays), you have a problem as well.</para> </note> <para>To install this mode on your system, follow these simple steps:</para> Index: refdb-manual-chapter5.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual-chapter5.sgml,v retrieving revision 1.24.2.8 retrieving revision 1.24.2.9 diff -u -U2 -r1.24.2.8 -r1.24.2.9 --- refdb-manual-chapter5.sgml 14 Nov 2005 20:17:18 -0000 1.24.2.8 +++ refdb-manual-chapter5.sgml 11 Dec 2005 20:26:03 -0000 1.24.2.9 @@ -566,7 +566,7 @@ </listitem> <listitem> - <para>A SQL database engine. Currently you can choose between <ulink url="http://www.mysql.com">MySQL</ulink> (version 3.23 or later) and <ulink url="http://www.postgresql.org">PostgreSQL</ulink> (version 7.1 or later). The database server does not have to physically run on the box(es) where you plan to install &appname;, it is sufficient if it is accessible through the network.</para> + <para>A SQL database engine. Currently you can choose between <ulink url="http://www.mysql.com">MySQL</ulink> (version 3.23 or later), <ulink url="http://www.postgresql.org">PostgreSQL</ulink> (version 7.1 or later), and <ulink url="http://www.sqlite.org">SQLite/SQLite3</ulink> (versions 2.8.x or later; 3.0.x or later). The database server does not have to physically run on the box(es) where you plan to install &appname;, it is sufficient if it is accessible through the network.</para> <para>Cygwin offers a prepackaged version of PostgreSQL (7.3.3 as of this writing) which used to be the most convenient way to run a database server on your Cygwin box, but as stated above it may be broke when you try. Please follow the instructions in the readme shipped with the package to install and initialize the database server. It is crucial that you install and run the separately available cygipc package, available only <ulink url="http://www.neuro.gatech.edu/users/cwilson/cygutils/cygipc/index.hml">here</ulink>.</para> - <para>SQLite is not available as a package, but current versions build straight out of the tarball and run with one minor annoyance (absolute paths to database files don't work). MySQL is currently not officially supported on this platform, but you may still get it to work.</para> + <para>SQLite does build on Cygwin, but all filename/path handling code uses the Windows conventions. You will have to use the Windows-style path when setting the database directory.</para> </listitem> <listitem> @@ -701,10 +701,10 @@ <listitem> <para>Then create the tables and fill in the data. For MySQL older than 4.1, run:</para> - <screen><prompt>~$ </prompt><userinput>mysql -u root &appname; < /usr/local/share/&appname;/sql/&appname;.dump</userinput></screen> + <screen><prompt>~$ </prompt><userinput>mysql -u root &appname; < /usr/local/share/&appname;/sql/&appname;.dump.mysql</userinput></screen> <para>For MySQL 4.1 and later, run this instead:</para> - <screen><prompt>~$ </prompt><userinput>mysql -u root &appname; < /usr/local/share/&appname;/sql/&appname;.dump41</userinput></screen> + <screen><prompt>~$ </prompt><userinput>mysql -u root &appname; < /usr/local/share/&appname;/sql/&appname;.dump.mysql41</userinput></screen> <para>Adapt the path to the script accordingly if you configured &appname; to put the data directory somewhere else.</para> <para>The above command will create the tables using the MyISAM engine. This is the fastest of the supported engines, but it does not support transactions. If you prefer to use the InnoDB engine instead, use this command:</para> - <screen><prompt>~$ </prompt><userinput>sed 's/MyISAM/InnoDB/' < /usr/local/share/&appname;/sql/&appname;.dump41|mysql -u root &appname;/usr/local/share/&appname;/sql/&appname;.dump</userinput></screen> + <screen><prompt>~$ </prompt><userinput>sed 's/MyISAM/InnoDB/' < /usr/local/share/&appname;/sql/&appname;.dump.mysql41|mysql -u root &appname;</userinput></screen> <para>See the <ulink url="http://www.mysql.com">MySQL documentation</ulink> for further information about the table engines available with MySQL.</para> </listitem> @@ -734,5 +734,5 @@ <listitem> <para>The default database directory is <filename moreinfo="none">/usr/local/share/&appname;/db</filename>. &appname; will look here unless you selected a different data directory when configuring the application. If you want to keep your databases somewhere else, use the <varname>dbpath</varname> variable in <filename moreinfo="none">&appname;drc</filename> and modify the following instructions accordingly.</para> - <screen><prompt>~$ </prompt><userinput>cd /usr/local/share/&appname;/db</userinput></screen> + <screen><prompt>~$ </prompt><userinput>cd /usr/local/var/lib/&appname;/db</userinput></screen> </listitem> <listitem> |
From: Markus H. <mho...@us...> - 2005-12-11 20:25:08
|
Update of /cvsroot/refdb/refdb/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4891/doc Modified Files: Tag: Release_0_9_5_stable manual.css Log Message: lowercased elements to make it compatible with xhtml; added 3D look to keycaps Index: manual.css =================================================================== RCS file: /cvsroot/refdb/refdb/doc/Attic/manual.css,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -U2 -r1.1.2.1 -r1.1.2.2 --- manual.css 14 Aug 2005 00:33:09 -0000 1.1.2.1 +++ manual.css 11 Dec 2005 20:24:55 -0000 1.1.2.2 @@ -1,29 +1,53 @@ -H1 {font-family: Verdana, Arial, Helvetica, sans-serif; +h1 {font-family: Verdana, Arial, Helvetica, sans-serif; color: #00B000} -H1.SECT1 {font-family: Verdana, Arial, Helvetica, sans-serif; +h1.sect1 {font-family: Verdana, Arial, Helvetica, sans-serif; color: #009900} -H2 {font-family: Verdana, Arial, Helvetica, sans-serif; +h2 {font-family: Verdana, Arial, Helvetica, sans-serif; color: green} -H3 {font-family: Verdana, Arial, Helvetica, sans-serif; +h3 {font-family: Verdana, Arial, Helvetica, sans-serif; color: #006600} -TT.FILENAME, TT.OPTION {color: #660099; +tt.filename, tt.option {color: #660099; font-size: 110%; font-weight: bold;} -TT.SGMLTAG {color: #009966; +tt.sgmltag {color: #009966; font-size: 110%; font-weight: bold;} -B.COMMAND {color: #990000;} +b.command {color: #990000;} -DIV.VARIABLELIST DT {color: #990000; +div.variablelist dt {color: #990000; font-weight: bold;} -TABLE.CALSTABLE TH {color: #990000; +table.calstable th {color: #990000; font-weight: bold;} -TABLE.WARNING {color: red;} +table.warning {color: red;} + +span.guimenu, span.guimenuitem, span.guisubmenu { + font-family: sans-serif; +} + +/* give keycaps a '3D' shaded look */ +strong.keycap, b.KEYCAP { + padding-left: .2em; + padding-right: .2em; + border-style: solid; + border-top-width: 2px; + border-left-width: 3px; + border-right-width: 3px; + border-bottom-width: 4px; + border-top-color: #eeeecc; + border-left-color: #eeeecc; + border-right-color: #999977; + border-bottom-color: #999977; + background-color: #ddddbb; + /* All these borders may interfere with text on the line bellow. Make + the text a little smaller to try and 'pull up' the bottom edge, */ + font-size: smaller; +} + |
From: Markus H. <mho...@us...> - 2005-12-11 20:23:52
|
Update of /cvsroot/refdb/refdb/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4659/doc Modified Files: Tag: Release_0_9_5_stable Makefile.am Log Message: new variable dtdparsefiles Index: Makefile.am =================================================================== RCS file: /cvsroot/refdb/refdb/doc/Attic/Makefile.am,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -u -U2 -r1.1.2.6 -r1.1.2.7 --- Makefile.am 21 Oct 2005 19:54:43 -0000 1.1.2.6 +++ Makefile.am 11 Dec 2005 20:23:39 -0000 1.1.2.7 @@ -53,5 +53,7 @@ html_extra_files = manual.css $(png_images) -EXTRA_DIST = $(doc_DATA) $(manual_sources) $(html_extra_files) $(svg_images) $(citestylex_DATA) $(citestylexdtdelem_DATA) $(citestylexeledesc_DATA) $(citestylexelements_DATA) $(risx_DATA) $(risxdtdelem_DATA) $(risxeledesc_DATA) $(risxelements_DATA) $(citationlistx_DATA) $(citationlistxdtdelem_DATA) $(citationlistxeledesc_DATA) $(citationlistxelements_DATA) $(xnote_DATA) $(xnotedtdelem_DATA) $(xnoteeledesc_DATA) $(xnoteelements_DATA) $(index_DATA) +dtdparsefiles = citestylex.xml citestylex/elements.html risx.xml risx/elements.html citationlistx.xml citationlistx/elements.html xnote.xml xnote/elements.html + +EXTRA_DIST = $(doc_DATA) $(manual_sources) $(html_extra_files) $(svg_images) $(pdf_images) $(citestylex_DATA) $(citestylexdtdelem_DATA) $(citestylexeledesc_DATA) $(citestylexelements_DATA) $(risx_DATA) $(risxdtdelem_DATA) $(risxeledesc_DATA) $(risxelements_DATA) $(citationlistx_DATA) $(citationlistxdtdelem_DATA) $(citationlistxeledesc_DATA) $(citationlistxelements_DATA) $(xnote_DATA) $(xnotedtdelem_DATA) $(xnoteeledesc_DATA) $(xnoteelements_DATA) $(index_DATA) $(dtdparsefiles) all: refdb-manual.pdf refdb-manual/* citestylex/elements.html risx/elements.html citationlistx/elements.html xnote/elements.html |
From: Markus H. <mho...@us...> - 2005-12-11 20:21:42
|
Update of /cvsroot/refdb/refdb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4367 Modified Files: Tag: Release_0_9_5_stable configure.in Log Message: bumped up version number Index: configure.in =================================================================== RCS file: /cvsroot/refdb/refdb/configure.in,v retrieving revision 1.49.2.25 retrieving revision 1.49.2.26 diff -u -U2 -r1.49.2.25 -r1.49.2.26 --- configure.in 14 Nov 2005 20:21:29 -0000 1.49.2.25 +++ configure.in 11 Dec 2005 20:21:34 -0000 1.49.2.26 @@ -10,5 +10,5 @@ dnl Use automake -AM_INIT_AUTOMAKE(refdb, 0.9.6) +AM_INIT_AUTOMAKE(refdb, 0.9.7-pre1) dnl switch on GNU extensions @@ -60,10 +60,4 @@ [classpath_root=""]) -dnl need the URL where the web interface HTML files are installed -dnl AC_ARG_WITH(refdb_url, -dnl [ --with-refdb-url=URL Root URL for the web interface HTML files], -dnl [refdb_url=$withval], -dnl [refdb_url=""]) - dnl need a path to write a pid file AC_ARG_WITH(var_dir, |
From: Markus H. <mho...@us...> - 2005-12-11 20:06:33
|
Update of /cvsroot/refdb/refdb/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1620/doc Modified Files: Tag: Release_0_9_5_stable index.html Log Message: fixed incorrect links Index: index.html =================================================================== RCS file: /cvsroot/refdb/refdb/doc/Attic/index.html,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -U2 -r1.1.2.1 -r1.1.2.2 --- index.html 21 Oct 2005 19:43:13 -0000 1.1.2.1 +++ index.html 11 Dec 2005 20:06:20 -0000 1.1.2.2 @@ -10,7 +10,7 @@ <li><a href="refdb-manual/index.html">RefDB manual</a></li> <li><a href="risx/index.html">risx DTD documentation</a></li> - <li><a href="risx/index.html">citestylex DTD documentation</a></li> - <li><a href="risx/index.html">xnote DTD documentation</a></li> - <li><a href="risx/index.html">citationlistx DTD documentation</a></li> + <li><a href="citestylex/index.html">citestylex DTD documentation</a></li> + <li><a href="xnote/index.html">xnote DTD documentation</a></li> + <li><a href="citationlistx/index.html">citationlistx DTD documentation</a></li> </ul> <p>Additional information is available on the web. Please visit <a href="http://refdb.sourceforge.net">RefDB on the web</a> for all available information.</p> |
From: Markus H. <mho...@us...> - 2005-12-08 00:58:36
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3887 Modified Files: refdb-mode-manual.xml Log Message: added refdb-getref-from-citation;added NTEmacs setup instructions Index: refdb-mode-manual.xml =================================================================== RCS file: /cvsroot/refdb/elisp/refdb-mode-manual.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -U2 -r1.2 -r1.3 --- refdb-mode-manual.xml 26 Nov 2005 00:23:01 -0000 1.2 +++ refdb-mode-manual.xml 8 Dec 2005 00:58:26 -0000 1.3 @@ -71,4 +71,70 @@ <para>If you use the configuration file mentioned <link linkend="sect-setting-up">above</link>, refdb-mode will be automatically invoked whenever you load a file type associated with the mode, e.g. an XML file or a RIS file. To load the mode manually, use either the menu command <menuchoice><guimenu>Tools</guimenu><guimenuitem>RefDB Mode</guimenuitem></menuchoice> or run <keycombo><keycap>M</keycap><keycap>x</keycap></keycombo><userinput>refdb-mode</userinput>.</para> </sect1> + <sect1> + <title>Using refdb-mode with NTEmacs</title> + <para>Windows is an extra challenge for refdb-mode, as we have to call Cygwin programs (the RefDB clients) from a Win32 application through Lisp commands, leaving enough room for things to go wrong. It boils down to getting your <filename>.emacs</filename> right, and we'll show here step by step what it takes to see the light. You'll notice that the setup uses UTF-8 quite heavily, assuming that you've set up your RefDB databases accordingly. I've settled for this encoding as it gave me the simplest consistent setup possible. You may well experiment with other character encodings, but I hardly see any benefit in doing so.</para> + <note> + <para>Some of the administrative functions currently do not work under NTEmacs. Affected are all functions which run <command>sudo</command> for authentication or which start an xterm to obtain database passwords.</para> + </note> + <programlisting> +;; use Unix-style line endings +(setq-default buffer-file-coding-system 'undecided-unix) + +;; xml files as well as files with "utf8" somewhere +;; in the path are opened as Unicode +(setq file-coding-system-alist + (append (list + (cons "\\.xml$" 'utf-8) + (cons "utf8" 'utf-8)) + file-coding-system-alist)) + </programlisting> + <para>First we ask NTEmacs to use Unix-style line endings. The second expression makes sure that all XML files as well as all files with the string "utf-8" in their name (e.g. <filename>refdata.utf-8.ris</filename>) are loaded as Unicode files using the UTF-8 character encoding.</para> + <programlisting> +;; use bash as the default shell +(setq exec-path (cons "C:/Programme/cygwin/bin" exec-path)) +(setq shell-file-name "bash") +(setenv "SHELL" shell-file-name) +(setenv "PATH" (concat (getenv "PATH") ";C:\\Programme\\cygwin\\bin" ";C:\\Programme\\cygwin\\usr\\local\\bin")) +(setq explicit-shell-file-name shell-file-name) +(setq explicit-shell-args '("--login" "-i")) +(setq shell-command-switch "-ic") +(setq w32-quote-process-args t) +(defun bash () + (interactive) + (let ((binary-process-input t) + (binary-process-output nil)) + (shell))) + +(setq process-coding-system-alist (cons '("bash" . (utf-8-dos . utf-8-unix)) + process-coding-system-alist)) + </programlisting> + <para>This block of commands uses the Cygwin version of <command>bash</command> as the default shell. It also makes sure that a few additional directories are added to the path. Finally it tells NTEmacs that the data returned by the shell use the UTF-8 encoding as well. The paths shown here need to be adapted to your local installation.</para> + <programlisting> +;; refdb-mode and ris mode +(load-file "c:/Programme/emacsen/site-lisp/refdb-mode-config.el") +(setq refdb-default-ris-encoding 'utf-8-unix) + </programlisting> + <para>Now we load refdb-mode and ris-mode through the config file. Again, use the path of your local system here. The second command makes sure we use UTF-8 again to display results in RIS format.</para> + <programlisting> +;; nxml mode +(load "c:/Programme/emacsen/site-lisp/nxml-mode-20041004/rng-auto.el") +(setq auto-mode-alist + (cons '("\\.\\(xml\\|xsl\\|rng\\|xhtml\\)\\'" . nxml-mode) + auto-mode-alist)) + </programlisting> + <para>Finally, we also load nxml-mode to edit XML files. The setup of PSGML to edit SGML-files has been described <ulink url="http://www.mhoenicka.de/software/sgml/sgmlnt.html">elsewhere</ulink> (slightly outdated, though).</para> + <para>The final step to make nxml-mode work properly is to make the RefDB RelaxNG schemas known to the system. To this end, create or edit the file <filename>schemas.xml</filename> in <emphasis>what NTEmacs thinks is your home directory</emphasis>. This may be different from <filename class="directory">My Files</filename> (I prefer to set it to my <envar>HOME</envar> in Cygwin). The contents for the RefDB schemas looks like this:</para> + <programlisting> +<locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0"> + <documentElement prefix="" localName="ris" typeId="RISX"/> + <documentElement prefix="" localName="STYLESET" typeId="CiteStyleX"/> + <documentElement prefix="" localName="xnoteset" typeId="XNote"/> + + <typeId id="RISX" uri="/Programme/cygwin/usr/local/share/refdb/dtd/risx.rnc"/> + <typeId id="CiteStyleX" uri="/Programme/cygwin/usr/local/share/refdb/dtd/citestylex.rnc"/> + <typeId id="XNote" uri="/Programme/cygwin/usr/local/share/refdb/dtd/xnote.rnc"/> +</locatingRules> + </programlisting> + </sect1> </chapter> <chapter id="chapter-concepts"> @@ -438,4 +504,15 @@ </sect3> </sect2> + <sect2 id="command-get-references-from-citation" xreflabel="Get References from Citation"> + <title>Get References from Citation</title> + <indexterm><primary sortas="getref-from-citation">refdb-getref-from-citation</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-getref-from-citation</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Uses the citation around point to retrieve all cited references in that citation from the database.</para> + </sect2> <sect2 id="command-pick-references" xreflabel="Pick References"> <title>Pick References</title> |
From: Markus H. <mho...@us...> - 2005-12-08 00:56:58
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3333 Modified Files: refdb-mode.el Log Message: added L1-L4 to tag list;new config variable refdb-default-ris-encoding;new function refdb-getref-from-citation Index: refdb-mode.el =================================================================== RCS file: /cvsroot/refdb/elisp/refdb-mode.el,v retrieving revision 1.19 retrieving revision 1.20 diff -u -U2 -r1.19 -r1.20 --- refdb-mode.el 26 Nov 2005 00:26:02 -0000 1.19 +++ refdb-mode.el 8 Dec 2005 00:56:49 -0000 1.20 @@ -245,4 +245,9 @@ ;; to 'refdbc -C getref'.) ;; +;; Get References in Citation +;; Move point somewhere into a citation (i.e. a <citation> element in +;; a DocBook document and a <seg> in a TEI document), and this command +;; will retrieve all references cited in this element. +;; ;; Pick References ;; Add references to your personal reference list @@ -782,7 +787,16 @@ (const :tag "Miscellaneous 4 \(M4\)" M4) (const :tag "Miscellaneous 5 \(M5\)" M5) + (const :tag "Link1 \(L1\)" L1) + (const :tag "Link2 \(L2\)" L2) + (const :tag "Link3 \(L3\)" L3) + (const :tag "Link4 \(L4\)" L4) ) :group 'refdb-data-options) +(defcustom refdb-default-ris-encoding 'iso-latin-1 + "*Use this character encoding to display datasets in RIS format." + :type 'symbol + :group 'refdb-data-options) + (defcustom refdb-character-encodings-list '( @@ -1601,4 +1615,11 @@ ) +(defvar refdb-getref-from-citation-menu-item + ["Get References from Citation" + (refdb-getref-from-citation) + t] + "RefDB getref-from-citation menu item." + ) + (defvar refdb-pickref-menu-item ["Pick references" @@ -2754,5 +2775,5 @@ ) ;; todo: should be customizable. use refdbc setting - (set-buffer-file-coding-system 'iso-latin-1) + (set-buffer-file-coding-system refdb-default-ris-encoding) ) ) @@ -2970,4 +2991,28 @@ ) +(defun refdb-getref-from-citation() + "Display all references cited in the citation containing Point." + (interactive) + (save-excursion + (let ((eoc (re-search-forward "</citation *>\\|</seg *>" nil t)) + (id-string)) + (re-search-backward "<citation role=\"REFDB\" *>\\|<seg type=\"REFDBCITATION\".*>" nil t) + ;; in multiple citations the first linked is from the multiple definition but this doesn't hurt the query + (while (re-search-forward "\\(target\\|linkend\\)=\"ID\\([^-\"]+\\)" eoc t) + (let ((target (match-string 2 nil))) + ;; see whether ID is a numeric ID or an alphanumeric CK + (if (string-match "^[0-9]$" target) + (setq id-string (concat id-string " OR :ID:=" target)) + (setq id-string (concat id-string " OR :CK:=" target))) + ) + ) + (if (not (eq (length id-string) 0)) + ;; each cycle adds an " OR " at the beginning. We don't need the first one + (refdb-getref-by-advanced-search (substring id-string 4)) + (error "No citation found in the source document")) + ) + ) + ) + (defun refdb-pickref (idlist) "Add references to your personal reference list." @@ -6578,4 +6623,5 @@ refdb-getref-submenu-definition refdb-getref-on-region-submenu-definition + refdb-getref-from-citation-menu-item refdb-pickref-menu-item refdb-dumpref-menu-item |
From: Paul A. H. <pau...@us...> - 2005-11-29 01:27:46
|
Update of /cvsroot/refdb/ports/freebsd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16357 Modified Files: Makefile Log Message: Need to depend on a dbi-0.8.1 or higher. Index: Makefile =================================================================== RCS file: /cvsroot/refdb/ports/freebsd/Makefile,v retrieving revision 1.4 retrieving revision 1.5 diff -u -U2 -r1.4 -r1.5 --- Makefile 26 Nov 2005 23:52:37 -0000 1.4 +++ Makefile 29 Nov 2005 01:27:34 -0000 1.5 @@ -16,5 +16,5 @@ LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2 -LIB_DEPENDS+= dbi.0:${PORTSDIR}/databases/libdbi +BUILD_DEPENDS+= dbi>=0.8.1:${PORTSDIR}/databases/libdbi WRKSRC= ${WRKDIR}/refdb-0.9.6 |
From: Paul A. H. <pau...@us...> - 2005-11-26 23:52:46
|
Update of /cvsroot/refdb/ports/freebsd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22676 Modified Files: Makefile Log Message: Added libdbi dependency. This was previously implied by the individual driver dependencies, but was never explicit. Now that we rely on a new version of libdbi, it had better be explicit. Index: Makefile =================================================================== RCS file: /cvsroot/refdb/ports/freebsd/Makefile,v retrieving revision 1.3 retrieving revision 1.4 diff -u -U2 -r1.3 -r1.4 --- Makefile 16 Nov 2005 07:57:29 -0000 1.3 +++ Makefile 26 Nov 2005 23:52:37 -0000 1.4 @@ -16,4 +16,5 @@ LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2 +LIB_DEPENDS+= dbi.0:${PORTSDIR}/databases/libdbi WRKSRC= ${WRKDIR}/refdb-0.9.6 |
From: Markus H. <mho...@us...> - 2005-11-26 00:26:09
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23862 Modified Files: refdb-mode.el Log Message: added refdb-sysconfdir;added minibuffer completion to a couple of functions Index: refdb-mode.el =================================================================== RCS file: /cvsroot/refdb/elisp/refdb-mode.el,v retrieving revision 1.18 retrieving revision 1.19 diff -u -U2 -r1.18 -r1.19 --- refdb-mode.el 19 Nov 2005 19:25:04 -0000 1.18 +++ refdb-mode.el 26 Nov 2005 00:26:02 -0000 1.19 @@ -685,4 +685,9 @@ :group 'refdb-programs) +(defcustom refdb-sysconfdir "/usr/local/etc/refdb" + "The directory which contains the global RefDB configuration files. Usually this would be /etc/refdb or /usr/local/etc/refdb" + :type 'string + :group 'refdb-programs) + (defcustom refdb-menu-suppress-toggle-flag nil "*Non-nil means suppress 'RefDB Mode' menu item. @@ -2125,5 +2130,5 @@ (defvar refdb-deletestyle-menu-item - ["Delete Styles" + ["Delete Style" (call-interactively 'refdb-deletestyle) t] @@ -2146,5 +2151,5 @@ (defvar refdb-getstyle-menu-item - ["Get Styles" + ["Get Style" (call-interactively 'refdb-getstyle) t] @@ -2198,30 +2203,30 @@ (defvar refdb-backup-database-menu-item - ["Backup reference databases" (refdb-backup-database) t] + ["Backup Reference Databases" (refdb-backup-database) t] "RefDB backup refdb menu item." ) (defvar refdb-restore-database-menu-item - ["Restore reference databases" (refdb-restore-database) t] + ["Restore Reference Databases" (refdb-restore-database) t] "RefDB restore refdb menu item." ) (defvar refdb-startd-menu-item - ["Start application server on localhost" (refdb-start-server) t] + ["Start Application Server on localhost" (refdb-start-server) t] "RefDB startd menu item." ) (defvar refdb-stopd-menu-item - ["Stop application server on localhost" (refdb-stop-server) t] + ["Stop Application Server on localhost" (refdb-stop-server) t] "RefDB stopd menu item." ) (defvar refdb-restartd-menu-item - ["Restart application server on localhost" (refdb-restart-server) t] + ["Restart Application Server on localhost" (refdb-restart-server) t] "RefDB restartd menu item." ) (defvar refdb-reloadd-menu-item - ["Reload application server on localhost" (refdb-reload-server) t] + ["Reload Application Server on localhost" (refdb-reload-server) t] "RefDB reloadd menu item." ) @@ -4659,5 +4664,10 @@ (defun refdb-deletestyle (stylename) "Delete a style." - (interactive "sDelete Style \(regexp\):") + (interactive + (list (completing-read + "Delete Style: " + (refdb-make-alist-from-list refdb-current-styles-list) + nil t + ))) ;; temporarily set resize-mini-windows to nil to force Emacs to show @@ -4799,5 +4809,10 @@ (defun refdb-getstyle (stylename) "Retrieve a style as an XML document." - (interactive "sRetrieve Style:") + (interactive + (list (completing-read + "Retrieve Style: " + (refdb-make-alist-from-list refdb-current-styles-list) + nil t + ))) ;; temporarily set resize-mini-windows to nil to force Emacs to show @@ -4944,5 +4959,5 @@ (interactive) (let* ((dbname (completing-read - "List users from Database: " + "List users of Database: " (refdb-make-alist-from-list refdb-current-admin-database-list) nil t @@ -5103,5 +5118,5 @@ (defun refdb-edit-user-config-file (userconfig-file) - "Edit a user RefDB config file" + "Edit a user RefDB config file. Don't call this function directly. Use refdb-edit-refdbarc, refdb-edit-refdbcrc and so on instead." (let* ((userconfig-path (format "~/%s" userconfig-file)) (userconfig-dotpath (format "~/.%s" userconfig-file)) @@ -5120,15 +5135,9 @@ (defun refdb-edit-global-config-file (globalconfig-file) - "Edit a global RefDB config file" -;; todo: the config files may be somewhere else than in the default -;; locations checked here - (let* ((globalconfig-localpath (format "/usr/local/etc/refdb/%s" globalconfig-file)) - (globalconfig-path (format "/etc/refdb/%s" globalconfig-file)) + "Edit a global RefDB config file. Don't call this function directly. Use refdb-edit-global-refdbarc, refdb-edit-global-refdbcrc and so on instead." + (let* ((globalconfig-path (format "%s/%s" refdb-sysconfdir globalconfig-file)) (my-file (if (file-exists-p globalconfig-path) globalconfig-path - (progn - (if (file-exists-p globalconfig-localpath) - globalconfig-localpath - nil))))) + nil))) (if (not (eq my-file nil)) (progn @@ -5198,16 +5207,13 @@ "Create the system database. Use this command once to initialize your RefDB installation. It will destructively replace any existing -RefDB system database." +RefDB system database. You've been warned." (interactive) ;; read refdbdrc config file with sudo, find defs of refdblib, dbserver etc ;; then run db cli tool to create the refdb database (let* ((sudo-password (read-passwd "Your sudo password: ")) - (refdbdrc-localpath "/usr/local/etc/refdb/refdbdrc") - (refdbdrc-path "/etc/refdb/refdbdrc") + (refdbdrc-path (format "%s/refdbdrc" refdb-sysconfdir)) (my-file (if (file-exists-p refdbdrc-path) refdbdrc-path - (if (file-exists-p refdbdrc-localpath) - refdbdrc-localpath - nil))) + nil)) (main-database "refdb") ) @@ -5444,11 +5450,8 @@ "Create backup of a reference database." (interactive) - (let* ((refdbdrc-localpath "/usr/local/etc/refdb/refdbdrc") - (refdbdrc-path "/etc/refdb/refdbdrc") + (let* ((refdbdrc-path (format "%s/refdbdrc" refdb-sysconfdir)) (my-file (if (file-exists-p refdbdrc-path) refdbdrc-path - (if (file-exists-p refdbdrc-localpath) - refdbdrc-localpath - nil))) + nil)) ) (if my-file @@ -5616,11 +5619,8 @@ (interactive) (let* ((sudo-password (read-passwd "Your sudo password: ")) - (refdbdrc-localpath "/usr/local/etc/refdb/refdbdrc") - (refdbdrc-path "/etc/refdb/refdbdrc") + (refdbdrc-path (format "%s/refdbdrc" refdb-sysconfdir)) (my-file (if (file-exists-p refdbdrc-path) refdbdrc-path - (if (file-exists-p refdbdrc-localpath) - refdbdrc-localpath - nil))) + nil)) ) (if my-file |
From: Markus H. <mho...@us...> - 2005-11-26 00:23:12
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23403 Modified Files: refdb-mode-manual.xml Log Message: added administrative functions Index: refdb-mode-manual.xml =================================================================== RCS file: /cvsroot/refdb/elisp/refdb-mode-manual.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -U2 -r1.1 -r1.2 --- refdb-mode-manual.xml 20 Nov 2005 20:28:28 -0000 1.1 +++ refdb-mode-manual.xml 26 Nov 2005 00:23:01 -0000 1.2 @@ -16,9 +16,6 @@ <preface> <title>Preface</title> - <para>refdb-mode turns GNU Emacs into a frontend for <ulink url="http://refdb.sourceforge.net">RefDB</ulink>, a reference manager and bibliography tool for markup languages. refdb-mode is a minor mode which works well alongside the major modes psgml (SGML editing), nxml-mode (XML editing), and ris-mode (RIS editing). It offers a full set of menu commands for reference and notes management, allowing you to conveniently use Emacs to create or update references and notes. Moreover, it allows you to create DocBook and TEI documents for use with RefDB. You can transform the documents and view the results with a mouseclick. It integrates seamlessly into your authoring process, allowing you to search for references and yank them directly in place, without ever leaving Emacs. Finally, there is also a full set of administrative commands to control all aspects of RefDB configuration and administration.</para> + <para>refdb-mode turns GNU Emacs into a frontend for <ulink url="http://refdb.sourceforge.net">RefDB</ulink>, a reference manager and bibliography tool for markup languages. refdb-mode is a minor mode which works well alongside the major modes PSGML (SGML editing), nxml-mode (XML editing), and ris-mode (RIS editing). It offers a full set of menu commands for reference and notes management, allowing you to conveniently use Emacs to create or update references and notes. Moreover, it allows you to create DocBook and TEI documents for use with RefDB. You can transform the documents and view the results with a mouseclick. It integrates seamlessly into your authoring process, allowing you to search for references and yank them directly in place, without ever leaving Emacs. Finally, there is also a full set of administrative commands to control all aspects of RefDB configuration and administration.</para> <para>This manual gives a brief overview of how to use refdb-mode, followed by a more thorough description of all available commands.</para> - <note> - <para>As of this writing, the manual is incomplete but hopefully still usable. Please bear with me until the missing parts are filled in.</para> - </note> </preface> <chapter id="chapter-installation"> @@ -68,9 +65,10 @@ <title>Customizing refdb-mode</title> <para>refdb-mode can be configured entirely through the customization interface of Emacs. Either run the menu command <menuchoice><guimenu>RefDB</guimenu><guisubmenu>Administration</guisubmenu><guimenuitem>Customize RefDB mode</guimenuitem></menuchoice> or type <keycombo><keycap>M</keycap><keycap>x</keycap></keycombo><userinput>customize</userinput> and browse to the RefDB section in the Applications section.</para> + <para>If you used the autotools-based package to install refdb-mode, the file <filename>/usr/local/etc/refdb-mode-config.el</filename> contains a few system-wide customizations which adapt refdb-mode to your local system. <command>./configure</command> checks for file viewers available on your system, and it also sets the directory containing the global RefDB configuration files. This file is the best place for system-wide refdb-mode customizations.</para> + </sect1> + <sect1 id="sect-invoking"> + <title>Invoking refdb-mode</title> + <para>If you use the configuration file mentioned <link linkend="sect-setting-up">above</link>, refdb-mode will be automatically invoked whenever you load a file type associated with the mode, e.g. an XML file or a RIS file. To load the mode manually, use either the menu command <menuchoice><guimenu>Tools</guimenu><guimenuitem>RefDB Mode</guimenuitem></menuchoice> or run <keycombo><keycap>M</keycap><keycap>x</keycap></keycombo><userinput>refdb-mode</userinput>.</para> </sect1> - </chapter> - <chapter id="chapter-invoking"> - <title>Invoking refdb-mode</title> - <para>If you use the configuration file mentioned <link linkend="sect-setting-up">above</link>, refdb-mode will be automatically invoked whenever you load a file type associated with the mode, e.g. an XML file or a RIS file. To load the mode manually, use either the menu command <menuchoice><guimenu>Tools</guimenu><guimenuitem>RefDB Mode</guimenuitem></menuchoice> or run <keycombo><keycap>M</keycap><keycap>x</keycap></keycombo><userinput>refdb-mode</userinput>.</para> </chapter> <chapter id="chapter-concepts"> @@ -86,5 +84,5 @@ </listitem> </itemizedlist> - <para>If you want to switch databases during a session, use the <menuchoice><guimenu>RefDB</guimenu><guimenuitem>Select Database</guimenuitem></menuchoice> menu command. This command will pop up a list of available databases that you can choose from.</para> + <para>If you want to switch databases during a session, use the <link linkend="command-select-database"><menuchoice><guimenu>RefDB</guimenu><guimenuitem>Select Database</guimenuitem></menuchoice></link> menu command. This command will pop up a list of available databases that you can choose from.</para> </sect1> <sect1> @@ -1043,7 +1041,350 @@ </sect2> </sect1> - <sect1> - <title>Administrative functions</title> - <para>To be done.</para> + <sect1 id="sect-database-management"> + <title>Database management</title> + <para>Commands to manage reference databases.</para> + <sect2 id="command-create-databases" xreflabel="Create Databases"> + <title>Create Databases</title> + <indexterm><primary sortas="createdb">refdb-createdb</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-createdb</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Asks interactively for the name of a new reference database and for the default character encoding. After the database is created, you may have to run <xref linkend="command-add-users"/> to grant users access to the new database.</para> + </sect2> + <sect2 id="command-list-databases" xreflabel="List Databases"> + <title>List Databases</title> + <indexterm><primary sortas="listdb">refdb-listdb</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-listdb</function></funcdef> + <paramdef><parameter>dbname</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para>Asks interactively for a regular expression used to list reference databases. An empty string causes refdb-mode to list all available reference databases.</para> + </sect2> + <sect2 id="command-delete-databases" xreflabel="Delete Databases"> + <title>Delete Databases</title> + <indexterm><primary sortas="deletedb">refdb-deletedb</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-deletedb</function></funcdef> + <paramdef><parameter>dbname</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para>Asks interactively for the name of an existing reference database that should be deleted. Minibuffer completion against the list of existing databases is available.</para> + </sect2> + </sect1> + <sect1 id="sect-styles-management"> + <title>Bibliography styles management</title> + <para>This menu section contains all functions to work with bibliography style data.</para> + <sect2 id="command-add-styles" xreflabel="Add Styles"> + <title>Add Styles</title> + <indexterm><primary sortas="addstyle-on-buffer">refdb-addstyle-on-buffer</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-addstyle-on-buffer</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Adds the XML data using the citestylex.dtd in the current buffer to the system database. refdb-mode will refuse to add the data if nxml-mode indicates they are invalid.</para> + </sect2> + <sect2 id="command-list-styles" xreflabel="List Styles"> + <title>List Styles</title> + <indexterm><primary sortas="liststyle">refdb-liststyle</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-liststyle</function></funcdef> + <paramdef><parameter>stylename</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para>Asks interactively for a regular expression used to list bibliography styles. An empty string causes refdb-mode to list all available styles.</para> + </sect2> + <sect2 id="command-get-styles" xreflabel="Get Style"> + <title>Get Style</title> + <indexterm><primary sortas="getstyle">refdb-getstyle</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-getstyle</function></funcdef> + <paramdef><parameter>stylename</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para>Asks interactively for the name of a bibliography style which is then retrieved in XML format. Minibuffer completion against the list of existing styles is available.</para> + </sect2> + <sect2 id="command-delete-styles" xreflabel="Delete Styles"> + <title>Delete Styles</title> + <indexterm><primary sortas="deletestyle">refdb-deletestyle</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-deletestyle</function></funcdef> + <paramdef><parameter>stylename</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para>Asks interactively for the name of a bibliography style that should be deleted. Minibuffer completion against the list of existing styles is available.</para> + </sect2> + </sect1> + <sect1 id="sect-user-management"> + <title>User management</title> + <para>These functions provide an interface to the RefDB user management.</para> + <sect2 id="command-add-users" xreflabel="Add Users"> + <title>Add Users</title> + <indexterm><primary sortas="adduser">refdb-adduser</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-adduser</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Interactively asks for the name of the database access should be granted to, the hostname from which connections should be allowed, the database username, and an optional database password if the user is not yet known to the database engine. The user will be registered as a RefDB user using these data. She will have access to the system database and to the given reference database.</para> + <note> + <para>The hostname is required only for MySQL. It is the name of the computer where refdbd, the RefDB daemon runs. If it runs on your local computer, the proper value may be "localhost" or the true hostname/IP address, depending on the OS and the database engine.</para> + </note> + </sect2> + <sect2 id="command-list-users" xreflabel="List Users"> + <title>List Users</title> + <indexterm><primary sortas="listuser">refdb-listuser</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-listuser</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Asks interactively for the name of the database and for a regular expression used to list users which have references or notes in that database. Minibuffer completion is available against the list of available databases. An empty string as the username causes refdb-mode to list all available users of the given database.</para> + </sect2> + <sect2 id="command-delete-users" xreflabel="Delete Users"> + <title>Delete Users</title> + <indexterm><primary sortas="deleteuser">refdb-deleteuser</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-deleteuser</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Asks interactively for the name of a user whose access to a reference database should be revoked. Additionally, the database name and the hostname must be specified. Minibuffer completion against the list of existing databases is available.</para> + </sect2> + </sect1> + <sect1 id="sect-titlewords-management"> + <title>Journal title word management</title> + <para>Commands to maintain the word list used to identify unabbreviated words in journal names.</para> + <sect2 id="command-add-journal-title-words" xreflabel="Add Journal Title Words"> + <title>Add Journal Title Words</title> + <indexterm><primary sortas="addword">refdb-addword</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-addword</function></funcdef> + <paramdef><parameter>wordlist</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para>Asks interactively for a whitespace-separated list of words which are unabbreviated journal title words. These words will be added to the system database.</para> + </sect2> + <sect2 id="command-list-journal-title-words" xreflabel="List Journal Title Words"> + <title>List Journal Title Words</title> + <indexterm><primary sortas="listword">refdb-listword</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-listword</function></funcdef> + <paramdef><parameter>word</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para>Asks interactively for a regular expression used to list unabbreviated journal title words. An empty string causes refdb-mode to list all available journal title words.</para> + </sect2> + <sect2 id="command-delete-journal-title-words" xreflabel="Delete Journal Title Words"> + <title>Delete Journal Title Words</title> + <indexterm><primary sortas="deleteword">refdb-deleteword</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-deleteword</function></funcdef> + <paramdef><parameter>wordlist</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para>Asks interactively for a list of words that is to be deleted from the list of unabbreviated journal title words.</para> + </sect2> + </sect1> + <sect1 id="sect-misc-management"> + <title>Miscellaneous server tasks</title> + <para>These are commands that don't really fit anywhere else.</para> + <sect2 id="command-run-keyword-scan" xreflabel="Run Keyword Scan"> + <title>Run Keyword Scan</title> + <indexterm><primary sortas="scankw">refdb-scankw</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-scankw</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Initiates a background keyword scan.</para> + </sect2> + <sect2 id="command-view-server-information" xreflabel="View Server Information"> + <title>View Server Information</title> + <indexterm><primary sortas="viewstat">refdb-viewstat</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-viewstat</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Displays the RefDB server status information.</para> + </sect2> + </sect1> + <sect1 id="sect-backup-management"> + <title>Database backup management</title> + <para>You should backup your precious reference and notes data once in a while. The commands in this menu section provide a simple interface for this task.</para> + <sect2 id="command-backup-reference-databases" xreflabel="Backup Reference Databases"> + <title>Backup Reference Databases</title> + <indexterm><primary sortas="backup-database">refdb-backup-database</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-backup-database</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Asks interactively for the name of a reference database and creates an SQL dump of the data. Minibuffer completion is available for selecting the database. Asks for the name of the file to save the data to.</para> + </sect2> + <sect2 id="command-restore-reference-databases" xreflabel="Restore Reference Databases"> + <title>Restore Reference Databases</title> + <indexterm><primary sortas="restore-database">refdb-restore-database</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-restore-database</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Asks interactively for the name of the database and for the name of a reference database SQL dump file. Minibuffer completion is available for selecting the file. A database with the given name will be created, and the data from the dump file will be filled in.</para> + <warning> + <para>Before creating the database, an existing database with the same name will be dropped.</para> + </warning> + </sect2> + </sect1> + <sect1 id="sect-refdbmode-customization"> + <title>refdb-mode customization</title> + <para>These commands help you to set up RefDB in the first place and to adapt RefDB and refdb-mode to your needs.</para> + <sect2 id="command-initialize-system-database" xreflabel="Initialize System Database"> + <title>Initialize System Database</title> + <indexterm><primary sortas="init-refdb">refdb-init-refdb</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-init-refdb</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Initializes the system database. Use this command once to initialize your RefDB installation.</para> + <warning> + <para>This command will destructively replace any existing RefDB system database.</para> + </warning> + </sect2> + <sect2 id="command-customize-refdb-mode" xreflabel="Customize RefDB Mode"> + <title>Customize RefDB Mode</title> + <para>This menu command invokes the Emacs customization buffer for RefDB.</para> + </sect2> + <sect2 id="submenu-edit-refdb-config-files" xreflabel="Edit RefDB Config Files"> + <title>Edit RefDB Config Files</title> + <para>The commands in this submenu open one of the RefDB configuration files in Emacs to change the persistent configuration of the RefDB applications. User configuration files will be opened in a new window in the same Emacs frame. Global configuration files will be opened in another Emacs instance which is started using <command>sudo</command> to obtain the required permissions.</para> + <indexterm><primary sortas="edit-refdbarc">refdb-edit-refdbarc</primary></indexterm> + <indexterm><primary sortas="edit-refdbcrc">refdb-edit-refdbcrc</primary></indexterm> + <indexterm><primary sortas="edit-refdbibrc">refdb-edit-refdbibrc</primary></indexterm> + <indexterm><primary sortas="edit-global-refdbarc">refdb-edit-global-refdbarc</primary></indexterm> + <indexterm><primary sortas="edit-global-refdbcrc">refdb-edit-global-refdbcrc</primary></indexterm> + <indexterm><primary sortas="edit-global-refdbibrc">refdb-edit-global-refdbibrc</primary></indexterm> + <indexterm><primary sortas="edit-global-refdbdrc">refdb-edit-global-refdbdrc</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-edit-refdbarc</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Edit the <command>refdba</command> user configuration file.</para> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-edit-refdbcrc</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Edit the <command>refdbc</command> user configuration file.</para> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-edit-refdbibrc</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Edit the <command>refdbib</command> user configuration file.</para> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-edit-global-refdbarc</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Edit the global <command>refdba</command> configuration file.</para> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-edit-global-refdbcrc</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Edit the global <command>refdbc</command> configuration file.</para> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-edit-global-refdbibrc</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Edit the global <command>refdbib</command> configuration file.</para> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-edit-global-refdbdrc</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Edit the global <command>refdbd</command> configuration file.</para> + </sect2> + </sect1> + <sect1 id="sect-server-management"> + <title>RefDB server management</title> + <para>These commands allow to control the RefDB application server. This works only if <command>refdbd</command> runs on your local computer. All of these commands require root permissions.</para> + <sect2 id="command-start-application-server-on-localhost" xreflabel="Start Application Server on localhost"> + <title>Start Application Server on localhost</title> + <indexterm><primary sortas="start-server">refdb-start-server</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-start-server</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Start the <command>refdbd</command> application server.</para> + </sect2> + <sect2 id="command-stop-application-server-on-localhost" xreflabel="Stop Application Server on localhost"> + <title>Stop Application Server on localhost</title> + <indexterm><primary sortas="stop-server">refdb-stop-server</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-stop-server</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Stop the <command>refdbd</command> application server.</para> + </sect2> + <sect2 id="command-restart-application-server-on-localhost" xreflabel="Restart Application Server on localhost"> + <title>Restart Application Server on localhost</title> + <indexterm><primary sortas="restart-server">refdb-restart-server</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-restart-server</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Restart the <command>refdbd</command> application server. The running instance terminates, and a new instance is started.</para> + </sect2> + <sect2 id="command-reload-application-server-on-localhost" xreflabel="Reload Application Server on localhost"> + <title>Reload Application Server on localhost</title> + <indexterm><primary sortas="reload-server">refdb-reload-server</primary></indexterm> + <funcsynopsis> + <funcprototype> + <funcdef><function>refdb-reload-server</function></funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para>Causes the running instance of the <command>refdbd</command> application server to read its configuration file again.</para> + </sect2> </sect1> </chapter> |
From: Markus H. <mho...@us...> - 2005-11-26 00:21:32
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23040 Modified Files: refdb-mode-config.el.in Log Message: added refdb-sysconfdir Index: refdb-mode-config.el.in =================================================================== RCS file: /cvsroot/refdb/elisp/refdb-mode-config.el.in,v retrieving revision 1.1 retrieving revision 1.2 diff -u -U2 -r1.1 -r1.2 --- refdb-mode-config.el.in 19 Nov 2005 19:22:23 -0000 1.1 +++ refdb-mode-config.el.in 26 Nov 2005 00:21:21 -0000 1.2 @@ -48,3 +48,3 @@ (setq refdb-rtf-view-program "<myrtfviewer>") (setq refdb-external-program-shell "<myshell>") - +(setq refdb-sysconfdir "<sysconfdir>/refdb") |
From: Markus H. <mho...@us...> - 2005-11-26 00:20:24
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22743 Modified Files: configure.in Log Message: added more viewers Index: configure.in =================================================================== RCS file: /cvsroot/refdb/elisp/configure.in,v retrieving revision 1.3 retrieving revision 1.4 diff -u -U2 -r1.3 -r1.4 --- configure.in 20 Nov 2005 20:27:32 -0000 1.3 +++ configure.in 26 Nov 2005 00:20:13 -0000 1.4 @@ -4,5 +4,5 @@ dnl check for one of the source files AC_INIT(refdb-mode.el) -AM_INIT_AUTOMAKE(refdb-elisp, 1.1-pre1) +AM_INIT_AUTOMAKE(refdb-elisp, 1.1-pre2) dnl find Emacs and set site-lisp path @@ -19,7 +19,7 @@ AC_PATH_PROG(mysudo, sudo, sudo) AC_PATH_PROGS(mygnumake, gmake make, make) -AC_PATH_PROGS(mypdfviewer, acroread xpdf gv kpdf gpdf evince Preview, gv, [$PATH:/opt/csw/bin:/Applications/Preview.app/Contents/MacOS]) -AC_PATH_PROGS(mypsviewer, gv kghostview ggv gsview32 Preview, gv, [$PATH:/opt/csw/bin:/Applications/Preview.app/Contents/MacOS]) -AC_PATH_PROGS(myrtfviewer, soffice oowriter abiword Ted kword TextEdit, soffice, [$PATH:/usr/local/OpenOffice.org1.1.4/program:/opt/csw/bin:/Applications/TextEdit.app/Contents/MacOS]) +AC_PATH_PROGS(mypdfviewer, acroread xpdf gv kpdf gpdf gnome-gv kghostview evince Preview, gv, [$PATH:/opt/csw/bin:/Applications/Preview.app/Contents/MacOS]) +AC_PATH_PROGS(mypsviewer, gv kghostview gnome-gv ggv bmv gsview32 Preview, gv, [$PATH:/opt/csw/bin:/Applications/Preview.app/Contents/MacOS]) +AC_PATH_PROGS(myrtfviewer, soffice oowriter abiword ted kword TextEdit, soffice, [$PATH:/usr/local/OpenOffice.org1.1.4/program:/opt/csw/bin:/Applications/TextEdit.app/Contents/MacOS]) AC_PATH_PROGS(myshell, sh ash bash, sh) |
From: Markus H. <mho...@us...> - 2005-11-23 22:40:53
|
Update of /cvsroot/refdb/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13345 Modified Files: index.html Log Message: added Cygwin news Index: index.html =================================================================== RCS file: /cvsroot/refdb/homepage/index.html,v retrieving revision 1.13 retrieving revision 1.14 diff -u -U2 -r1.13 -r1.14 --- index.html 15 Nov 2005 21:24:23 -0000 1.13 +++ index.html 23 Nov 2005 22:40:45 -0000 1.14 @@ -137,4 +137,8 @@ <h2>News</h2> <div class="news"> + <h3>November 23, 2005</h3> + <p>Cygwin binaries of 0.9.6 are available. Please download them from the <a href="http://www.sourceforge.net/projects/refdb">Project page</a>.</p> + </div> + <div class="news"> <h3>November 15, 2005</h3> <p>0.9.6 is out. There are lots of new goodies in this release, among others: the client/server protocol was rewritten to improve error reporting and stability. Support for character encodings was vastly improved, multiple UR and L1-L4 per dataset are now supported, extended notes can be kept private, titles instead of author names in bibliographies are now supported, and the documentation was improved and integrated into the sources. <a href="status.html#news20051115" class="more">more...</a></p> |
From: Markus H. <mho...@us...> - 2005-11-20 21:17:22
|
Update of /cvsroot/refdb/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12174 Modified Files: doc.html Log Message: changed link to elisp manual Index: doc.html =================================================================== RCS file: /cvsroot/refdb/homepage/doc.html,v retrieving revision 1.14 retrieving revision 1.15 diff -u -U2 -r1.14 -r1.15 --- doc.html 15 Nov 2005 21:39:59 -0000 1.14 +++ doc.html 20 Nov 2005 21:17:09 -0000 1.15 @@ -179,5 +179,5 @@ <p>There is also a manual for <a href="emacs.html">refdb-mode</a>, the Emacs frontend for RefDB.</p> <ul> - <li><strong><a href="elisp/refdb-mode-manual.html">HTML</a> for online reading</strong></li> + <li><strong><a href="elisp/index.html">HTML</a> for online reading</strong></li> <li><a href="elisp/refdb-mode-manual.pdf">PDF</a></li> </ul> |
From: Markus H. <mho...@us...> - 2005-11-20 20:29:38
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30556 Modified Files: ChangeLog Log Message: initial version Index: ChangeLog =================================================================== RCS file: /cvsroot/refdb/elisp/ChangeLog,v retrieving revision 1.1 retrieving revision 1.2 diff -u -U2 -r1.1 -r1.2 --- ChangeLog 12 Nov 2005 23:07:23 -0000 1.1 +++ ChangeLog 20 Nov 2005 20:29:28 -0000 1.2 @@ -0,0 +1,364 @@ +2005-11-20 21:28 mhoenicka + + * refdb-mode-manual.xml (1.1): initial version + +2005-11-20 21:27 mhoenicka + + * configure.in (1.3): added viewer apps and paths + +2005-11-20 21:26 mhoenicka + + * README (1.2): added installation instructions + +2005-11-19 20:25 mhoenicka + + * refdb-mode.el (1.18): fix typo in getnote-on-region() + +2005-11-19 20:23 mhoenicka + + * configure.in (1.2): search for viewing programs + +2005-11-19 20:22 mhoenicka + + * refdb-mode-config.el.in (1.1): replaces refdb-mode-config.el + +2005-11-19 20:21 mhoenicka + + * refdb-mode-config.el (1.3): replaced by refdb-mode-config.el.in + +2005-11-19 20:20 mhoenicka + + * Makefile.am (1.6): create chunked HTML output with CSS styling; + install refdb-mode-config.el as config file; preconfigure + refdb-mode-config.el + +2005-11-19 20:19 mhoenicka + + * manual.css (1.1): initial version + +2005-11-13 00:07 mhoenicka + + * AUTHORS (1.1), COPYING (1.1), ChangeLog (1.1), INSTALL (1.1), + NEWS (1.1), README (1.1), aclocal.m4 (1.1), configure.in (1.1): + initial version + +2005-11-13 00:01 mhoenicka + + * refdb-mode-config.el (1.2): added transient-mark-mode;made + database name customization more obvious + +2005-11-12 23:59 mhoenicka + + * Makefile.am (1.5): moved to an autotools-based installation of + the lisp files; added documentation + +2005-11-12 22:25 mhoenicka + + * refdb-mode.el (1.17): removed -f stdin default option as the + clients no longer need it;moved to applications customize + section;use full citation format by default;moved cite-references + submenu to document section;various comment fixes + +2005-08-09 01:26 mhoenicka + + * refdb-mode.el (1.16): added CK and ID commands to the + getref-by-region and getnote-by-region groups of commands + +2005-06-25 23:52 mhoenicka + + * refdb-mode.el (1.15): added support for full-style + citations;added function to normalize endterms and linkends in + full-style citations + +2005-06-22 21:49 mhoenicka + + * refdb-mode-config.el (1.1): initial version + +2005-06-22 21:36 mhoenicka + + * refdb-mode.el (1.14): keep a list of styles for + tab-completion;support creating documents via refdbnd;support + document transformation via refdbnd-generated Makefile;support + viewing transformation output;added commands to cite references in + TEI and DocBook formats + +2005-06-12 23:18 mhoenicka + + * refdb-mode.el (1.13): added support for author,keyword,and + periodical tab completion;rearranged customization stuff into + subgroups;added support for getref on regions;added support for + bibutils + +2005-06-07 22:07 mhoenicka + + * refdb-mode.el (1.12): added commands to start and stop the + application server;added commands to edit config files;added + encodings;added pickref and dumpref commands;added whichdb + command;added addlink and deletelink commands;fixed buffer modes + for output + +2005-05-31 23:05 mhoenicka + + * refdb-mode.el (1.11): made selectdb a dynamic submenu;added + support for all refdba commands;added support for refdbc note + commands;addref,updateref,addstyle now work on whole buffer for XML + data;deleteref,deletenote ask for ID list instead of using + region;automatically set encoding of output buffer;made sure + refdb-mode is loaded after commands have finished;new major mode + refdb-output-mode + +2005-05-17 23:08 mhoenicka + + * refdb-mode.el (1.10): added regexp search + +2005-05-08 21:34 mhoenicka + + * ris.el (1.9): simplified regexps;added support for L1 through + L4;moved UR to unlimited size + +2005-05-08 18:15 mhoenicka + + * ris.el (1.8): improved template for new set + +2005-05-08 16:33 mhoenicka + + * ris.el (1.7): improved author syntax check + +2005-05-08 03:05 mhoenicka + + * ris.el (1.6): fixed RP date format + +2005-05-08 02:11 mhoenicka + + * refdb-mode.el (1.9): added Update command;force refdbc output to + stdout;turn RefDB mode on in output buffers + +2005-05-07 23:27 mhoenicka + + * ris.el (1.5): added length checks + +2005-05-07 22:45 mhoenicka + + * ris.el (1.4): added validation for authors, pubdates, reprints + +2004-01-28 04:07 xmldoc + + * refdb-mode.el (1.8): added to TODO list + +2003-12-31 08:18 xmldoc + + * Makefile.am (1.4): Moved refdb/site-lisp/Makefile.am to + elisp/Makefile.am + +2003-12-31 08:08 xmldoc + + * ris.el (1.3): Moved refdb/site-lisp/ris.el to elisp/ris.el + +2003-12-28 13:02 xmldoc + + * refdb-mode.el (1.7): RFE #866615 (listb query only at startup), + RFE #865893 (deleteref) + + + http://sourceforge.net/tracker/index.php?func=detail&aid=866615&gro + up_id=26091&atid=385994 + + http://sourceforge.net/tracker/index.php?func=detail&aid=865893&gro + up_id=26091&atid=385994 + + RFE #866615 - do listdb query only at startup + + Enhancement: + refdb-mode now does a listdb query only once per session, + instead + of doing it each time refdb-mode-hook runs + + RFE #865893 - Add deletref support to refdb-mode + + Enhancement: + Added refdb-deleteref-on-region command and corresponding menu + item. + +2003-12-26 10:48 xmldoc + + * refdb-mode.el (1.6): RFE #865873 (set default db) and #865812 + (refdb-mode in output buffer) + + + http://sourceforge.net/tracker/index.php?func=detail&aid=865873&gro + up_id=26091&atid=385994 + + http://sourceforge.net/tracker/index.php?func=detail&aid=865812&gro + up_id=26091&atid=385994 + + RFE #865873 - refdb-mode should read refdbcrc to set default + database + + Enhancement: + refdb-mode now sets the default database based on output from + 'refdbc -C set defaultdb'. + + RFE #865812 - Put refdb-output buffer into refdb-mode + + Enhancement: + refdb-mode now automatically puts the refdb-output buffer into + refdb-mode; this enables you can start working with output data + right away, without needing to manually invoke refdb-mode. + +2003-12-25 11:11 xmldoc + + * refdb-mode.el (1.5): RFE #864364 (output format) and #865638 + (show version info) + + + http://sourceforge.net/tracker/index.php?func=detail&aid=864364&gro + up_id=26091&atid=385994 + + http://sourceforge.net/tracker/index.php?func=detail&aid=865638&gro + up_id=26091&atid=385994 + + ------------------------------------------------------------------- + --- RFE #864364 - provide control over which fields appear in + dataset output + + Enhancement: + Added new functions refdb-select-data-output-format and + refdb-select-additional-data-fields and corresponding new menu + items 'Select Output Format' and 'Select Additional Data + Fields'. + Those control the value passed to the 'refdcbc -C getref -s' + option, and so enable you to control which fields appear in + data + output -- either the default fields, all fields, IDs only, or a + user-customizable set of additional fields that appear in + addition + to the default fields. + + ------------------------------------------------------------------- + --- RFE #865638 - Add "show version" feature + + Enhancement: + Added new function refdb-show-version and corresponding menu + item + 'Show RefDB Version' for displaying version information both + for + refdb-mode and the version of refdbd that refdbd-mode is + running + against. + +2003-12-17 12:32 xmldoc + + * refdb-mode.el (1.4): Change for RFE #861367, "consolidate + variables containing refdbc" + + + http://sourceforge.net/tracker/index.php?func=detail&aid=861367&gro + up_id=26091&atid=385994 + + Problem: The customization buffer of refdb-menu contains a + variety of entries containing the name/path of the refdbc + executable. Changing the refdb-refdbc-program variable will + change the others only after a restart or after reloading .emacs. + This is inconvenient if you want to switch e.g. to a debug + version of the executable. I'd suggest to modify the code so + that in all places refdb-refdbc-program is used, and use the + other variables which so far depend on this to carry only + additional arguments. + + Cause: Bad design; custom variables referencing other custom + variables don't get updated when the values of the referenced + custom variables change. + + Fix: All user commands now include a direct call + refdb-refdbc-program (instead of a call to a custom variable that + references refdb-refdbc-program. + + Affects: All commands that call the refdbc program. If you change + the value of refdb-refdbc-program during a session, the new value + will be used in all commands that call refdbc (i.e., you don't + have to restart your Emacs for the changes to take effect). As a + consequence of this, the following custom variables have been + removed: + + refdb-refdbc-program-and-options + refdb-addref-command + refdb-getref-command + refdb-listdb-command + + Other: Made some minor formatting changes to make code look + better in outline view. + +2003-12-17 11:36 xmldoc + + * refdb-mode.el (1.3): Fix for Bug #861419, "handle percent sign in + queries". + + + http://sourceforge.net/tracker/index.php?func=detail&aid=861419&gro + up_id=26091&atid=385991 + + Problem: If you try to use a string that contains a percent sign, + e.g., "Walsh%", in a getref query, Emacs emits a "not enough + arguments for format call" error, and the query fails. + + Cause: Message functions with nested format functions, like this: + + (message (format CONTROL-STRING OBJECTS)) + + In that case, when objects for that nested format call had + percent + signs in them, the message function choked on them. + + Fix: Un-nested content that was in the format function, like + this: + + (message CONTROL-STRING OBJECTS) + + Because the message function has built-in support for expanding + control-strings just as the format function does, the format call + was actually unnecessary. + + Also, added a new function, `refdb-message-getting-refs', for + displaying the "Getting datasets for FIELD VALUE" message. All + the + refdb-getref-by-* functions now call this (instead of having + their own hard-coded message calls). + + Affects: All getref queries, whether from command-line or menu. + +2003-12-16 05:48 xmldoc + + * refdb-mode.el (1.2): paren missing before function name; fixed + +2003-12-12 12:39 xmldoc + + * refdb-menu.el (1.6), refdb-mode.el (1.1): renamed refdb-menu.el + to refdb-mode.el + +2003-12-10 18:16 xmldoc + + * refdb-menu.el (1.5): simplified database selection + +2003-12-09 03:13 xmldoc + + * refdb-menu.el (1.4): Select Output Type menu fixes + + - fixed minor bug reported by Bruce D'Arcus; output type param + and value weren't actually getting passed to getref command + + - added functionality suggested by Bruce D'Arcus; current output + type now shows up with a check mark on Select Output Type menu + +2003-12-08 16:06 xmldoc + + * refdb-menu.el (1.3): cruft deleted + +2003-12-08 14:44 xmldoc + + * refdb-menu.el (1.2): output-type menu added; input-type selection + logic added + +2003-12-03 16:38 xmldoc + + * refdb-menu.el (1.1): initial add; alpha quality + |
From: Markus H. <mho...@us...> - 2005-11-20 20:28:38
|
Update of /cvsroot/refdb/elisp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30303 Added Files: refdb-mode-manual.xml Log Message: initial version --- NEW FILE --- <?xml version="1.0"?> <?xml-stylesheet href="http://localhost/docbook-css-0.4/driver.css" type="text/css"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"> <book> <bookinfo> <title>refdb-mode manual</title> <author> <firstname>Markus</firstname> <surname>Hoenicka</surname> <affiliation><address><email>ma...@mh...</email></address></affiliation> </author> <abstract> <para>This manual documents refdb-mode, a minor mode for GNU Emacs which implements an interface to RefDB, a reference manager and bibliography tool.</para> </abstract> </bookinfo> <preface> <title>Preface</title> <para>refdb-mode turns GNU Emacs into a frontend for <ulink url="http://refdb.sourceforge.net">RefDB</ulink>, a reference manager and bibliography tool for markup languages. refdb-mode is a minor mode which works well alongside the major modes psgml (SGML editing), nxml-mode (XML editing), and ris-mode (RIS editing). It offers a full set of menu commands for reference and notes management, allowing you to conveniently use Emacs to create or update references and notes. Moreover, it allows you to create DocBook and TEI documents for use with RefDB. You can transform the documents and view the results with a mouseclick. It integrates seamlessly into your authoring process, allowing you to search for references and yank them directly in place, without ever leaving Emacs. Finally, there is also a full set of administrative commands to control all aspects of RefDB configuration and administration.</para> <para>This manual gives a brief overview of how to use refdb-mode, followed by a more thorough description of all available commands.</para> [...1012 lines suppressed...] </sect2> <sect2 id="command-view-output" xreflabel="View Output"> <title>View Output</title> <indexterm><primary sortas="view-output">refdb-view-output</primary></indexterm> <funcsynopsis> <funcprototype> <funcdef><function>refdb-view-output</function></funcdef> <paramdef><parameter>type</parameter></paramdef> </funcprototype> </funcsynopsis> <para>Runs an appropriate viewer for the output generated by <xref linkend="command-transform-document"/>. If run from the menu, a submenu with the available output types will pop up. The viewer will usually run in a separate window.</para> </sect2> </sect1> <sect1> <title>Administrative functions</title> <para>To be done.</para> </sect1> </chapter> <index/> </book> |