From 054b3b3dabae665ff43041a1750b5b5eac26111b Mon Sep 17 00:00:00 2001 From: frederik Date: Sun, 13 Apr 2025 13:31:37 +0200 Subject: [PATCH] consolidate Include/Exclude/Whitelist --- .gitignore | 1 + homepage/static/dark-style.css | 10 +-- homepage/style.css | 10 +-- scripts/exclude_list.php | 104 --------------------------- scripts/include_list.php | 108 ---------------------------- scripts/species_list.php | 125 +++++++++++++++++++++++++++++++++ scripts/whitelist_list.php | 105 --------------------------- 7 files changed, 130 insertions(+), 333 deletions(-) delete mode 100644 scripts/exclude_list.php delete mode 100644 scripts/include_list.php create mode 100644 scripts/species_list.php delete mode 100644 scripts/whitelist_list.php diff --git a/.gitignore b/.gitignore index 87eb498..b6a8d5a 100644 --- a/.gitignore +++ b/.gitignore @@ -44,4 +44,5 @@ exclude_species_list.txt firstrun.ini HUMAN.txt include_species_list.txt +whitelist_species_list.txt /nbproject/private/ diff --git a/homepage/static/dark-style.css b/homepage/static/dark-style.css index 1395d6b..997d2e3 100644 --- a/homepage/static/dark-style.css +++ b/homepage/static/dark-style.css @@ -404,12 +404,6 @@ button:hover { height: 80%; } -.column4 { - text-align: justify; - width: 10%; - height: 50%; -} - .column1 form,.column3 form { width: 80%; margin-left: auto; @@ -502,7 +496,7 @@ button:hover { } @media screen and (max-width: 1290px) { - .column1,.column2,.column3,.column4 { + .column1,.column2,.column3 { height: 90% } .center-column { @@ -542,7 +536,7 @@ button:hover { background-color: #333; /* dark background */ color: #fff; /* white text */ } - .column2,.column4 { + .column2 { display: none; } .smaller{ diff --git a/homepage/style.css b/homepage/style.css index 81ba76a..89d629e 100644 --- a/homepage/style.css +++ b/homepage/style.css @@ -384,12 +384,6 @@ button:hover { height: 80%; } -.column4 { - text-align: justify; - width: 10%; - height: 50%; -} - .column1 form,.column3 form { width: 80%; margin-left: auto; @@ -477,7 +471,7 @@ button:hover { } @media screen and (max-width: 1290px) { - .column1,.column2,.column3,.column4 { + .column1,.column2,.column3 { height: 90% } .center-column { @@ -514,7 +508,7 @@ button:hover { .column1 select,.column3 select { height: 70%; } - .column2,.column4 { + .column2 { display: none; } .smaller{ diff --git a/scripts/exclude_list.php b/scripts/exclude_list.php deleted file mode 100644 index 310b351..0000000 --- a/scripts/exclude_list.php +++ /dev/null @@ -1,104 +0,0 @@ - - - -
-
-

All Species Labels

- -
- Once the desired species has been highlighted, click it and then click ADD to have it excluded. - - -
-
- -
-
- -
-
- -

- -
-
- -
-
-

Excluded Species List

-


- - -
-
- -
-
- - diff --git a/scripts/include_list.php b/scripts/include_list.php deleted file mode 100644 index fd48ed6..0000000 --- a/scripts/include_list.php +++ /dev/null @@ -1,108 +0,0 @@ - - - - - -
-
-
- -

Warning!
If this list contains ANY species, the system will ONLY recognize those species. Keep this list EMPTY unless you are ONLY interested in detecting specific species.

-
-
-

All Species Labels

- - - -
-
- -
-
- -
-
- -

- -
-
- -
-
-

Custom Species List

- - -
-
- -
-
- - diff --git a/scripts/species_list.php b/scripts/species_list.php new file mode 100644 index 0000000..18eed51 --- /dev/null +++ b/scripts/species_list.php @@ -0,0 +1,125 @@ +If this list contains ANY species, the system will ONLY recognize those species. Keep this list EMPTY unless you are ONLY interested in detecting specific species."; + $selectedfilename = './scripts/include_species_list.txt'; + } elseif ($species_list=="exclude") { + $title="Excluded"; + $message="Once the desired species has been highlighted, click it and then click ADD to have it excluded."; + $selectedfilename = './scripts/exclude_species_list.txt'; + } elseif ($species_list=="whitelist") { + $title="Whitelisted"; + $message="Once the desired species has been highlighted, click it and then click ADD to have it whitelisted. This species will be detected even if below the Species Occurrence Frequency Threshold defined in the settings.
This is not a recommended way of working : it is preferable to first try first both Species Occurrence models (v1 and v2.4)."; + $selectedfilename = './scripts/whitelist_species_list.txt'; + } + + + if (file_exists($selectedfilename)) { + $eachselected = file($selectedfilename, FILE_IGNORE_NEW_LINES); + } + else { + $eachselected = []; + } + $filename = './scripts/labels.txt'; + $eachlabel = file($filename, FILE_IGNORE_NEW_LINES); +?> + + + + +
+ +
+ +
+
+

All Species Labels

+ + + +
+
+ +
+
+ +
+
+ +

+ +
+
+ +
+
+

Species List

+ + + +
+
+ +
+
+ + diff --git a/scripts/whitelist_list.php b/scripts/whitelist_list.php deleted file mode 100644 index 90fa0a7..0000000 --- a/scripts/whitelist_list.php +++ /dev/null @@ -1,105 +0,0 @@ - - - -
-
-

All Species Labels

- -
- Once the desired species has been highlighted, click it and then click ADD to have it whitelisted. This species will be detected even if below the Species Occurrence Frequency Threshold defined in the settings. - This is not a recommended way of working : it is preferable to first try first both Species Occurrence models (v1 and v2.4). - - -
-
- -
-
- -
-
- -

- -
-
- -
-
-

Whitelisted Species List

-


- - -
-
- -
-
- -