When viewing an article galley in PDF JS viewer, the URL of download button has an extra “/number” that is not included in the citation_pdf_url. Both URL’s are working. What is this extra number?
We have been told by CLOCKSS that this is an issue that we may want to change (how?) although its “not a big deal”.
download url in pdf viewer is: https://example/index.php/journal/article/download/237/342/1799
Can you please indicate what specific version of OJS you are using (e.g. 3.2.1) - please include this information in your posts, as it assists with troubleshooting.
Thank you for your reply. I have this issue in multiple OJS instances, some are OJS 220.127.116.11 while others are 18.104.22.168. However, it does not happen in OJS 22.214.171.124
I think that the extra number is related to galley versioning? but I’m not sure about what citation_pdf_url should be in this case.
I ran this by one of our developers who had this to say:
" tI looks like both URLs work. The last number is a file ID. I believe the syntax is
/article/download/<article-id>/<galley-id>/<file-id> .In cases where a galley has dependent files (eg - HTML/XML galleys), the additional file ID will be necessary to retrieve dependent files (like images/CSS).But for a PDF galley, this is not necessary because the correct file ID is retrieved automatically from the galley."
Hope this helps?