Open mhk33 opened 1 year ago
@sarah-cul It looks like the Mann website search box is searching the newcatalog.library.cornell.edu domain instead of catalog.library.cornell.edu. Can this be easily changed? Would it need to be updated in the central theme and then pushed out to all the units?
Also, ideally content editors should check if they have links to the newcatalog in the content and update them. A quick search for "catalog" on the Mann site and I found a couple of pages such as: https://mann.library.cornell.edu/print-collections https://mann.library.cornell.edu/cornell-agritech
Would it be best to email stakeholders directly and ask them to change the links? Although we have redirects, we probably want to change the URLs if possible.
@mhk33 You are correct, I just found a search.js inside the culu theme that is pointing to newcatalog.library.cornell.edu. Ill make that update for the theme and it can be included in the next upstream effort. thanks for finding that!
As far as content, that would be good to let content owners know, but I'm wondering in the past when our group transitioned to use "newcatalog" was that effort made by us? If so, maybe I should be the one to clean it up?
@sarah-cul I updated the links on the main site, but it was mostly because it was just one site and relatively easy for me to do. If you want to do this on the units, I can try to help if we divvy them up. I can understand how that might be easier, overall, than communicating with and waiting for stakeholders to do it themselves.
I think it was relayed to librarians to update their guide links, too, but I have doubts that people did that with older guides.
@mhk33 This might take some time. there are also bit.ly links that refer to newcatalog:
Those will need to be replaced with new bit.ly links, or just replaced? Not sure why they are necessary.
I can keep a checklist on this issue, and just try to tackle the sites when possible.
Checklist for ULS:
@sarah-cul No idea about the bit.ly links, I wonder who made them. Perhaps a previous developer? Good catch. I'm not sure why we need them either.
Let me know if you want me to help with updating content links!
while going through the sites, I'm checking code snippets and posts by running a terminus command
terminus remote:wp uls-site.live -- wp db query SELECT ID, post_title FROM wp_posts WHERE post_content LIKE '%newcatalog.library%' AND post_status like 'publish'
I'm on Asia, there are 100+ instances in the custom post loops like books. Looking into an easy search replace.
@mhk33 made some progress this past sprint on these, more than halfway through now!
And change to catalog domain as needed