Skip to content

Commit 82c0d8f

Browse files
author
synapticloop
committed
start of bugfix and minor updates to 1.1.0 branch
1 parent 1a29af6 commit 82c0d8f

File tree

7 files changed

+116
-37
lines changed

7 files changed

+116
-37
lines changed

README.md

+21-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
2727
```
2828

29-
`Build and test 'main' branch:` [![CircleCI](https://dl.circleci.com/status-badge/img/circleci/3Y1eqqe4mcvtSZuzJnQ3tJ/DyFKUm7c7AoLa1wHmRjAnf/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/circleci/3Y1eqqe4mcvtSZuzJnQ3tJ/DyFKUm7c7AoLa1wHmRjAnf/tree/main)
29+
`Build and test 'main' branch:` [![CircleCI](https://dl.circleci.com/status-badge/img/circleci/3Y1eqqe4mcvtSZuzJnQ3tJ/DyFKUm7c7AoLa1wHmRjAnf/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/circleci/3Y1eqqe4mcvtSZuzJnQ3tJ/DyFKUm7c7AoLa1wHmRjAnf/tree/main) (courtesy of Circle-CI)
3030

3131
`Latest release tag:` ![GitHub Tag](https://img.shields.io/github/v/tag/synapticloop/panl)
3232

@@ -212,8 +212,16 @@ version
212212
**A Note On Running The Commands**
213213

214214
*These are the commands for either Microsoft Windows or *NIX operating systems
215-
(Linux/Apple Macintosh). Should there be any errors - see the ‘Getting Started’ section for a more in-depth explanation and approach.***
215+
(Linux/Apple Macintosh). Should there be any errors - see the ‘Getting Started’ section for a more in-depth explanation and approach.**
216216

217+
---
218+
219+
> **WARNING:** The Solr Release version `9.7.0` has changed the options for creating a new example cloud.
220+
> The command line option has changed from `-noprompt` to `--no-prompt`
221+
222+
> All other commands remain the same
223+
224+
---
217225

218226
```
219227
**IMPORTANT**: You will need to replace the
@@ -331,6 +339,11 @@ Choose a collection/fieldset and search, facet, sort, paginate and view the resu
331339

332340
## Starting up the example cloud
333341

342+
> **WARNING:** The Solr Release version `9.7.0` has changed the options for starting a new example cloud.
343+
> The command line option has changed from `-cloud` to `--cloud`
344+
345+
> All other commands remain the same - For versions greater than `9.7.0` they have re-added the `-cloud` option
346+
334347
If you have stopped the example Solr server, starting it up:
335348

336349
### _Windows_
@@ -373,7 +386,12 @@ with the release files named `solr-panl-9-x.x.x`
373386

374387
# Version History
375388

376-
## 1.2.0 - more like this (codename `needy-phanton`) **UNDER DEVELOPEMENT**
389+
## 1.2.0 - more like this (codename `needy-phanton`) **UNDER DEVELOPMENT**
390+
391+
## 1.1.1 - the better update (codename `grizzled-pebble`)
392+
393+
- Bug fixes
394+
- Fixed 'OR' facet `before` and `after` URL values
377395

378396
## 1.1.0 - the better update (codename `broad-firefly`)
379397

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
panl.version=1.2.0
1+
panl.version=1.1.1
22
panl.solr.version=9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/*
2+
* Copyright (c) 2008-2024 synapticloop.
3+
*
4+
* https://github.com/synapticloop/panl
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to
8+
* deal in the Software without restriction, including without limitation the
9+
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10+
* sell copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22+
* IN THE SOFTWARE.
23+
*/
24+
25+
package com.synapticloop.panl.editor;
26+
27+
import javax.swing.*;
28+
29+
public class Constants {
30+
public static final ImageIcon ICON_APP =
31+
new ImageIcon(PanlEditor.class.getResource("/webapp/static/favicon.png"));
32+
33+
34+
35+
public static final ImageIcon ICON_MOON =
36+
new ImageIcon(PanlEditor.class.getResource("/images/moon.png"));
37+
public static final ImageIcon ICON_SUN =
38+
new ImageIcon(PanlEditor.class.getResource("/images/sun.png"));
39+
40+
41+
42+
public static final ImageIcon ICON_FILE =
43+
new ImageIcon(PanlEditor.class.getResource("/images/file.png"));
44+
public static final ImageIcon ICON_FILE_WHITE =
45+
new ImageIcon(PanlEditor.class.getResource("/images/file-white.png"));
46+
47+
public static final ImageIcon ICON_SAVE =
48+
new ImageIcon(PanlEditor.class.getResource("/images/save.png"));
49+
public static final ImageIcon ICON_SAVE_WHITE =
50+
new ImageIcon(PanlEditor.class.getResource("/images/save-white.png"));
51+
52+
public static final ImageIcon ICON_QUIT =
53+
new ImageIcon(PanlEditor.class.getResource("/images/quit.png"));
54+
public static final ImageIcon ICON_QUIT_WHITE =
55+
new ImageIcon(PanlEditor.class.getResource("/images/quit-white.png"));
56+
57+
public static final ImageIcon ICON_RECENT =
58+
new ImageIcon(PanlEditor.class.getResource("/images/clock.png"));
59+
public static final ImageIcon ICON_RECENT_WHITE =
60+
new ImageIcon(PanlEditor.class.getResource("/images/clock-white.png"));
61+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (c) 2008-2024 synapticloop.
3+
*
4+
* https://github.com/synapticloop/panl
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to
8+
* deal in the Software without restriction, including without limitation the
9+
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10+
* sell copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22+
* IN THE SOFTWARE.
23+
*/
24+
25+
package com.synapticloop.panl.editor;
26+
27+
public class NewProject {
28+
}

src/main/java/com/synapticloop/panl/editor/PanlEditor.java

+3-31
Original file line numberDiff line numberDiff line change
@@ -34,38 +34,9 @@
3434
import java.awt.*;
3535
import java.io.File;
3636

37-
public class PanlEditor {
38-
private static final ImageIcon ICON_APP =
39-
new ImageIcon(PanlEditor.class.getResource("/webapp/static/favicon.png"));
40-
41-
42-
43-
private static final ImageIcon ICON_MOON =
44-
new ImageIcon(PanlEditor.class.getResource("/images/moon.png"));
45-
private static final ImageIcon ICON_SUN =
46-
new ImageIcon(PanlEditor.class.getResource("/images/sun.png"));
47-
48-
37+
import static com.synapticloop.panl.editor.Constants.*;
4938

50-
private static final ImageIcon ICON_FILE =
51-
new ImageIcon(PanlEditor.class.getResource("/images/file.png"));
52-
private static final ImageIcon ICON_FILE_WHITE =
53-
new ImageIcon(PanlEditor.class.getResource("/images/file-white.png"));
54-
55-
private static final ImageIcon ICON_SAVE =
56-
new ImageIcon(PanlEditor.class.getResource("/images/save.png"));
57-
private static final ImageIcon ICON_SAVE_WHITE =
58-
new ImageIcon(PanlEditor.class.getResource("/images/save-white.png"));
59-
60-
private static final ImageIcon ICON_QUIT =
61-
new ImageIcon(PanlEditor.class.getResource("/images/quit.png"));
62-
private static final ImageIcon ICON_QUIT_WHITE =
63-
new ImageIcon(PanlEditor.class.getResource("/images/quit-white.png"));
64-
65-
private static final ImageIcon ICON_RECENT =
66-
new ImageIcon(PanlEditor.class.getResource("/images/clock.png"));
67-
private static final ImageIcon ICON_RECENT_WHITE =
68-
new ImageIcon(PanlEditor.class.getResource("/images/clock-white.png"));
39+
public class PanlEditor {
6940

7041
private boolean isDarkUI = false;
7142

@@ -78,6 +49,7 @@ public void show() {
7849
System.err.println("Failed to initialize Flat Look and Feel");
7950
}
8051

52+
8153
JFrame mainWindowFrame = new JFrame("Panl Configuration Editor");
8254
mainWindowFrame.setIconImage(ICON_APP.getImage());
8355

src/main/java/com/synapticloop/panl/server/handler/tokeniser/token/facet/DateRangeFacetLpseToken.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public DateRangeFacetLpseToken(
9898
"' (solr field '" +
9999
this.solrField +
100100
"') with parsed value '" +
101-
this.previousNext +
101+
this.previousNext.trim() +
102102
" " +
103103
value +
104104
" " +

src/main/java/com/synapticloop/panl/server/handler/tokeniser/token/facet/RangeFacetLpseToken.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public RangeFacetLpseToken(
192192
"') incoming value '" +
193193
this.originalValue +
194194
"', parsed value '" +
195-
(isRangeToken ? "RANGE(" + value +":" + toValue + ") " + (hasInfix ? "with" : "without") + " infix" : value) +
195+
("RANGE(" + value + ":" + toValue + ") " + (hasInfix ? "with" : "without") + " infix" ) +
196196
"'.");
197197
}
198198

0 commit comments

Comments
 (0)