Professor Robert Goodman is a prominent child psychiatrist who is the lead author of a highly regarded book on the subject, Child and Adolescent Psychiatry. With the permission of the publisher, Wiley-Blackwell, a free PDF download was made available to the public at: http://youthinmind.info/py/yiminfo/GoodmanScott3.py
In the original application, there was a counter to record the number of downloads, which involved downloading the book programmatically. Unfortunately, in early 2019, it was reported that the Microsoft Edge browser did not work with this download. This browser did work with the traditional <a href tag and PDF file. There was a desire, however, to maintain a count of downloads. ChainZy provided a very simple way of replacing the more complicated and less reliable approach.
The Replaced Download Application
The public page for downloading the book, http://youthinmind.info/py/yiminfo/GoodmanScott3.py, used an HTML <a href tag to call a download and count program:
The downloadbook.py program retrieved the PDF file, stamped the download into a database table and output the file contents to the calling browser:
Unfortunately, this program no longer worked with Edge browser. Simple experimentation showed that Edge did work reliably with <a href=../../yiminfo/GoodmanScott3rdEdition2012.pdf>. This approach did not, however, allow download counting.
The downloadbook.py program is no longer needed and has been archived. The UserID of course is private to the ChainZy application. To count the number of stamped downloads (n=14 at the time), it is as simple as using ChainZy receiver output with grep: