3 <title>Simple Z39.50 OPAC</title>
\r
7 <script type="text/javascript">function toggleLayer( whichLayer )
\r
10 if( document.getElementById ) // this is the way the standards work
\r
11 elem = document.getElementById( whichLayer );
\r
12 else if( document.all ) // this is the way old msie versions work
\r
13 elem = document.all[whichLayer];
\r
14 else if( document.layers ) // this is the way nn4 works
\r
15 elem = document.layers[whichLayer];
\r
17 // if the style.display value is blank we try to figure it out here
\r
18 if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
\r
19 vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
\r
20 vis.display = (vis.display==''||vis.display=='block')?'none':'block';
\r
26 <h1>Simple Z39.50 OPAC</h1>
\r
27 This Ruby on Rails app searches a database of MARC records indexed by zebra.
\r
29 <form action = "/search/found" >
\r
33 <input type="text" name="term" value="<%= @data %>">
\r
37 Number of records found: <%= @rset_size %>
\r
39 Number of records returned: <%= @total_records.size %>
\r
43 <% @total_records.each do |rec| %>
\r
44 <%= link_to "#{rec['245']['a']}", :controller => "record/show", :r => "#{rec['901']['a']}", :search_term => "#{@data}" %>
\r
46 <!-- <a href="javascript:toggleLayer('hidden<%= i %>');" title="show full record">show/hide full record</a>
\r
47 <div id="hidden<%= i %>" style="display: none;">
\r
48 <%= rec.to_s.gsub("\n","<br>") %>
\r
49 <a href="javascript:toggleLayer('hidden<%= i %>');" title="show full record">show/hide full record</a>
\r
53 ----------------------------------------------------------
\r