-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change metadata lists to use dl and dd
- Loading branch information
Showing
3 changed files
with
25 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,44 @@ | ||
<div class="metadata"> | ||
<ul> | ||
<dl> | ||
<% if @res["title"].present? %> | ||
<li> | ||
<%= metadata(@res, t("item.metadata.title", default: "Title"), | ||
<%= metadata(@res, t("item.metadata.title", default: "Title"), | ||
"title", link: false) %> | ||
</li> | ||
<% end %> | ||
<% if @res["date_display"].present? %> | ||
<li> | ||
<%= metadata(@res, t("item.metadata.date", default: "Date"), | ||
<%= metadata(@res, t("item.metadata.date", default: "Date"), | ||
"date_display") %> | ||
</li> | ||
<% end %> | ||
<% if @res["creator"].present? %> | ||
<li> | ||
<%= metadata(@res, t("item.metadata.creators", default: "Author(s)"), | ||
<%= metadata(@res, t("item.metadata.creators", default: "Author(s)"), | ||
"creator.name") %> | ||
</li> | ||
<% end %> | ||
<% if @res["format"].present? %> | ||
<li> | ||
<%= metadata(@res, t("item.metadata.format", default: "Format"), | ||
<%= metadata(@res, t("item.metadata.format", default: "Format"), | ||
"format") %> | ||
</li> | ||
<% end %> | ||
<% if @res["category"].present? %> | ||
<li> | ||
<%= metadata(@res, t("item.metadata.category", default: "Category"), | ||
<%= metadata(@res, t("item.metadata.category", default: "Category"), | ||
"category") %> | ||
</li> | ||
<% end %> | ||
<% if @res["subcategory"].present? %> | ||
<li> | ||
<%= metadata(@res, t("item.metadata.subcategory", | ||
<%= metadata(@res, t("item.metadata.subcategory", | ||
default: "Subcategory"), "subcategory") %> | ||
</li> | ||
<% end %> | ||
<% if @res["works"].present? %> | ||
<li> | ||
<%= metadata(@res, t("item.metadata.works", default: "Works"), | ||
<%= metadata(@res, t("item.metadata.works", default: "Works"), | ||
"works") %> | ||
</li> | ||
<% end %> | ||
<% if @res["places"].present? %> | ||
<li> | ||
<%= metadata(@res, t("item.metadata.places", default: "Place(s)"), | ||
<%= metadata(@res, t("item.metadata.places", default: "Place(s)"), | ||
"places") %> | ||
</li> | ||
<% end %> | ||
<%# When copying this template into projects, consider adding rel tag to the source link | ||
to note the format and if the link is external %> | ||
<% if @res["uri_data"].present? %> | ||
<li><strong>Source Document: </strong> | ||
<a href="<%= @res["uri_data"] %>"><%= File.basename(@res["uri_data"]) %></a> | ||
</li> | ||
<dt><strong>Source Document: </strong></dt> | ||
<dl><a href="<%= @res["uri_data"] %>"><%= File.basename(@res["uri_data"]) %></a></dl> | ||
<% end %> | ||
</ul> | ||
</dl> | ||
<%# When copying this template into projects, consider adding rel tag to the source link | ||
to note the format and if the link is external %> | ||
|
||
|
||
</div> |