modified getjournals format

This commit is contained in:
Rueshyna 2012-11-14 17:27:36 +08:00
parent 11b602a1bf
commit 529e2110d7
1 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,10 @@ class DesktopPublicationsController< ApplicationController
abstract: publication.abstract, abstract: publication.abstract,
level: publication.journal_paper_type_id, level: publication.journal_paper_type_id,
coauthors: publication.authors, coauthors: publication.authors,
year: publication.year year: publication.year,
files: publication.writing_journal_files.collect{|file|
{title: file.title, url: file.file.url}
}
} }
end end