modified getjournals format

This commit is contained in:
Rueshyna 2012-11-14 17:27:36 +08:00 committed by chris
parent 5643b0a528
commit 02643c12bf
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