Hi Franjo,
under normal circumstances the links to the articles should look like this:
1)
OJS-URL/index.php/{journal-path}/article/{view}/{article-id}/{file-id}
There is an alternative possibility if you have so-called "publisher-ids" for every article in your database. In that case the links should look like this:
2)
OJS-URL/index.php/{journal-path}/article/{view}/{publisher-id}/{file-id}
I have still no idea how things could get garbled like in your case, but I think during the upgrade to OJS versions 2.4.X there are some changes made in the database concerning the handling of those publisher-ids. So maybe it's worth having a look at that. Do you have access to the MySQL database behind your OJS installation? Can you run the following query and check, if there are too many articles with the same publisher-id? You will have to look out for lots of "7"s there. You could try to find some unusual / corrupt data in the database with the following query:
- Code: Select all
SELECT a.article_id, a.status, ag.galley_id, ag.file_id as galley_file_id, af.file_id as files_file_id, af.file_name, af.original_file_name, aset.setting_name, aset.setting_value
FROM articles a
INNER JOIN article_galleys ag ON a.article_id = ag.article_id
INNER JOIN article_files af ON a.article_id = af.article_id
LEFT JOIN article_settings aset ON (a.article_id = aset.article_id AND setting_name LIKE "%pub-id%")
And for your question about disabling the links to the pdf files temporarily:
From the abstract pages you can remove those links by commenting out the part that displays the links to the pdfs. This is done with two little modifications in the file /templates/articles/article.tpl:
- Code: Select all
{* {if $galleys}
(i.e. add a "{*" in the beginning of line 93 of this file), and:
- Code: Select all
{/if} *}
(i.e. add a "*}" in the end of line 116 of this file.
When your problem is solved you can remove those "{*" and "*}" marks again. Note that this will not remove the links from your issue overview pages. If you also want to remove the links from there, you would have to make similar modifications to the file /templates/issue/issue.tpl.
Best regards,
Kai