dougwalkerlive / CrosswayKnoxvilleTools

Some li'l tools for maintaining CrosswayKnoxville.org's web site.
1 stars 0 forks source link

Need to remove the Scripture Reference from the sermon titles #1

Open dougwalkerlive opened 6 years ago

dougwalkerlive commented 6 years ago

As a part of cleaning up the sermon data, I think we should remove the Scripture references from the sermon titles. We could do this by checking if the Text field has a value. If it does, check the Title to see if it starts with the same text that's in the Text field. If so, remove it. We'd also want to remove any punctuation between the reference and the actual title.

"James 3:13-18 - How to Recognize True Wisdom" would become "How to Recognize True Wisdom"

aarograh commented 6 years ago

I agree. I'll add this to the python script. It should be pretty easy to just look for a scripture reference and then remove everything from that to the first alphabetic character.

I believe there are a few that have only a Scripture reference as their title. I think most of Philip's Nehemiah series is that way, and some of Brian's John series is that way for days he didn't give a clear title. For now, I'll just protect those ones by using the original title if the result of the processing is an empty title, but we should make a decision on whether that's the final behavior we want or not.