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

Advanced search layout #173

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

muildrik
Copy link
Collaborator

No description provided.

.gitignore Outdated Show resolved Hide resolved
.vscode/launch.json Outdated Show resolved Hide resolved
.vscode/settings.json Outdated Show resolved Hide resolved
offline_scripts/elasticsearch_delete_index.sh Outdated Show resolved Hide resolved
offline_scripts/elasticsearch_iiif_delete_index.sh Outdated Show resolved Hide resolved
offline_scripts/elasticsearch_iiif_setup.sh Outdated Show resolved Hide resolved
offline_scripts/elasticsearch_setup.sh Outdated Show resolved Hide resolved
Copy link
Collaborator Author

@muildrik muildrik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a few files and moving on to MET--will have a branch ready for that soon. What works best for you guys to surface new fields? Also, advanced search by date range requires a field entrydate_ms; I've written a script to convert dates in entrydate fields to milliseconds for that function to work. Would you want to run that locally or do you have another way?

@rsinghal rsinghal self-requested a review November 4, 2021 15:20
Copy link
Contributor

@rsinghal rsinghal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a list of all changes and new features to the description of this PR. Due to the sheer number of changes in this PR, we may need to set up a time to do a code review.

Copy link
Collaborator Author

@muildrik muildrik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Removed flags and added other files to .gitignore.
  • views_utils.py has MET dictionary and is therefore stupidly long;
  • search.html has new HTML markup for advanced search, nothing special there.
  • rewritten a few functions in giza.js, but functionality exactly the same (basically only changed a few function calls to modern standards)
  • search_tags.py: two functions that are part of MET and don't do anything yet--may well disappear in future commits
  • views.py: rewritten functions, added functions to convert entrydate text string to milliseconds for querying; added small subroutine for querying ES to look for milliseconds if request is entrydate field

offline_scripts/elasticsearch_setup.sh Outdated Show resolved Hide resolved
offline_scripts/elasticsearch_iiif_setup.sh Outdated Show resolved Hide resolved
offline_scripts/elasticsearch_iiif_delete_index.sh Outdated Show resolved Hide resolved
offline_scripts/elasticsearch_delete_index.sh Outdated Show resolved Hide resolved
@muildrik muildrik requested a review from rsinghal November 5, 2021 20:10
This was only a backup file I used as I was modifying searchresults.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants