- <title><%= @item.fetch(:title, doc_header) %></title>
-<% [@item.fetch(:copyright, [])].flatten.each do |copyright|
-%> <copyright><%= copyright %></copyright>
-<% end
- if @item[:license] then
- licref = @item[:license].split
- lic = find_license(licref[0])
-%> <license>
- <identifier><%= File::basename(lic.identifier.without_ext) %></identifier>
- <name><%= [lic[:title], licref[1..-1]].compact.join(" ").strip %></name>
- <uri><%= item_uri(lic) %></uri>
- <modification-allowed><%=
- lic[:"modification-allowed"] == true ? "yes" : "no"
- %></modification-allowed>
- </license>
-<% end
-%> <source>
+ <title><%= @item.fetch(:title, doc_header) %></title><%=
+render '/copyright.xml' %><%
+find_images.each do |item| %>
+ <image>
+ <title><%= item[:attrname] || item[:title] %></title>
+ <uri><%= item_uri(item, rep: :info) %></uri><%=
+render '/copyright.xml', :item => item, :indent => 4
+%> </image><%
+end %>
+ <source>