Skip to content

Commit

Permalink
fix xml view
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansing committed Feb 25, 2025
1 parent 7d3fea6 commit 859a92d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/views/similar_terms/show.xml.builder
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
xml = Builder::XmlMarkup.new(:indent => 2)
xml.instruct!

xml.OneBoxResults "xmlns:xlink" => "http://www.w3.org/1999/xlink" do
xml.resultCode "success"
xml.totalResults @results.length
xml.urlText t("txt.views.similar_terms.title")
xml.urlLink url_for(request.query_parameters.
merge(:only_path => false, :anchor => ""))
xml.MODULE_RESULT do
xml.title t("txt.views.similar_terms.results_heading",
:terms => params[:terms])
@results.each do |label|
xml.Field label.value, "name" => label.value
xml.urlLink url_for(request.query_parameters.merge(only_path: false, anchor: ""))

if @results.length > 0
xml.MODULE_RESULT do
xml.title t("txt.views.similar_terms.results_heading", terms: params[:terms])
@results.each do |label|
xml.Field label.value, "name" => label.value
end
end
end if @results.length > 0
end
end

0 comments on commit 859a92d

Please sign in to comment.