1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
\r
4 <meta name="generator" content="HTML Tidy, see www.w3.org">
\r
6 <title>Simple Z39.50 OPAC</title>
\r
7 <style type="text/css">
\r
10 border: 2px solid red;
\r
14 input:hover, input:focus{border-color: blue;}
\r
15 span.num_of_results{
\r
23 border-bottom: 2px dotted black;
\r
29 a {text-decoration: none;}
\r
30 a:hover {color: red; text-decoration:underline;}
\r
34 text-decoration: none;
\r
35 border: 3px solid white;
\r
39 a.direction:hover, a.direction:focus {
\r
41 border: 3px solid blue;
\r
43 .set_number{font-size: 1.2em; margin: 0px 10px 10px 0px;}
\r
46 <script type="text/javascript">
\r
47 function toggleLayer( whichLayer )
\r
50 if( document.getElementById ) // this is the way the standards work
\r
51 elem = document.getElementById( whichLayer );
\r
52 else if( document.all ) // this is the way old msie versions work
\r
53 elem = document.all[whichLayer];
\r
54 else if( document.layers ) // this is the way nn4 works
\r
55 elem = document.layers[whichLayer];
\r
57 // if the style.display value is blank we try to figure it out here
\r
58 if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
\r
59 vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
\r
60 vis.display = (vis.display==''||vis.display=='block')?'none':'block';
\r
66 <h1>Simple Rails OPAC</h1>
\r
67 Search a zebra database of 250,000+ MARCXML records.
\r
69 <form action="/search/found" >
\r
71 <input type="text" name="term" id="term" value="<%= @data.gsub("\"",""") %>">
\r
72 <script type="text/javascript">
\r
73 document.getElementById('term').focus();
\r
76 Number of records found: <span class="num_of_results"><%= @rset_size %></span>
\r
78 Time to process results: <span class="num_of_results"><%= @time_difference %></span>
\r
81 <% unless @start <= 0 %><%= link_to "BACK", {:controller => "/search/found", :term => "#{@data}", :start => "#{@start - @per_page}", :per_page => "#{@per_page}"}, :class => "direction" %><% end %> <% unless @start + @per_page >= @rset_size -%>
\r
82 <%= link_to "NEXT", {:controller => "/search/found", :term => "#{@data}", :start => "#{@start + @per_page}", :per_page => "#{@per_page}"}, :class => "direction" %><% end %>
\r
86 <% i = @start + 1 %> <% @total_records.each do |rec| %>
\r
88 <div class="record">
\r
89 <span class="set_number"><%= i %></span> <%= link_to "#{rec['245']['a']}", :controller => "record/show", :r => "#{rec['901']['a']}", :term => "#{@data}", :start => @start %> <%= "#{rec['245']['b'] }" if rec['245']['b'] %> <%= "#{rec['245']['c']}" if rec['245']['c'] %> <%= "#{rec['260']['c'] }" if rec['260'] && rec['260']['c'] %>
\r
92 <% i += 1 %><%end%>.
\r
94 <% unless @start <= 0 %><%= link_to "BACK", {:controller => "/search/found", :term => "#{@data}", :start => "#{@start - @per_page}", :per_page => "#{@per_page}"}, :class => "direction" %><% end %> <% unless @start + @per_page >= @rset_size -%>
\r
95 <%= link_to "NEXT", {:controller => "/search/found", :term => "#{@data}", :start => "#{@start + @per_page}", :per_page => "#{@per_page}"}, :class => "direction" %><% end %>
\r