pawsnewengland / pawsne

The PAWS New England Website
http://www.pawsnewengland.com
MIT License
1 stars 0 forks source link

Description loses formatting for individual pets #20

Closed cferdinandi closed 10 years ago

cferdinandi commented 10 years ago

Petfinder

screen shot 2013-10-31 at 9 58 28 am

PAWS New England

screen shot 2013-10-31 at 9 58 38 am

cferdinandi commented 10 years ago

Identified cause: While shelter.getPets pulls a description with markup included, pet.get for individual pet records pulls the description without any markup (including paragraphs, line breaks, link elements, etc.).

Next Steps: I have an email in to the Petfinder API team to understand why this difference in API calls exists. If they can't or won't adjust it on their end, I'll need to loop through all dogs in the shelter.getPets call and just display data for the one who's ID matches. This involves far more work for the server and less than ideal, but is the only way to consistently and programmatically get pet descriptions with formatting.

cferdinandi commented 10 years ago

Implemented a temporary fix by looping through the full shelter.getPets list and just displaying data for the pet who's data is being requested. Obviously, this is a very inefficient way to use the API.

A ticket has been raised with Petfinder. Still waiting on a proper resolution.

cferdinandi commented 10 years ago

Fixed with version 4.19