不仅仅是书籍,论文的出版现在也被牢牢的控制着。
上面一段代码是 RailsCast 中的一个 builder, 生成 feed 专用。
网址: http://railscasts.com/episodes/87-generating-rss-feeds-revised?view=asciicast
代码是不是有问题啊?我怎么感觉应该写成下面这种格式?
atom_feed do |feed|
feed.title "Superhero Articles"
feed.updated @articles.maximum(:updated_at)
@articles.each do |article|
feed.entry do |entry|
entry.published article.publisherd_at
entry.title article.name
entry.content article.content
entry.author do |author|
author.name article.author
end
end
end
end
已经收到邮件了。
非常感谢。
顶起。
明天还有其他活动,唉。
6+ year,
都公司中层了。
两种数据格式不同,model 暂时还不会写。
求合影照片
没有十全十美的活动,daniel 不要压力太大。
辛苦了。
我去扯蛋。哈哈。
今天忽然发现还有另外一种论文结构,冏。 请问一个 model 下,可以有不同的文档结构(schema)吗?
<BookDocument>
<PMID Version="1">23101096</PMID>
<ArticleIdList>
<ArticleId IdType="bookaccession">NBK84157</ArticleId>
</ArticleIdList>
<Book>
<Publisher>
<PublisherName>Institute for Quality and Efficiency in Health Care (IQWiG)</PublisherName>
<PublisherLocation>Cologne, Germany</PublisherLocation>
</Publisher>
<BookTitle book="iqwigsum">Institute for Quality and Efficiency in Health Care: Executive Summaries</BookTitle>
<PubDate>
<Year>2005</Year>
</PubDate>
<BeginningDate>
<Year>2005</Year>
</BeginningDate>
<Medium>Internet</Medium>
</Book>
<ArticleTitle book="iqwigsum" part="a0507">Benefit assessment of long-term blood glucose lowering to near-normal levels in patients with type 2 diabetes mellitus: Executive summary of final report A05-07, Version 1.0</ArticleTitle>
<Language>eng</Language>
<Abstract>
<AbstractText>The aim of the present investigation is the benefit assessment of measures with the goal of long-term adjustment of BG to near-normal levels compared to measures with no goal or a less intensive goal of BG adjustment in patients with type 2 diabetes mellitus in respect of patient-relevant outcomes.</AbstractText>
<CopyrightInformation>© IQWiG (Institute for Quality and Efficiency in Health Care).</CopyrightInformation>
</Abstract>
<Sections>
<Section>
<SectionTitle book="iqwigsum" part="a0507" sec="a0507.s2">Background</SectionTitle>
</Section>
<Section>
<SectionTitle book="iqwigsum" part="a0507" sec="a0507.s3">Aim of the investigation</SectionTitle>
</Section>
<Section>
<SectionTitle book="iqwigsum" part="a0507" sec="a0507.s4">Methods</SectionTitle>
</Section>
<Section>
<SectionTitle book="iqwigsum" part="a0507" sec="a0507.s5">Results</SectionTitle>
</Section>
<Section>
<SectionTitle book="iqwigsum" part="a0507" sec="a0507.s6">Conclusions</SectionTitle>
</Section>
</Sections>
<ContributionDate>
<Year>2011</Year>
<Month>06</Month>
<Day>06</Day>
</ContributionDate>
</BookDocument>
<PubmedBookData>
<History>
<PubMedPubDate PubStatus="pubmed">
<Year>2012</Year>
<Month>10</Month>
<Day>27</Day>
<Hour>6</Hour>
<Minute>0</Minute>
</PubMedPubDate>
<PubMedPubDate PubStatus="medline">
<Year>2012</Year>
<Month>10</Month>
<Day>27</Day>
<Hour>6</Hour>
<Minute>0</Minute>
</PubMedPubDate>
<PubMedPubDate PubStatus="entrez">
<Year>2012</Year>
<Month>10</Month>
<Day>27</Day>
<Hour>6</Hour>
<Minute>0</Minute>
</PubMedPubDate>
</History>
<PublicationStatus>ppublish</PublicationStatus>
<ArticleIdList>
<ArticleId IdType="pubmed">23101096</ArticleId>
</ArticleIdList>
</PubmedBookData>
嗯,我也想弄点假数据,看看结构。
支持 xiaolai 老师。
有点像 google 的 page rank。
怎么从来没收到过邮件。
我觉得吧,这些都是餐后甜点。
如果拿来做正餐,可能不系统。
偶尔品尝才有惊喜。