View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/
Update of /cvsroot/dqsd/dqsd/addons/genealogy
In directory usw-pr-cvs1:/tmp/cvs-serv12688/addons/genealogy
Modified Files:
ancestry.xml blm.xml bmd.xml fhlc.xml gros.xml iddi.xml
ildi.xml illp.xml ilmi.xml lds.xml melvyl.xml midi.xml rsl.xml
sampub.xml ssdi.xml usgw.xml wsmarr.xml
Log Message:
updated a bunch of searches to use genealogy_parseArgs and other changes
Index: ancestry.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/ancestry.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ancestry.xml 22 Aug 2002 20:23:50 -0000 1.2
--- ancestry.xml 5 Nov 2002 07:17:17 -0000 1.3
***************
*** 98,126 ****
return;
- if( q == "" )
- {
- openSearchWindow("http://www.ancestry.com/");
- return;
- }
-
- // FORM variables for ancestryf
-
- // The wizard assigned the search string to this form field value because
- // this field was the active element when the search file was generated.
- // Change this to args.q if the search string is parsed with parseArgs.
document.ancestryf.gsfn.value = genealogy_parse_givenname(q);
document.ancestryf.gsln.value = genealogy_parse_surname(q);
- //document.ancestryf.sx.value = "";
- //document.ancestryf.prox.value = "";
- //document.ancestryf.gsco.value = "";
- //document.ancestryf.gspl.value = "";
- //document.ancestryf.year.value = "";
- //document.ancestryf.yearend.value = "";
- //document.ancestryf.gskw.value = "";
- //document.ancestryf.gst.value = "";
- //document.ancestryf.gl.value = "";
- //document.ancestryf.ti.value = "";
- //document.ancestryf.gss.value = "";
-
submitForm(ancestryf);
}
--- 98,103 ----
Index: blm.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/blm.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** blm.xml 11 Oct 2002 06:03:57 -0000 1.3
--- blm.xml 5 Nov 2002 07:17:17 -0000 1.4
***************
*** 17,21 ****
<tr><td>blm jones</td></tr>
<tr><td>blm jones, francis</td></tr>
! <tr><td>blm /state:il jones, francis</td></tr>
</table>
</description>
--- 17,21 ----
<tr><td>blm jones</td></tr>
<tr><td>blm jones, francis</td></tr>
! <tr><td>blm jones, francis /state il</td></tr>
</table>
</description>
***************
*** 188,210 ****
document.blmf.f1.value = "";
!
! var args = parseArgs(q, "state");
! if (args != null && args.switches.length > 0) {
! if (args.switches.length > 1) {
! nullArgs("blm", "?");
! return;
! }
! for (var i=0; i < args.switches.length; i++) {
! switch (args.switches[i].name)
! {
! case "state":
! document.blmf.f1.value =
genealogy_lookup_place_abbrev(genealogy_parse_place_state(args.switch_val["state"])).toUpperCase();
! break;
! default:
! break;
! }
! }
}
-
document.blmf.f6.value = genealogy_parse_surname(args.q);
document.blmf.f4.value = genealogy_parse_givenname(args.q);
--- 188,195 ----
document.blmf.f1.value = "";
! var args = genealogy_parseArgs(q, "state");
! if (genealogy_hasArg(args, "state")) {
! document.blmf.f1.value =
genealogy_lookup_place_abbrev(genealogy_parse_place_state(args.switch_val["state"])).toUpperCase();
}
document.blmf.f6.value = genealogy_parse_surname(args.q);
document.blmf.f4.value = genealogy_parse_givenname(args.q);
Index: bmd.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/bmd.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** bmd.xml 21 Sep 2002 07:26:55 -0000 1.1
--- bmd.xml 5 Nov 2002 07:17:17 -0000 1.2
***************
*** 12,21 ****
<tr><td>/marriage</td><td> - </td><td>Search marriage records</td></tr>
<tr><td>/death</td><td> - </td><td>Search death records</td></tr>
! <tr><td>/county:[county name]</td><td> - </td><td>Specify county to
search in</td></tr>
! <tr><td>/state:[state name] (required)</td><td> - </td><td>Specify
state to search in</td></tr>
</table>
<div class="helpboxDescLabels">Examples:</div>
<table class="helpboxDescTable">
! <tr><td>bmd /d /s:ny jones</td></tr>
</table>
</description>
--- 12,21 ----
<tr><td>/marriage</td><td> - </td><td>Search marriage records</td></tr>
<tr><td>/death</td><td> - </td><td>Search death records</td></tr>
! <tr><td>/county</td><td> - </td><td>Specify county to search
in</td></tr>
! <tr><td>/state (required)</td><td> - </td><td>Specify state to search
in</td></tr>
</table>
<div class="helpboxDescLabels">Examples:</div>
<table class="helpboxDescTable">
! <tr><td>bmd jones /d /s ny</td></tr>
</table>
</description>
***************
*** 54,58 ****
//document.bmdf[".cgifields"].value = "";
! var args = parseArgs(q, "county, state, birth, marriage, death");
var recordType = "";
var stateAbbrev = "";
--- 54,58 ----
//document.bmdf[".cgifields"].value = "";
! var args = genealogy_parseArgs(q, "county, state, birth, marriage, death");
var recordType = "";
var stateAbbrev = "";
Index: fhlc.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/fhlc.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** fhlc.xml 12 Oct 2002 05:02:42 -0000 1.1
--- fhlc.xml 5 Nov 2002 07:17:17 -0000 1.2
***************
*** 174,178 ****
return;
! var args = parseArgs(q, "author, callno, film, place, subject, surname");
if( args.switches.length != 1 ) {
nullArgs("fhlc", "?");
--- 174,178 ----
return;
! var args = genealogy_parseArgs(q, "author, callno, film, place, subject,
surname");
if( args.switches.length != 1 ) {
nullArgs("fhlc", "?");
Index: gros.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/gros.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** gros.xml 8 Sep 2002 15:55:10 -0000 1.1
--- gros.xml 5 Nov 2002 07:17:17 -0000 1.2
***************
*** 15,24 ****
<table class="helpboxDescTable">
<tr><td>gros stewart</td></tr>
! <tr><td>gros /from:1800 /to:1843 mcglashan</td></tr>
</table>
</description>
! <form name="grosf"
method="post"
!
action="http://public.scotlandspeople.gov.uk/index.php?YXJlYT1mcmVlc2VhcmNoJmlkPS05OQ==">
<input type="hidden" name="var_surname" value="" />
<input type="hidden" name="var_year_from" value="1553" />
--- 15,24 ----
<table class="helpboxDescTable">
<tr><td>gros stewart</td></tr>
! <tr><td>gros mcglashan /f 1800 /t 1843</td></tr>
</table>
</description>
! <form name="grosf"
method="post"
!
action="http://public.scotlandspeople.gov.uk/index.php?area=freesearch&id=-99">
<input type="hidden" name="var_surname" value="" />
<input type="hidden" name="var_year_from" value="1553" />
***************
*** 32,47 ****
return;
! var switch_list = new Array("from", "to");
! var args = parseArgs(q, switch_list);
! if (typeof args.switch_val[switch_list[0]] == "undefined" ||
args.switch_val[switch_list[0]] == "") {
! document.grosf.var_year_from.value = "1553";
} else {
! document.grosf.var_year_from.value = args.switch_val[switch_list[0]];
}
! if (typeof args.switch_val[switch_list[1]] == "undefined" ||
args.switch_val[switch_list[1]] == "") {
! document.grosf.var_year_to.value = "1951";
} else {
! document.grosf.var_year_to.value = args.switch_val[switch_list[1]];
}
document.grosf.var_surname.value = genealogy_parse_surname(args.q);
--- 32,46 ----
return;
! var args = genealogy_parseArgs(q, "from, to");
! if (genealogy_hasArg(args, "from")) {
! document.grosf.var_year_from.value = args.switch_val["from"];
} else {
! document.grosf.var_year_from.value = "1553";
}
! if (genealogy_hasArg(args, "to")) {
! document.grosf.var_year_to.value = args.switch_val["to"];
} else {
! document.grosf.var_year_to.value = "1951";
}
document.grosf.var_surname.value = genealogy_parse_surname(args.q);
Index: iddi.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/iddi.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** iddi.xml 9 Sep 2002 00:21:18 -0000 1.3
--- iddi.xml 5 Nov 2002 07:17:17 -0000 1.4
***************
*** 15,19 ****
<tr><td>iddi jones, john w</td></tr>
<tr><td>iddi jones</td></tr>
! <tr><td>iddi /county:gem jones, james</td></tr>
</table>
</description>
--- 15,19 ----
<tr><td>iddi jones, john w</td></tr>
<tr><td>iddi jones</td></tr>
! <tr><td>iddi jones, james /county gem</td></tr>
</table>
</description>
***************
*** 80,96 ****
return;
! var args = parseArgs(q, "county");
! if (args != null) {
document.iddif["county"].value = "";
- if (args.switches.length == 1) {
- if (args.switches[0].name == "county") {
- document.iddif["county"].value = args.switch_val["county"];
- }
- }
- document.iddif.name.value = args.q;
- submitForm(iddif);
- return;
}
! nullArgs("iddi", "?");
}
]]></script>
--- 80,91 ----
return;
! var args = genealogy_parseArgs(q, "county");
! if (genealogy_hasArg(args, "county")) {
! document.iddif["county"].value = args.switch_val["county"];
! } else {
document.iddif["county"].value = "";
}
! document.iddif.name.value = args.q;
! submitForm(iddif);
}
]]></script>
Index: ildi.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/ildi.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ildi.xml 24 Aug 2002 04:58:44 -0000 1.3
--- ildi.xml 5 Nov 2002 07:17:17 -0000 1.4
***************
*** 1,13 ****
<search function="ildi">
- <COMMENT>
-
- This search file was initially created by Dave's Quick Search Deskbar
- Search Wizard version 0.4 (beta) on 08/15/02 at 22:32:22
-
- Even though this XML search will probably load and is a healthy start
- toward a completed search, please be aware that this search will probably
- not work as is and will require some human inspection and modification.
-
- </COMMENT>
<name>Illinois Death Certificates 1916-1950</name>
<category>Genealogy</category>
--- 1,3 ----
***************
*** 22,28 ****
action="http://www.cyberdriveillinois.com/Genealogy/IDPHDeathSearchServlet">
<input type="hidden" name="internal" value="external" />
-
- <COMMENT> The following field was active (i.e. had focus) when the search was
generated. </COMMENT>
-
<input type="hidden" name="LastName" value="" />
<input type="hidden" name="FirstName" value="" />
--- 12,15 ----
***************
*** 147,173 ****
return;
! if( q == "" )
! {
! openSearchWindow("http://www.cyberdriveillinois.com/");
! return;
}
! var args = parseArgs(q, "county");
! if (args != null) {
! document.ildif.FirstName.value = "";
! document.ildif.MiddleName.value = "";
! document.ildif.county.value = "";
! document.ildif.more.value = "";
! document.ildif.county.value = "";
! if (args.switches.length == 1) {
! if (args.switches[0].name == "county") {
! document.ildif.county.value =
args.switch_val["county"].toUpperCase();
! }
! }
! document.ildif.LastName.value = genealogy_parse_surname(args.q);
! document.ildif.FirstName.value = genealogy_parse_givenname(args.q);
! submitForm(ildif);
! return;
! }
! nullArgs("ildi", "?");
}
]]></script>
--- 134,146 ----
return;
! var args = genealogy_parseArgs(q, "county");
! if (genealogy_hasArg(args, "county")) {
! document.ildif.county.value = args.switch_val["county"].toUpperCase();
! } else {
! document.ildif.county.value = "";
}
! document.ildif.LastName.value = genealogy_parse_surname(args.q);
! document.ildif.FirstName.value = genealogy_parse_givenname(args.q);
! submitForm(ildif);
}
]]></script>
Index: illp.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/illp.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** illp.xml 11 Oct 2002 06:03:58 -0000 1.3
--- illp.xml 5 Nov 2002 07:17:17 -0000 1.4
***************
*** 17,21 ****
<tr><td>illp jones</td></tr>
<tr><td>illp jones, fred</td></tr>
! <tr><td>illp /county:ogle jones</td></tr>
</table>
</description>
--- 17,21 ----
<tr><td>illp jones</td></tr>
<tr><td>illp jones, fred</td></tr>
! <tr><td>illp jones /county ogle</td></tr>
</table>
</description>
***************
*** 142,156 ****
return;
! document.illpf.county.value = "";
! document.illpf.name.value = "";
!
! var args = parseArgs(q, "county");
! if (args.switches.length > 0) {
! for (var i=0; i < args.switches.length; i++) {
! switch (args.switches[i].name)
! {
! case "county": document.illpf.county.value =
args.switch_val["county"].toUpperCase(); break;
! }
! }
}
var search_name = genealogy_parse_surname(args.q);
--- 142,150 ----
return;
! var args = genealogy_parseArgs(q, "county");
! if (genealogy_hasArg(args, "county")) {
! document.illpf.county.value = args.switch_val["county"].toUpperCase();
! } else {
! document.illpf.county.value = "";
}
var search_name = genealogy_parse_surname(args.q);
Index: ilmi.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/ilmi.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ilmi.xml 22 Aug 2002 20:23:50 -0000 1.2
--- ilmi.xml 5 Nov 2002 07:17:17 -0000 1.3
***************
*** 1,13 ****
<search function="ilmi">
- <COMMENT>
-
- This search file was initially created by Dave's Quick Search Deskbar
- Search Wizard version 0.4 (beta) on 08/15/02 at 22:47:04
-
- Even though this XML search will probably load and is a healthy start
- toward a completed search, please be aware that this search will probably
- not work as is and will require some human inspection and modification.
-
- </COMMENT>
<name>Illinois Marriage Index 1763-1900</name>
<category>Genealogy</category>
--- 1,3 ----
***************
*** 17,27 ****
<description>
Search the Illinois Marriage Index 1763-1900
</description>
<form name="ilmif"
method="post"
action="http://cyberdriveillinois.com/cgi-bin/archives/marriage.s">
-
- <COMMENT> The following field was active (i.e. had focus) when the search was
generated. </COMMENT>
-
<input type="hidden" name="groom" value="" />
<input type="hidden" name="bride" value="" />
--- 7,26 ----
<description>
Search the Illinois Marriage Index 1763-1900
+ <div class="helpboxDescLabels">Switches:</div>
+ <table class="helpboxDescTable">
+ <tr><td>/bride</td><td> - </td><td>Specify the bride's name</td></tr>
+ <tr><td>/county</td><td> - </td><td>Specify the county</td></tr>
+ <tr><td>/groom</td><td> - </td><td>Specify the groom's name</td></tr>
+ </table>
+ <div class="helpboxDescLabels">Examples:</div>
+ <table class="helpboxDescTable">
+ <tr><td>ilmi /g jones</td></tr>
+ <tr><td>ilmi /g jones, francis</td></tr>
+ <tr><td>ilmi /g jones /c ogle</td></tr>
+ </table>
</description>
<form name="ilmif"
method="post"
action="http://cyberdriveillinois.com/cgi-bin/archives/marriage.s">
<input type="hidden" name="groom" value="" />
<input type="hidden" name="bride" value="" />
***************
*** 144,172 ****
return;
! if( q == "" )
! {
!
openSearchWindow("http://www.cyberdriveillinois.com/departments/archives/marriage.html");
! return;
}
!
! var args = parseArgs(q, "county, bride, groom");
! if (args != null) {
! document.ilmif.groom.value = "";
document.ilmif.bride.value = "";
! document.ilmif.county.value = "";
! if (args.switches.length > 0) {
! for (var i=0; i < args.switches.length; i++) {
! switch (args.switches[i].name)
! {
! case "groom": document.ilmif.groom.value =
args.switch_val["groom"]; break;
! case "bride": document.ilmif.bride.value =
args.switch_val["bride"]; break;
! case "county": document.ilmif.county.value =
args.switch_val["county"].toUpperCase(); break;
! }
! }
! }
! if (document.ilmif.groom.value == "" && document.ilmif.bride.value == "") {
! nullArgs("ilmi", "?");
! return;
! }
submitForm(ilmif);
}
--- 143,165 ----
return;
! var args = genealogy_parseArgs(q, "county, bride, groom");
! if (genealogy_hasArg(args, "county")) {
! document.ilmif.county.value = args.switch_val["county"].toUpperCase();
! } else {
! document.ilmif.county.value = "STATEWIDE";
}
! if (genealogy_hasArg(args, "bride")) {
! document.ilmif.bride.value = args.switch_val["bride"];
! } else {
document.ilmif.bride.value = "";
! }
! if (genealogy_hasArg(args, "groom")) {
! document.ilmif.groom.value = args.switch_val["groom"];
! } else {
! document.ilmif.groom.value = "";
! }
! if (document.ilmif.groom.value == "" && document.ilmif.bride.value == "") {
! nullArgs("ilmi", "?");
! } else {
submitForm(ilmif);
}
Index: lds.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/lds.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** lds.xml 22 Aug 2002 20:23:50 -0000 1.2
--- lds.xml 5 Nov 2002 07:17:17 -0000 1.3
***************
*** 31,35 ****
return;
! var args = parseArgs(q, "all, af, igi, ssdi");
if (args != null && args.switches.length > 0) {
if (args.switches.length > 1) {
--- 31,35 ----
return;
! var args = genealogy_parseArgs(q, "all, af, igi, ssdi");
if (args != null && args.switches.length > 0) {
if (args.switches.length > 1) {
Index: melvyl.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/melvyl.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** melvyl.xml 11 Oct 2002 06:18:27 -0000 1.3
--- melvyl.xml 5 Nov 2002 07:17:17 -0000 1.4
***************
*** 80,99 ****
return;
- // Parse switches with parseArgs:
-
- // parseArgs usage:
- // Arguments:
- // q - string from the search function
- // expectedSwitches - list or array of the expected switch values
- // expandSwitches - optional parameter [default = true] used to determine
- // if the switch shortcuts should be expanded (i.e. /f
becomes /foo)
- // Returns an object with these properties:
- // q - the input string with the switches removed
- // switches - array of objects with these two properties:
- // name: expanded name of the matched switch (i.e. foo as
in /foo:bar)
- // value: value of switch (i.e. bar as in /foo:bar)
- // switch_val - associative array with the switch name as the key with the
switch value
- // as the value. (i.e. switch_val["foo"] = "bar" as in
/foo:bar)
-
//var args = parseArgs(q, "author, subject, title");
//if ( args.switches.length > 0 )
--- 80,83 ----
Index: midi.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/midi.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** midi.xml 22 Aug 2002 20:23:50 -0000 1.2
--- midi.xml 5 Nov 2002 07:17:17 -0000 1.3
***************
*** 1,13 ****
<search function="midi">
- <COMMENT>
-
- This search file was initially created by Dave's Quick Search Deskbar
- Search Wizard version 0.5 (beta) on 08/21/02 at 18:37:39
-
- Even though this XML search will probably load and is a healthy start
- toward a completed search, please be aware that this search will probably
- not work as is and will require some human inspection and modification.
-
- </COMMENT>
<name>Michigan Death Index 1867-1897</name>
<category>Genealogy</category>
--- 1,3 ----
***************
*** 17,27 ****
<description>
Search the Michigan Death Index 1867-1897
</description>
<form name="midif"
method="post"
action="http://www.mdch.state.mi.us/gendisx/scripts/search.idc">
-
- <COMMENT> The following field was active (i.e. had focus) when the search was
generated. </COMMENT>
-
<input type="hidden" name="LastName" value="" />
<input type="hidden" name="FirstName" value="" />
--- 7,24 ----
<description>
Search the Michigan Death Index 1867-1897
+ <div class="helpboxDescLabels">Switches:</div>
+ <table class="helpboxDescTable">
+ <tr><td>/county</td><td> - </td><td>Limit the search to a specified
+county</td></tr>
+ <tr><td>/father</td><td> - </td><td>Specify father's last name</td></tr>
+ </table>
+ <div class="helpboxDescLabels">Examples:</div>
+ <table class="helpboxDescTable">
+ <tr><td>midi jones /c berrien</td></tr>
+ <tr><td>midi /c berrien /f jones</td></tr>
+ </table>
</description>
<form name="midif"
method="post"
action="http://www.mdch.state.mi.us/gendisx/scripts/search.idc">
<input type="hidden" name="LastName" value="" />
<input type="hidden" name="FirstName" value="" />
***************
*** 215,238 ****
return;
! if( q == "" )
! {
! openSearchWindow("http://www.mdch.state.mi.us/");
! return;
}
!
! // FORM variables for midif
!
! // The wizard assigned the search string to this form field value because
! // this field was the active element when the search file was generated.
! // Change this to args.q if the search string is parsed with parseArgs.
! document.midif.LastName.value = genealogy_parse_surname(q);
! document.midif.FirstName.value = genealogy_parse_givenname(q);
! //document.midif.FatherLastName.value = "";
! //document.midif.CountyName.value = "";
! //document.midif.DxLowerYear.value = "";
! //document.midif.DxUpperYear.value = "";
! //document.midif.SortClause.value = "";
! //document.midif.RESET.value = "";
!
submitForm(midif);
}
--- 212,228 ----
return;
! var args = genealogy_parseArgs(q, "county, father");
! if (genealogy_hasArg(args, "county")) {
! document.midif.CountyName.value = args.switch_val["county"];
! } else {
! document.midif.CountyName.value = "%%";
}
! if (genealogy_hasArg(args, "father")) {
! document.midif.FatherLastName.value =
genealogy_parse_surname(args.switch_val["father"]);
! } else {
! document.midif.FatherLastName.value = "";
! }
! document.midif.LastName.value = genealogy_parse_surname(args.q);
! document.midif.FirstName.value = genealogy_parse_givenname(args.q);
submitForm(midif);
}
Index: rsl.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/rsl.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** rsl.xml 22 Aug 2002 20:23:50 -0000 1.2
--- rsl.xml 5 Nov 2002 07:17:17 -0000 1.3
***************
*** 1,13 ****
<search function="rsl">
- <COMMENT>
-
- This search file was initially created by Dave's Quick Search Deskbar
- Search Wizard version 0.4 (beta) on 08/18/02 at 16:47:04
-
- Even though this XML search will probably load and is a healthy start
- toward a completed search, please be aware that this search will probably
- not work as is and will require some human inspection and modification.
-
- </COMMENT>
<name>Rootsweb Surname List</name>
<category>Genealogy</category>
--- 1,3 ----
***************
*** 22,28 ****
action="http://rsl.rootsweb.com/cgi-bin/rslsql.cgi">
<input type="hidden" name="op" value="search" />
-
- <COMMENT> The following field was active (i.e. had focus) when the search was
generated. </COMMENT>
-
<input type="hidden" name="surname" value="" />
<input type="hidden" name="location" value="" />
--- 12,15 ----
***************
*** 32,36 ****
"All", "7", "30", "60"
</COMMENT>
-
<input type="hidden" name="type" value="Surname" />
<COMMENT>
--- 19,22 ----
***************
*** 38,42 ****
"Surname", "Soundex", "Metaphone"
</COMMENT>
-
</form>
<script src="addons/genealogy/genealogy_lib.js"></script>
--- 24,27 ----
***************
*** 47,101 ****
return;
! if( q == "" )
! {
! openSearchWindow("http://rsl.rootsweb.com/");
! return;
}
!
! // Parse switches with parseArgs:
!
! // parseArgs usage:
! // Arguments:
! // q - string from the search function
! // expectedSwitches - list or array of the expected switch values
! // expandSwitches - optional parameter [default = true] used to determine
! // if the switch shortcuts should be expanded (i.e. /f
becomes /foo)
! // Returns an object with these properties:
! // q - the input string with the switches removed
! // switches - array of objects with these two properties:
! // name: expanded name of the matched switch (i.e. foo as
in /foo:bar)
! // value: value of switch (i.e. bar as in /foo:bar)
! // switch_val - associative array with the switch name as the key with the
switch value
! // as the value. (i.e. switch_val["foo"] = "bar" as in
/foo:bar)
!
! document.rslf.surname.value = "";
! document.rslf.location.value = "";
! document.rslf.period.value = "";
!
! var args = parseArgs(q, "location, type, period");
! if ( args.switches.length > 0 )
! {
! switch( args.switches[0].name )
! {
! case "location":
! document.rslf.location.value = args.switch_val["location"];
! break;
! case "type":
! break;
! case "period":
! break;
! default:
! break;
! } //end-switch
}
!
! // FORM variables for rslf
! //document.rslf.op.value = "";
!
! // The wizard assigned the search string to this form field value because
! // this field was the active element when the search file was generated.
! // Change this to args.q if the search string is parsed with parseArgs.
document.rslf.surname.value = genealogy_parse_surname(args.q);
-
submitForm(rslf);
}
--- 32,48 ----
return;
! var args = genealogy_parseArgs(q, "location, period");
! if (genealogy_hasArg(args, "location")) {
! document.rslf.location.value = args.switch_val["location"];
! } else {
! document.rslf.location.value = "";
}
! if (genealogy_hasArg(args, "period")) {
! document.rslf.period.value = args.switch_val["period"];
! } else {
! document.rslf.period.value = "All";
}
! document.rslf.type.value = "Surname";
document.rslf.surname.value = genealogy_parse_surname(args.q);
submitForm(rslf);
}
Index: sampub.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/sampub.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** sampub.xml 22 Aug 2002 20:23:50 -0000 1.2
--- sampub.xml 5 Nov 2002 07:17:17 -0000 1.3
***************
*** 1,13 ****
<search function="sampub">
- <COMMENT>
-
- This search file was initially created by Dave's Quick Search Deskbar
- Search Wizard version 0.4 (beta) on 08/19/02 at 15:23:35
-
- Even though this XML search will probably load and is a healthy start
- toward a completed search, please be aware that this search will probably
- not work as is and will require some human inspection and modification.
-
- </COMMENT>
<name>Sampubco.com</name>
<category>Genealogy</category>
--- 1,3 ----
***************
*** 68,96 ****
return;
- if( q == "" )
- {
- openSearchWindow("http://www.sampubco.com/");
- return;
- }
-
- // Parse switches with parseArgs:
-
- // parseArgs usage:
- // Arguments:
- // q - string from the search function
- // expectedSwitches - list or array of the expected switch values
- // expandSwitches - optional parameter [default = true] used to determine
- // if the switch shortcuts should be expanded (i.e. /f
becomes /foo)
- // Returns an object with these properties:
- // q - the input string with the switches removed
- // switches - array of objects with these two properties:
- // name: expanded name of the matched switch (i.e. foo as
in /foo:bar)
- // value: value of switch (i.e. bar as in /foo:bar)
- // switch_val - associative array with the switch name as the key with the
switch value
- // as the value. (i.e. switch_val["foo"] = "bar" as in
/foo:bar)
-
var state_param = "";
var search_type = ""; // can be guard, nat, will, or blank (default)
! var args = parseArgs(q, "state, type");
for (var i=0; i < args.switches.length; i++) {
switch( args.switches[i].name )
--- 58,64 ----
return;
var state_param = "";
var search_type = ""; // can be guard, nat, will, or blank (default)
! var args = genealogy_parseArgs(q, "state, type");
for (var i=0; i < args.switches.length; i++) {
switch( args.switches[i].name )
Index: ssdi.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/ssdi.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ssdi.xml 22 Aug 2002 20:23:50 -0000 1.2
--- ssdi.xml 5 Nov 2002 07:17:17 -0000 1.3
***************
*** 1,13 ****
<search function="ssdi">
- <COMMENT>
-
- This search file was initially created by Dave's Quick Search Deskbar
- Search Wizard version 0.4 (beta) on 08/18/02 at 23:43:17
-
- Even though this XML search will probably load and is a healthy start
- toward a completed search, please be aware that this search will probably
- not work as is and will require some human inspection and modification.
-
- </COMMENT>
<name>Rootsweb Social Security Death Index</name>
<category>Genealogy</category>
--- 1,3 ----
***************
*** 17,25 ****
<description>
Search the Social Security Death Index at Rootsweb
</description>
<form name="ssdif"
method="post"
action="http://ssdi.genealogy.rootsweb.com/cgi-bin/ssdi.cgi">
! <input type="hidden" name="stat" value="" />
<input type="hidden" name="lastname" value="" />
<input type="hidden" name="nt" value="exact" />
--- 7,20 ----
<description>
Search the Social Security Death Index at Rootsweb
+ <div class="helpboxDescLabels">Examples:</div>
+ <table class="helpboxDescTable">
+ <tr><td>ssdi 123-45-6789</td></tr>
+ <tr><td>ssdi jones, john</td></tr>
+ </table>
</description>
<form name="ssdif"
method="post"
action="http://ssdi.genealogy.rootsweb.com/cgi-bin/ssdi.cgi">
! <input type="hidden" name="stat" value="a" />
<input type="hidden" name="lastname" value="" />
<input type="hidden" name="nt" value="exact" />
***************
*** 32,40 ****
</select>
</COMMENT>
-
<input type="hidden" name="firstname" value="" />
<input type="hidden" name="middlename" value="" />
<input type="hidden" name="ssn" value="" />
</form>
<script src="addons/genealogy/genealogy_lib.js"></script>
<script><![CDATA[
--- 27,49 ----
</select>
</COMMENT>
<input type="hidden" name="firstname" value="" />
<input type="hidden" name="middlename" value="" />
<input type="hidden" name="ssn" value="" />
+ <input type="hidden" name="zip" value="" />
+ <input type="hidden" name="lump" value="" />
+ <input type="hidden" name="ls" value="" />
+ <input type="hidden" name="lus" value="" />
+ <input type="hidden" name="lc" value="" />
+ <input type="hidden" name="luc" value="" />
+ <input type="hidden" name="lct" value="" />
+ <input type="hidden" name="luct" value="" />
+ <input type="hidden" name="birth" value="" />
+ <input type="hidden" name="bmo" value="00" />
+ <input type="hidden" name="bda" value="00" />
+ <input type="hidden" name="death" value="" />
+ <input type="hidden" name="dmo" value="00" />
+ <input type="hidden" name="issue" value="" />
</form>
+
<script src="addons/genealogy/genealogy_lib.js"></script>
<script><![CDATA[
***************
*** 44,93 ****
return;
! if( q == "" )
! {
! openSearchWindow("http://ssdi.genealogy.rootsweb.com/cgi-bin/ssdi.cgi");
! return;
}
!
! // Parse switches with parseArgs:
!
! // parseArgs usage:
! // Arguments:
! // q - string from the search function
! // expectedSwitches - list or array of the expected switch values
! // expandSwitches - optional parameter [default = true] used to determine
! // if the switch shortcuts should be expanded (i.e. /f
becomes /foo)
! // Returns an object with these properties:
! // q - the input string with the switches removed
! // switches - array of objects with these two properties:
! // name: expanded name of the matched switch (i.e. foo as
in /foo:bar)
! // value: value of switch (i.e. bar as in /foo:bar)
! // switch_val - associative array with the switch name as the key with the
switch value
! // as the value. (i.e. switch_val["foo"] = "bar" as in
/foo:bar)
!
! document.ssdif.ssn.value = "";
! var args = parseArgs(q, "type, ssn");
! if ( args.switches.length > 0 )
! {
! switch( args.switches[0].name )
! {
! case "type":
! break;
! case "ssn":
! document.ssdif.ssn.value = args.switch_val["ssn"];
! break;
! default:
! break;
! } //end-switch
}
-
- // FORM variables for ssdif
- //document.ssdif.stat.value = "";
- document.ssdif.lastname.value = genealogy_parse_surname(args.q);
- //document.ssdif.nt.value = "";
- document.ssdif.firstname.value = genealogy_parse_givenname(args.q);
- //document.ssdif.middlename.value = "";
- //document.ssdif.ssn.value = "";
-
submitForm(ssdif);
}
--- 53,76 ----
return;
! var args = genealogy_parseArgs(q, "ssn, residence, benefit, issue");
! if (genealogy_hasArg(args, "ssn")) {
! document.ssdif.ssn.value = args.switch_val["ssn"].replace(/[^0-9]/g, "");
! } else {
! document.ssdif.ssn.value = "";
}
! if (genealogy_hasArg(args, "issue")) {
! document.ssdif.issue.value = args.switch_val["issue"];
! } else {
! document.ssdif.issue.value = "";
! }
!
! if (args.q.match(/^[0-9\-]{9,11}$/)) {
! document.ssdif.ssn.value = args.q.replace(/[^0-9]/g, "");
! document.ssdif.lastname.value = "";
! document.ssdif.firstname.value = "";
! } else {
! document.ssdif.lastname.value = genealogy_parse_surname(args.q);
! document.ssdif.firstname.value = genealogy_parse_givenname(args.q);
}
submitForm(ssdif);
}
Index: usgw.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/usgw.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** usgw.xml 27 Oct 2002 18:21:23 -0000 1.4
--- usgw.xml 5 Nov 2002 07:17:17 -0000 1.5
***************
*** 26,30 ****
var state_search_url = 'http://www.usgenweb.org/statelinks-table.html';
! var args = parseArgs(q, "map, table, list");
if (args.switches.length > 0) {
switch (args.switches[0].name) {
--- 26,30 ----
var state_search_url = 'http://www.usgenweb.org/statelinks-table.html';
! var args = genealogy_parseArgs(q, "map, table, list");
if (args.switches.length > 0) {
switch (args.switches[0].name) {
Index: wsmarr.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/genealogy/wsmarr.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** wsmarr.xml 27 Oct 2002 18:21:23 -0000 1.3
--- wsmarr.xml 5 Nov 2002 07:17:17 -0000 1.4
***************
*** 39,80 ****
return;
! var args = parseArgs(q, "all, bride, groom");
! if (args != null) {
! var do_groom = true;
! var do_bride = true;
! if (args.switches.length > 0) {
! do_groom = false;
! do_bride = false;
! for (var i=0; i < args.switches.length; i++) {
! switch (args.switches[i].name)
! {
! case "groom": do_groom = true; break;
! case "bride": do_bride = true; break;
! case "all":
! default:
! do_groom = true; do_bride = true; break;
! }
! }
! }
! if (args.q == "") {
! do_groom = false;
! do_bride = false;
! }
! if (!do_groom && !do_bride) {
! nullArgs("wsmarr", "?");
! return;
! }
! if (do_bride) {
! document.wsmarrbf.b_firstname.value =
genealogy_parse_givenname(args.q);
! document.wsmarrbf.b_lastname.value = genealogy_parse_surname(args.q);
! submitForm(wsmarrbf);
! }
! if (do_groom) {
! document.wsmarrgf.g_firstname.value =
genealogy_parse_givenname(args.q);
! document.wsmarrgf.g_lastname.value = genealogy_parse_surname(args.q);
! submitForm(wsmarrgf);
! }
}
-
}
]]></script>
--- 39,68 ----
return;
! var args = genealogy_parseArgs(q, "all, bride, groom");
! var groom_name = "";
! if (genealogy_hasArg(args, "groom")) {
! groom_name = args.switch_val["groom"];
! } else if (genealogy_hasArg(args, "all")) {
! groom_name = args.switch_val["all"];
! }
! var bride_name = "";
! if (genealogy_hasArg(args, "bride")) {
! bride_name = args.switch_val["bride"];
! } else if (genealogy_hasArg(args, "all")) {
! bride_name = args.switch_val["all"];
! }
! if (bride_name != "") {
! document.wsmarrbf.b_firstname.value = genealogy_parse_givenname(bride_name);
! document.wsmarrbf.b_lastname.value = genealogy_parse_surname(bride_name);
! submitForm(wsmarrbf);
! }
! if (groom_name != "") {
! document.wsmarrgf.g_firstname.value = genealogy_parse_givenname(groom_name);
! document.wsmarrgf.g_lastname.value = genealogy_parse_surname(groom_name);
! submitForm(wsmarrgf);
! }
! if (groom_name == "" && bride_name == "") {
! nullArgs("wsmarr", "?");
}
}
]]></script>
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/