source: Discovery_Service/trunk/exist/BStub.jsp @ 122

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/Discovery_Service/trunk/exist/BStub.jsp@125
Revision 122, 2.9 KB checked in by mguiterr, 15 years ago (diff)

* empty log message *

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<%
2//Copyright (C) 2004 CCLRC & NERC( Natural Environment Research Council ).
3//This software may be distributed under the terms of the
4//Q Public License, version 1.0 or later. http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt
5%>
6
7<jsp:useBean id="group" class="ndgsearch.Group"  scope="session" />
8<jsp:useBean id="dif" class="ndgsearch.DIF" scope="session" />
9<jsp:useBean id="bstub" scope="session" class="ndgsearch.BMetadata"/>
10<html>
11<head>
12
13<title>NDG Search Interface</title>
14<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
15
16<link href="styles/home.css" rel="stylesheet" type="text/css">
17<link href="js/functions.js" rel="stylesheet" type="text/css">
18<script>
19function validateCheck (field)
20{
21   
22   
23    var anychecked = false;
24   
25    for (i=0; i < field.length; i++)
26    {
27   
28        if (field[i].checked)
29        {
30            anychecked = true ;
31         
32        }
33    }
34   
35    if ( anychecked == false ){
36        alert ("Please select any of the hits to display");
37        return false;
38     }
39       
40     return true;
41}
42
43function selectValues(field1,field2,field3)
44{
45   
46    j=0;
47   
48    for (i=0; i < field1.length; i++)
49    {
50   
51        if (field1[i].checked)
52        {
53           field3[j].value = field2[i].value;
54           j++;
55         
56        }
57       
58    }
59   
60}
61
62
63
64</script>
65</head>
66<body  text="#000000" bgcolor="#ffffff" link="#191970" vlink="#551A8A" alink="FE0000" topmargin="10" leftmargin="10" marginwidth="10" marginheight="10">
67
68<table border="1" cellpadding="0" cellspacing="0" width="100%">
69      <tr>
70        <td height="81">
71          <table width="100%" height="117%" border="0" cellpadding="2" cellspacing="1">
72        <tr align="center">
73             
74          <td width="10%" height="100%" align="left" valign="top" background="images/background1.gif"  ><img src="images/ndgCurrentlit.gif" width="92" height="86">
75          </td>
76                         
77          <td width="78%" valign="middle" ><strong><font color="#CC3333" size="+2" face="Courier New, Courier, mono">NDG
78            - Detailed Metadata Browse</font></strong></td>
79                         
80          <td width="12%" height="100%" align="left" valign="top" background="images/background1.gif"  ><img src="images/ndgCurrentlitRev.gif" width="86" height="89">
81          </td>
82                        </tr>
83         </table>
84         </td></tr>
85      </table>
86 
87<%@ page import="java.io.* , java.util.*" %>
88<br>
89<table width="100%" border="0">
90  <tr>
91    <td height="26" class=tablerow>Displaying Detailed Metadata Records </td>
92  </tr>
93</table>
94<br>
95
96
97
98
99<textarea rows="30" cols="85">
100<%
101
102int num = group.sizeOfStubs();
103
104if( num == 0 )
105{
106    out.println ("Sorry!! There is no detailed metadata available");
107}
108
109
110
111       
112for (int i=0; i< group.sizeOfStubs(); i++)
113{
114           
115      bstub = group.getBStubAt(i);
116      out.println(bstub.getContent());
117}
118
119
120%>
121</textarea>
122
123   <%@ include file="footer.jsp" %>
124
125                       
126                       
127                       
128
Note: See TracBrowser for help on using the repository browser.