ObjectiveSubject / ccl

1 stars 0 forks source link

Search Box block type #60

Closed Jessdwilson closed 6 years ago

Jessdwilson commented 6 years ago

Will need the ability to add a search box (not live search) to the main content area of special collections page, and potentially other pages.

kpettinga commented 6 years ago

I added a search box block type. @davekellam in light of talking about scoped search boxes, we should provide them options to apply scope to a search box (to only search collections, for instance). I'll let you implement additional options fields for that on the search box block type.

davekellam commented 6 years ago

Adding a supplemental search engine is slightly more involved (required search/results templates), so we can't really add anything to the block until we know the name(s) of any additional SearchWP engines.

kpettinga commented 6 years ago

@davekellam I'm a little confused. Would do we need (and from who) to move forward?

davekellam commented 6 years ago

We have the search box block in place. I think we either need a SearchWP supplemental search engine if want to search specific results within the site. It might just be that we need a different list of parameters for the "IN" dropdown, which allows for specific results on the WorldCat search. @gabrielo-cuc can you provide us with exactly what you want appearing there?

gabriel-ortiz commented 6 years ago

Hi @davekellam, so with regards to scoping to the website's search. Yes I think the vision is to have the website as one of the options in the "IN" location section. I imagine this might change the way you are are doing things, since the search URL is mostly constructed with WorldCat in mind. How difficult would it be to alter the search URL if a user wants to search the website? It would probably ignore what the user inputs for the "AS" parameter and modify the form action.

Let me know if I'm answering what you are asking.

davekellam commented 6 years ago

@gabrielo-cuc think I've had all sorts of wires crossed up, I have a tendency to over-complicate things.

So, we've added in a search box block, which should allow you to put a search box anywhere with or without the local live results. It is possible to do scoped searches for local search results by adding "supplemental search engines" to the SearchWP plugin. Adding one involves some template additions and tweaks. I was thinking that's what Kirk was asking for (me over-complicating).

The livesearch already includes posts and pages, but it should be possible to direct people to direct people to local search results (sort of how we had it initially). Could get a bit funky with the different form actions. It's easy enough to include a site-specific search box on a page though (i.e. a standard wp search box with or without supplemental search).

So, the question would be, does the search box block work for you for the special collections page, or do you need something more specific there?

gabriel-ortiz commented 6 years ago

@davekellam Ah I'm on board now.. So basically, we are talking about whether to make a custom searchbox specific to Special Collections, or reuse the searchbox block that we currently have.... Ideally, I think special collections would like to have a search box dedicated exclusively to them. Maybe we can modify the searchbox to give us the ability to select only one search location. Or maybe a shortcode for a single search location.

I think a lot of this depends on the time constraints that we are working with now. How much time would this take? Your time is very valuable, so I think your input on the workload at this point will help us determine which way to go. If we can't create a simple search box right now, then it should be easy for me to make one for the next phase of the website.

davekellam commented 6 years ago

I don't think anything is particularly involved (beyond supplemental search templates), really we just need to know what you want. A custom search box is cool.

gabriel-ortiz commented 6 years ago

Right on @davekellam. So I have some answers for you. But I'll only be able to speak from my experience as a librarian. In other words, I hope that everyone will be happy, but 99% of what I will suggest is not controversial at all:

I'm here to help with pretty much anything, Lemme know what you need, and we could potentially schedule a phone call if that will be useful. Thanks so much