Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended search #382

Merged
merged 32 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d514e1a
extended search added
litvinovg Apr 18, 2023
59397de
autocreate dateRange solr dynamic field on startup
litvinovg Apr 18, 2023
4cb38a6
removed duplicate line
litvinovg Apr 24, 2023
997a140
cleanup: removed unused code, imports, comments
litvinovg Apr 24, 2023
e9b593c
Use standard search template
litvinovg Apr 26, 2023
64869a0
fix: catch exception and log instead of showing on search results page
litvinovg Apr 28, 2023
17763f1
fix: bug that prevented from selecting multiple facets from the same …
litvinovg May 3, 2023
1379f71
reuse search:public data property to configure know values public vis…
litvinovg Jun 21, 2023
4b05a1b
chore: formatting fixes to match checkstyle rules
litvinovg Aug 28, 2023
4dc1550
fix: fixed translation prefix
litvinovg Aug 28, 2023
96d358d
use extendedsearch for search results export
litvinovg Aug 29, 2023
693bd56
removed search:Statement from search ontology
litvinovg Sep 6, 2023
d551f3f
added search config
litvinovg Sep 6, 2023
d89e559
added PublicParameter class
litvinovg Sep 7, 2023
f9446e8
reordered classes
litvinovg Sep 7, 2023
e25d3d8
fix for date slider
litvinovg Sep 8, 2023
989ff4c
replaced PagedSearchController with ExtendedSearchController
litvinovg Sep 8, 2023
9eb48cb
fix: added safety check
litvinovg Sep 8, 2023
f6f9058
removed old code from PageSearchController
litvinovg Sep 8, 2023
f091c05
refact: clean up
litvinovg Sep 8, 2023
4699abc
refact: clean up
litvinovg Sep 8, 2023
8dfbb97
fixed classgroup filter
litvinovg Sep 8, 2023
b5dbb7e
added default search settings
litvinovg Sep 15, 2023
f2e124f
fixes
litvinovg Sep 15, 2023
ce5b3cc
fixed style
litvinovg Sep 17, 2023
88222e2
fixed search ontology label
litvinovg Sep 25, 2023
3ccd4a1
chore: removed comments, identation, renamed search labels n3
litvinovg Sep 29, 2023
c869ec8
moved search configurations to display model
litvinovg Sep 29, 2023
a424425
fixed classgroup (category) default filter
litvinovg Sep 29, 2023
e94cef8
fix: requested documents number to download search results in xml/csv
litvinovg Sep 29, 2023
c5d86df
removed class group as search configuration was moved into display model
litvinovg Sep 29, 2023
050b565
fixes for mistakes found in PR review
litvinovg Nov 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,6 @@ public class VitroSearchTermNames {
/** Multilingual label field suffix */
public static final String LABEL_DISPLAY_SUFFIX = "_label_display";

/** Date range field suffix */
public static final String DATE_RANGE_SUFFIX = "_drsim";
chenejac marked this conversation as resolved.
Show resolved Hide resolved
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
package edu.cornell.mannlib.vitro.webapp.search.controller;

import org.apache.jena.rdf.model.RDFNode;

public class FilterValue {

private String id;
private String name = "";
private int order;

private long count;

private boolean selected = false;

private boolean defaultPublic;

private boolean publiclyAvailable = true;

public boolean isPubliclyAvailable() {
return publiclyAvailable;
}

public void setPubliclyAvailable(RDFNode rdfNode) {
if (rdfNode != null && rdfNode.isLiteral()) {
publiclyAvailable = rdfNode.asLiteral().getBoolean();
} else {
publiclyAvailable = false;
}
}

public FilterValue(String id) {
this.id = id;
}

public boolean isDefaultPublic() {
return defaultPublic;
}

public String getName() {
return name;
}

public void setName(String label) {
this.name = label;
}

public void setName(RDFNode rdfNode) {
if (rdfNode != null) {
name = rdfNode.asLiteral().getLexicalForm();
}
}

public Integer getOrder() {
return order;
}

public void setOrder(RDFNode rdfNode) {
if (rdfNode != null) {
order = rdfNode.asLiteral().getInt();
}
}

public String getId() {
return id;
}

public void setCount(long count) {
this.count = count;
}

public long getCount() {
return count;
}

public void setSelected(boolean value) {
this.selected = value;
}

public boolean getSelected() {
return selected;
}

public void setDefaultPublic(boolean b) {
defaultPublic = b;
}
}
Loading
Loading