+19Jul99=======================================================================
+1. Added iota and qra clauses to sh/dx as well, these take optional arguments
+and will look for the appropriate strings.
17Jul99=======================================================================
1. Started database integration.
2. added qsl clause to sh/dx that searches for qsl or via in the dx info
spotter <call> - any spots spotted by <call>
qsl - this automatically looks for any qsl info on the call
- held in the database.
+ held in the spot database.
+
+iota [<iota>] - If the iota island number is missing it will look for
+ the string iota and anything which looks like an iota
+ island number. If you specify then it will look for
+ that island.
+
+qra [<locator>] - this will look for the specific locator if you specify
+ one or else anything that looks like a locator.
e.g.
SH/DX on 20m info iota
SH/DX 9a on vhf day 30
SH/DX rf1p qsl
+ SH/DX iota
+ SH/DX iota eu-064
+ SH/DX qra jn86
=== 0^SHOW/DXCC <prefix>^Interrogate the spot database by country
This command takes the <prefix> (which can be a full or partial
my $spotter;
my $info;
my $expr;
-my $doqsl;
+my ($doqsl, $doiota, $doqra);
while ($f = shift @list) { # next field
# print "f: $f list: ", join(',', @list), "\n";
$doqsl = 1;
next;
}
+ if (lc $f eq 'iota') {
+ my ($a, $b);
+# $DB::single =1;
+
+ if (($a, $b) = $list[0] =~ /(AF|AN|NA|SA|EU|AS|OC)-?(\d\d\d)/oi) {
+ $a = uc $a;
+ $doiota = "\\b$a\[\-\ \]\?$b\\b";
+ shift @list;
+ }
+ $doiota = '\b(IOTA|(AF|AN|NA|SA|EU|AS|OC)[- ]?\d\d\d)\b' unless $doiota;
+ next;
+ }
+ if (lc $f eq 'qra') {
+ $doqra = uc shift @list if $list[0] =~ /[A-Z][A-Z]\d\d/oi;
+ $doqra = '\b([A-Z][A-Z]\d\d|[A-Z][A-Z]\d\d[A-Z][A-Z])\b' unless $doqra;
+ next;
+ }
if (!$pre) {
$pre = uc $f;
}
$expr .= "\$f3 =~ m{(QSL|VIA)}io";
}
+# iota requests
+if ($doiota) {
+ $expr .= " && " if $expr;
+ $expr .= "\$f3 =~ m{$doiota}io";
+}
+
+# iota requests
+if ($doqra) {
+ $expr .= " && " if $expr;
+ $expr .= "\$f3 =~ m{$doqra}io";
+}
+
#print "expr: $expr from: $from to: $to fromday: $fromday today: $today\n";
# now do the search