Conversation
|
First off Shaun - this is super awesome!!!!! Now, to be picky...I searched for "digital" and I got back a weird result: Edited: Add a commit that filters the search to only posts from 2016. |
|
I think trying to go back to search results after you have followed one doesn't work great, but I also don't think that is a huge problem. Just having native search on a static site is more than I expected. |
|
Ah, yes, I was thinking about how to deal with the search results since it is not a page. I think we can deal with that in the next iteration (full-text!). As for the weird search result, yes, I will only index items from the current year before merging this. Thank you for giving it a spin! |
|
Sounds good. And just to be clear, the commit I added already limits indexing to items from 2016. |
|
@sdellis This is incredibly awesome!!! I'll have time to take a closer look tonight. But today I'm swamped with meetings. For the speaker issue, the quick fix is to combine what's left in speakers_temp.yml and speakers_dummy.yml into speakers final. speakers_temp is the list of workshop leaders that did not give bios. However, when combined, these speakers will show up on the speakers page. To counteract this, we'll need to put in another bit variable. It might be best to continue to work on the master speaker Sheet, which I just shared with you two. I.e., go through speakers_dummy, and speakers_temp, adding entries into the Sheet and setting the last column (show) to 0. I'll get to this tonight, add the logic on the speakers page and reimport a final list. Additionally, you could probably delete all the past keynote _posts, as they a no longer anywhere on the site. |
|
Wow, you guys are on it! 👍 Since @bibliotechy added a fix to only index the 2016 talks, I think we can leave those older ones in there for now. I would like to pass this off to next year's web committee with as many content options as possible. @queryluke thank you for the explanation of what needs to happen. That sounds good, and I will wait until you have a chance to tweak it tonight before doing anything further. |
speakers_final.yml - final list of all speakers removes - speakers_dummy.ml - speakers_temp.ml layouts/presentation.html - cleans up speaker display. Now only need to parse one file (speakers_final), and IF speaker.Show == 1 then link to the speaker page. Otherwise they don’t have a bio and no link speakers.html - adds logic to only display speakers with Show == 1 updated islandora presentations to include Erin Tripp, as she was previously on the wrong workshop
search_data.json now uses the speaker data file
|
@sdellis @bibliotechy Ok, my changes are made if you want to check them. I ran through 10 random searches and all speakers are showing up. I had to adjust the search_data.json file creation a bit to point at the speaker_final.yml file. To get it to format correctly (i.e., appropriately placed commas) was a bit fugly on the code side of things. There may be a better way to do it, but it was what I could come up with quickly. |
@queryluke or @bibliotechy (or anyone) want to test it and do a merge?
Currently indexes on Title, Speakers-Text, and Type fields. Full-text search is a work in progress. I added the transcripts in the "talks" folder, but did not have the time to slice them up and add them to the _posts yet for indexing.
One thing stumped me:
Some _posts did not have a speakers-text value. Is there an easy way to get that value in there, or was that done by hand?