Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add search and resolve controller tests. Cleanup HTML based on those …
…tests.
- Loading branch information
1 parent
6615136
commit 4be4b0b
Showing
7 changed files
with
455 additions
and
255 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,87 +1,87 @@ | |||
|
|
||
|
|
||
|
|
||
<table id="citation" width="100%" cellpadding="3" cellspacing="0"> | <table id="citation" width="100%" cellpadding="3" cellspacing="0"> | ||
<% | <% | ||
cite = @user_request.referent.to_citation | cite = @user_request.referent.to_citation | ||
#rft_metadata = @user_request.referent.metadata | #rft_metadata = @user_request.referent.metadata | ||
%> | %> | ||
|
|
||
<tr> | <tr> | ||
<td class="largeTextb" width="90" valign="TOP"><div align="right"><%= cite[:title_label] %>:</div></td> | <td class="largeTextb" width="90" valign="TOP"><div align="right"><%= cite[:title_label] %>:</div></td> | ||
|
|
||
<td class="largeText"><%= cite[:title] %></td> | <td class="largeText"><%= cite[:title] %></td> | ||
</tr> | </tr> | ||
<% # Try to warn if this could be a typo. If we have an rft.object_id, then | <% # Try to warn if this could be a typo. If we have an rft.object_id, then | ||
# SFX recognized it as an actually existing journal. If not, then it | # SFX recognized it as an actually existing journal. If not, then it | ||
# might be a typo. If it came from a manually entered citation, warn them. | # might be a typo. If it came from a manually entered citation, warn them. | ||
|
|
||
if display_not_found_warning?(@user_request) | if display_not_found_warning?(@user_request) | ||
%> | %> | ||
<tr><td class="largeTextb notice"><div align="right">(!) Warning:</div></td><td class="largeText notice"><%= umlaut_config.app_name %> does not know about a <%= (@user_request.referent.format).downcase %> with this name. Please check your entry.</td></tr> | <tr><td class="largeTextb notice"><div align="right">(!) Warning:</div></td><td class="largeText notice"><%= umlaut_config.app_name %> does not know about a <%= (@user_request.referent.format).downcase %> with this name. Please check your entry.</td></tr> | ||
|
|
||
<% end %> | <% end %> | ||
<% | <% | ||
@page_title = cite[:title] | @page_title = cite[:title] | ||
if cite[:author] | if cite[:author] | ||
%> | %> | ||
<tr> | <tr> | ||
<td width="90" class="largeTextb"><div align="right">Author:</div></td> | <td width="90" class="largeTextb"><div align="right">Author:</div></td> | ||
<td class="largeText"><%= cite[:author] %></td> | <td class="largeText"><%= cite[:author] %></td> | ||
</tr> | </tr> | ||
<% | <% | ||
end | end | ||
if cite[:subtitle] %> | if cite[:subtitle] %> | ||
<tr> | <tr> | ||
<td width="90"><div align="right" class="smallTextb"><strong><%= cite[:subtitle_label] %>:</strong></div></td> | <td width="90"><div align="right" class="smallTextb"><strong><%= cite[:subtitle_label] %>:</strong></div></td> | ||
<td><span class="smallText"><%= cite[:subtitle] %></span></td> | <td><span class="smallText"><%= cite[:subtitle] %></span></td> | ||
</tr> | </tr> | ||
<% | <% | ||
end | end | ||
|
|
||
if (cite[:issn] && ! cite[:issn].empty?) %> | if (cite[:issn] && ! cite[:issn].empty?) %> | ||
<tr> | <tr> | ||
<td><div align="right" class="smallTextb"><strong>ISSN:</strong></div></td> | <td><div align="right" class="smallTextb"><strong>ISSN:</strong></div></td> | ||
<td><span class="smallText"><%= cite[:issn] %></span></td> | <td><span class="smallText"><%= cite[:issn] %></span></td> | ||
</tr> | </tr> | ||
<% | <% | ||
end | end | ||
|
|
||
if (cite[:isbn] && ! cite[:isbn].empty? ) %> | if (cite[:isbn] && ! cite[:isbn].empty? ) %> | ||
<tr> | <tr> | ||
<td><div align="right" class="smallTextb">ISBN:</strong></div></td> | <td><div align="right" class="smallTextb"><strong>ISBN:</strong></div></td> | ||
<td><span class="smallText"><%= cite[:isbn] %></span></td> | <td><span class="smallText"><%= cite[:isbn] %></span></td> | ||
</tr> | </tr> | ||
<% | <% | ||
end %> | end %> | ||
<% unless cite[:pub].blank? %> | <% unless cite[:pub].blank? %> | ||
<tr> | <tr> | ||
<td><div align="right" class="smallTextb">Publisher:</div></td> | <td><div align="right" class="smallTextb">Publisher:</div></td> | ||
<td><span class="smallText"><%= cite[:pub] %> <td></tr> | <td><span class="smallText"><%= cite[:pub] %></span></td></tr> | ||
<% end %> | <% end %> | ||
<% unless cite[:date].blank? && cite[:volume].blank? && cite[:issue].blank? && cite[:page].blank? %> | <% unless cite[:date].blank? && cite[:volume].blank? && cite[:issue].blank? && cite[:page].blank? %> | ||
<tr> | <tr> | ||
<td><div align="right" class="smallTextb">Published:</div></td> | <td><div align="right" class="smallTextb">Published:</div></td> | ||
<td><span class="smallText"> | <td><span class="smallText"> | ||
<%= date_format(cite[:date]) %> | <%= date_format(cite[:date]) %> | ||
|
|
||
<% unless cite[:volume].blank? %> | <% unless cite[:volume].blank? %> | ||
Volume: <%= cite[:volume] %> | Volume: <%= cite[:volume] %> | ||
<% end %> | <% end %> | ||
<% unless cite[:issue].blank? %> | <% unless cite[:issue].blank? %> | ||
Issue: <%= cite[:issue] %> | Issue: <%= cite[:issue] %> | ||
<% end %> | <% end %> | ||
<% unless cite[:page].blank? %> | <% unless cite[:page].blank? %> | ||
Page: <%= cite[:page] %> | Page: <%= cite[:page] %> | ||
<% end %> | <% end %> | ||
</span></td> | </span></td> | ||
</tr> | </tr> | ||
<% end %> | <% end %> | ||
</table> | </table> | ||
|
|
||
|
|
||
|
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
Oops, something went wrong.