just cleaning up the rails code a little so it is easier to read
[zcc.git] / rails / app / views / record / show.rhtml
blobf7e93df25af83cbf51a78a21436f9d39d1df7da1
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3   <head>
4     <meta name="generator" content="HTML Tidy, see www.w3.org">
5 <style type="text/css">
6     div#isbd {
7       width: 50%;
8       margin: auto;
9       border: 1px solid black;
10       padding: 20px;
11       
12     }
13     span#title {
14       font-size: 1.5em;
15       
16     }
17     
18     a {
19       font-size: 1.5em;
20       color: red;
21       text-decoration: none;
22       border: 3px solid white;
23       margin: 5px;
24       padding: 5px;
25     }
26     a:hover {
27       color: blue;
28       border: 3px solid blue;
29     }
30 </style>
31 <script type="text/javascript">
32     function toggleLayer( whichLayer )
33     {
34       var elem, vis;
35       if( document.getElementById ) // this is the way the standards work
36         elem = document.getElementById( whichLayer );
37       else if( document.all ) // this is the way old msie versions work
38           elem = document.all[whichLayer];
39       else if( document.layers ) // this is the way nn4 works
40         elem = document.layers[whichLayer];
41       vis = elem.style;
42       // if the style.display value is blank we try to figure it out here
43       if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
44         vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
45       vis.display = (vis.display==''||vis.display=='block')?'none':'block';
46     }
47 </script>
49     <title>Record: <%= @record %></title>
50   </head>
52   <body>
53     <%= link_to "BACK", :controller => "/search/found", :term => "#{@back}", :start => @start %>
55     <div id="isbd">
56       <%= @isbd %>
57     </div>
59     <br>
60     <a href="javascript:toggleLayer('hidden');" title="show full record" class="plus">+/-</a> 
62     <div id="hidden" style="display: none;">
63       <%= @records_string %>
64       <br>
65       <a href="javascript:toggleLayer('hidden');" title="show full record">-</a>
66     </div>
67   </body>
68 </html>