Version:
OJS 2.4.8-2
Request
Is it possible to show the original file name of the document, when hovering over the OJS file name?
Reason for request:
As an Editor, it would make revisions received from author easier to identify which version is which … without having to download each manuscript first.
Example would be:
OJS Naming: 771-5224-2-RV.DOC
Original Naming when to hover: Revised Version.docx
Hi @tretief,
We’re not making many further improvements to OJS 2.x, especially regarding UI/UX – as we’re focusing on OJS 3.x. However, if you have some web development experience, perhaps I could suggest where to start?
Regards,
Alec Smecher
Public Knowledge Project Team
Hi @asmecher
It is understandable, it would be great if you can suggest the starting point.
Regards, Trudie
Hi @tretief,
I’d suggest searching through the template files for places where dowload links are coded:
$ fgrep -l downloadFile `find . -name \*.tpl`
./templates/submission/suppFile/suppFile.tpl
./templates/submission/suppFile/suppFileView.tpl
./templates/submission/layout/galleyView.tpl
./templates/submission/layout/galleyForm.tpl
./templates/proofreader/submission/layout.tpl
./templates/layoutEditor/submission/layout.tpl
./templates/sectionEditor/submission/copyedit.tpl
./templates/sectionEditor/submission/peerReview.tpl
./templates/sectionEditor/submission/management.tpl
./templates/sectionEditor/submission/rounds.tpl
./templates/sectionEditor/submission/layout.tpl
./templates/sectionEditor/submission/editorDecision.tpl
./templates/sectionEditor/submissionNotes.tpl
./templates/sectionEditor/submissionEmailLogEntry.tpl
./templates/sectionEditor/submissionHistory.tpl
./templates/reviewer/submission.tpl
./templates/copyeditor/submission/copyedit.tpl
./templates/copyeditor/submission/layout.tpl
./templates/author/submission/copyedit.tpl
./templates/author/submission/peerReview.tpl
./templates/author/submission/management.tpl
./templates/author/submission/layout.tpl
./templates/author/submission/editorDecision.tpl
A typical example of one of these is…
<a href="{url op="downloadFile" path=$submission->getId()|to_array:$layoutFile->getFileId()}" class="file">{$layoutFile->getFileName()|escape}</a> {$layoutFile->getDateModified()|date_format:$dateFormatShort}
Here you have an object called $layoutFile
. You can get the original filename from this using the getOriginalFileName
function.
Regards,
Alec Smecher
Public Knowledge Project Team