Thank you for the help. If anyone can find time to reproduce this issue that I am facing in testing changes in translators and can let know how to make it work, it would be great. Following are the steps:
1) Get the updated translator code from this
PR.2) Overwrite TV by the numbers.js present at translation-server/modules/zotero/translators and save it.
3) Update the image and docker container and run the server with
./build.sh && docker run -p 1969:1969 -ti --rm -v `pwd`/build/app/:/opt/translation-server/app/ translation-server
4) Pass the query
curl -d '{"url":"http://tvbythenumbers.zap2it.com/daily-ratings/monday-final-ratings-july-3-2017/","sessionid":"abc123"}' \
--header "Content-Type: application/json" \
127.0.0.1:1969/web
5) Compare the translation output provided by server with the output generated by
Scaffold as provided (Since these test cases are generated through Scaffold) and notice the differences. The translation output on console I am receiving is:
[{"itemKey":"ILYUXUHT","itemVersion":0,"itemType":"blogPost","creators":[],"tags":[],
"title":"‘American Ninja Warrior’ adjusts up: Monday final ratings",
"date":"2017-07-06T19:14:36+00:00",
"url":"http://tvbythenumbers.zap2it.com/daily-ratings/monday-final-ratings-july-3-2017/",
"abstractNote":"Final broadcast primetime live + same-day ratings for Monday, July 3, 2017
The top show on a rerun-filled Monday night saw its adults 18-49 rating grow from the preliminary
numbers to the finals. &…","accessDate":"CURRENT_TIMESTAMP","shortTitle":"‘American Ninja Warrior’
adjusts up"}]
Doubt: Is there any error in the approach mentioned above that is causing different outputs?