From 5c84220bd37aa3480602ff0020247c55784d8bab Mon Sep 17 00:00:00 2001
From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com>
Date: Thu, 6 Nov 2025 08:43:35 +0100
Subject: [PATCH] [Advanced Logbook] Added continent fix and distance fix
---
application/controllers/Logbookadvanced.php | 4 +
.../views/logbookadvanced/continentdialog.php | 5 +
application/views/logbookadvanced/help.php | 38 +++---
application/views/logbookadvanced/index.php | 64 ++++++---
assets/js/sections/logbookadvanced.js | 122 ++++++++++++------
5 files changed, 156 insertions(+), 77 deletions(-)
create mode 100644 application/views/logbookadvanced/continentdialog.php
diff --git a/application/controllers/Logbookadvanced.php b/application/controllers/Logbookadvanced.php
index 6a2f2c2bc..e2a297964 100644
--- a/application/controllers/Logbookadvanced.php
+++ b/application/controllers/Logbookadvanced.php
@@ -713,6 +713,10 @@ class Logbookadvanced extends CI_Controller {
$this->load->view('logbookadvanced/help');
}
+ public function continentDialog() {
+ $this->load->view('logbookadvanced/continentdialog');
+ }
+
public function fixCqZones() {
if(!clubaccess_check(9)) return;
diff --git a/application/views/logbookadvanced/continentdialog.php b/application/views/logbookadvanced/continentdialog.php
new file mode 100644
index 000000000..9618a4791
--- /dev/null
+++ b/application/views/logbookadvanced/continentdialog.php
@@ -0,0 +1,5 @@
+
+ Update all QSOs with the continent based on the DXCC country of the QSO.
+ This is useful if you have imported QSOs without continent information.
+ Update will only set the continent for QSOs where the continent is empty or invalid (not AF, AN, AS, EU, NA, OC or SA).
+
diff --git a/application/views/logbookadvanced/help.php b/application/views/logbookadvanced/help.php
index 2a51f0c57..2a54b6ae9 100644
--- a/application/views/logbookadvanced/help.php
+++ b/application/views/logbookadvanced/help.php
@@ -1,18 +1,20 @@
-= __("In the text input searches, you can search in the following way:"); ?>
-= __("* - means search for everything."); ?>
-= __("Remove star and leave blank, means to search where column is empty."); ?>
-= __("!empty - means to search where column is not empty."); ?>
-
-= __("The dupe search checks for duplicate QSOs with the same callsign, mode, submode, station callsign, band and satellite within 1500 seconds."); ?>
-
-= __("The invalid search checks for the following conditions:"); ?>
-= __("Mode is blank or set to 0."); ?>
-= __("Band is blank."); ?>
-= __("Callsign is blank."); ?>
-= __("Time and date is not set."); ?>
-= __("Date is set to 1970-01-01."); ?>
-= __("Continent different from AF, AN, AS, EU, NA, OC or SA."); ?>
-
-= __("The map uses the same search criteria as the normal search. All QSOs in the search result will be mapped, unless you have checked one or more QSOs."); ?>
-
-= __("The ADIF export uses the same search criteria as the normal search. All QSOs will be exported (all for selected location), unless you have checked one or more QSOs."); ?>
+
+ = __("In the text input searches, you can search in the following way:"); ?>
+
= __("* - means search for everything."); ?>
+ = __("Remove star and leave blank, means to search where column is empty."); ?>
+ = __("!empty - means to search where column is not empty."); ?>
+
+ = __("The dupe search checks for duplicate QSOs with the same callsign, mode, submode, station callsign, band and satellite within 1500 seconds."); ?>
+
+ = __("The invalid search checks for the following conditions:"); ?>
+ = __("Mode is blank or set to 0."); ?>
+ = __("Band is blank."); ?>
+ = __("Callsign is blank."); ?>
+ = __("Time and date is not set."); ?>
+ = __("Date is set to 1970-01-01."); ?>
+ = __("Continent different from AF, AN, AS, EU, NA, OC or SA."); ?>
+
+ = __("The map uses the same search criteria as the normal search. All QSOs in the search result will be mapped, unless you have checked one or more QSOs."); ?>
+
+ = __("The ADIF export uses the same search criteria as the normal search. All QSOs will be exported (all for selected location), unless you have checked one or more QSOs."); ?>
+
diff --git a/application/views/logbookadvanced/index.php b/application/views/logbookadvanced/index.php
index c314bfed2..49c21ed42 100644
--- a/application/views/logbookadvanced/index.php
+++ b/application/views/logbookadvanced/index.php
@@ -1,28 +1,56 @@