Diocese of Scranton

Find a Parish search by city is not working as desired. Find a Mass is working as desired.

Assigned to
Ryan Ross, Developer at Diocesan Ryan R.
Notes
For example, select Pittston from the list of cities in Find a Parish.  It does not bring back any of the parishes located in Pittston.

Comments & Events

Ryan Ross, Developer at Diocesan
This was indeed an issue, although not exactly how it was perceived.

The initial search was working as intended, even for Pittston.  The problem was that the latitude and longitude were set, and overriding the new City, and effectively re-running the search using the previous location.  

In your example, when you selected Pittston, it was almost certainly the second search iteration, and you saw results from your first search.

That issue has been resolved.
Ryan Ross, Developer at Diocesan
Ryan Ross completed this to-do.
Connie Wisdo
Ryan,

I actually think this was a problem with some of the zip codes stored in the database. I tried the search again, and it still didn’t return the Pittston parish (Saint Joseph Marello). I edited the zip code for that parish in the DPI module (basically deleted it, and re-entered the same zip, 18640), tried the search again, and it worked perfectly.

Similarly, I tried Plains as the city (after I cleared the first search) and the results set didn’t contain Saints Peter & Paul Parish in Plains. I edited the zip code for the parish (deleted and re-entered 18705), then cleared and re-tried the search with Plains, and it worked fine.

I’m wondering if something happened on the import from the csv file? I’ll try a few more in the “P’s” and see…

One small problem still exists, however… The Clear button does not clear out any zip code that’s been entered. (I tried 18705 as my search criteria, then hit clear, and it didn’t clear it out.) Can you please take a look at that?

Thank you!
Connie
Ryan Ross, Developer at Diocesan
Ahhh, yes indeed, there are a couple handfuls of parishes with no latitude/longitude defined in the database.  We use lat/lon for location based searches.  I should be able to sweep through those for you.  I'll also fix the zip-clear functionality.
Ryan Ross, Developer at Diocesan
Connie,

I combed through and updated all those that were missing lat/lon data.  Roughly 30% had zero for lat/lon.  With the data corrected now, I think you'll get the search results you expect.

Additionally, I fixed the Clear button so it will not only clear user input, but also previously defined values carried over from a search (ie the search term becomes the default value when showing results, and had to be handled separately) 
Connie Wisdo
Hi Ryan,

We seem to be having an issue with the lat/long on a parish:  Immaculate Heart of Mary Parish in Dushore, PA.  I tried my trick of deleting and then re-entering the zip code but it didn't seem to fix it.

Can you please take a look?  Thanks!
Ryan Ross, Developer at Diocesan
Looks like this boils down to a data issue of a different variety.  The lat/lng exist, but the problem here is that Google geocoded the lat/lng for a PO Box street address, and placed it right along Nay Aug Park in Scranton.

I found the pin on the Find A Parish map...

I double checked the Parish Profile spreadsheet to make sure I didn't copy the Mailing address field.  Turns out there was no mailing address field anyway, just an Address field where PO boxes were supplied for about a dozen churches.

We'll want to update these to physical addresses.  Simply updating them on the parish profile will be sufficient.
Connie Wisdo
Gotcha.  I've made our Parish Life office aware of the issue and asked them to update the data as soon as they can get a street address for this parish as well as any others who have P.O. boxes.

Thanks!