File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
app/services/xml_generator Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ def provider_xml(provider)
2626 month_element << Ox ::Element . new ( "title" ) . tap do |title_element |
2727 title_element [ :name ] = topic . title
2828 title_element << Ox ::Element . new ( "topic_id" ) . tap { |id | id << topic . id . to_s }
29+ title_element << Ox ::Element . new ( "counter" ) . tap { |c | c << "0" }
30+ title_element << Ox ::Element . new ( "topic_volume" ) . tap { |e | e << topic . published_at . year . to_s }
31+ title_element << Ox ::Element . new ( "topic_issue" ) . tap { |e | e << topic . published_at . month . to_s }
2932 title_element << Ox ::Element . new ( "topic_files" ) . tap do |files |
3033 files [ :files ] = "Files"
3134 topic . documents . each_with_index do |document , index |
@@ -36,6 +39,9 @@ def provider_xml(provider)
3639 end
3740 end
3841 end
42+ title_element << Ox ::Element . new ( "topic_author" ) . tap do |author |
43+ author << Ox ::Element . new ( "topic_author_1" ) . tap { |a | a << " " }
44+ end
3945 title_element << Ox ::Element . new ( "topic_tags" ) . tap do |tags |
4046 names = topic . taggings . map { |tg | tg . tag &.name } . compact . uniq
4147 tags << names . join ( ", " )
You can’t perform that action at this time.
0 commit comments