MY_CNTY and MY_STATE support for ADIF export RDA data

pull/3199/head
Peter Goodhall 2024-09-30 18:50:52 +01:00 zatwierdzone przez GitHub
commit 9046f1414a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 25 dodań i 4 usunięć

Wyświetl plik

@ -212,14 +212,36 @@ class AdifHelper {
$line .= $this->getAdifFieldLine("APP_CLOUDLOG_MY_WAB", $qso->station_wab);
$line .= $this->getAdifFieldLine("MY_ITU_ZONE", $qso->station_itu);
if($qso->state) {
if($qso->state) {
$line .= $this->getAdifFieldLine("MY_STATE", $qso->state);
}
if ($qso->station_cnty) {
switch ($qso->station_dxcc) {
case '291':
case '6':
case '110':
$county = trim($qso->state) . "," . trim($qso->station_cnty);
} else {
$county = trim($qso->station_cnty);
break;
case '54':
case '15':
case '61':
case '126':
case '151':
$county = trim($qso->station_cnty);
break;
default:
$county = trim($qso->station_cnty);
}
} else {
$county = '';
}
$line .= $this->getAdifFieldLine("MY_CNTY", $county);
$line .= $this->getAdifFieldLine("WWFF_REF", $qso->{'COL_WWFF_REF'});
$line .= $this->getAdifFieldLine("MY_WWFF_REF", $qso->station_wwff);
@ -259,7 +281,6 @@ class AdifHelper {
MY_NAME
MY_POSTAL_CODE
MY_RIG
MY_STATE
MY_STREET
MY_USACA_COUNTIES
*/