Project

General

Profile

redmine3053.patch

Skye Roseboom, 2012-07-10 03:09

Download (627 KB)

View differences:

src/main/java/gov/ornl/mercury3/commands/SolrTransactionDetail.java (working copy)
20 20
 * $Id$
21 21
 */
22 22

  
23
package gov.ornl.mercury3.commands;
24

  
25
import gov.ornl.mercury3.web.util.D1DocTransferObject;
26

  
27
import java.io.InputStream;
28
import java.util.ArrayList;
29
import java.util.HashMap;
30
import java.util.List;
31
import java.util.Map;
32

  
33
/**
34
 * The model class passed to all View objects (JSPs).
35
 * 
36
 */
37
public class SolrTransactionDetail {
38

  
39
    public String suggestion;
40

  
41
    public Object[][] getOntologyList() {
42
        return ontologyList;
43
    }
44

  
45
    public void setOntologyList(Object[][] ontologyList) {
46
        this.ontologyList = ontologyList;
47
    }
48

  
49
    public Object[][] ontologyList = null;
50

  
51
    private ArrayList<HashMap<String, String>> mlt_list = new ArrayList<HashMap<String, String>>();
52

  
53
    public String errorMsg = "";
54

  
55
    public HashMap cart_urls;
56

  
57
    public String fromBrief = "";
58

  
59
    public String browseStatus = "false";
60

  
61
    public String datasourcemap = "";
62

  
63
    private boolean geoError = false;
64

  
65
    public String datasource = "";
66

  
67
    public String datasourceCode = "";
68

  
69
    public String htmltext = "";
70

  
71
    public String fileId = "";
72

  
73
    private String contents = "";
74

  
75
    private String fileName = "";
76

  
77
    private String emlContents = "";
78

  
79
    private InputStream is;
80

  
81
    private String searchmode;
82

  
83
    public String mercury3_query_string = "";
84

  
85
    private String gui_queryString = "";
86

  
87
    private String sortattribute = "";
88

  
89
    public HashMap solr_facets_map = null;
90

  
91
    public Float maxScore;
92

  
93
    public String facet_str = " ";
94

  
95
    public String facet_str2 = " ";
96

  
97
    public int found;
98

  
99
    public int start;
100

  
101
    private int pageSize;
102

  
103
    private String searchStatus;
104

  
105
    public String queryString = " ";
106

  
107
    public String full_queryString = " ";
108

  
109
    public String plainqueryString = "";
110

  
111
    private List accountsList;
112

  
113
    private ArrayList j_Docs;
114

  
115
    private int current_page;
116

  
117
    private int num_pages;
118

  
119
    public int page_max_count;
120

  
121
    public String nb;
122

  
123
    private Response res;
124

  
125
    private ArrayList briefResList;
126

  
127
    private boolean showFacets;
128

  
129
    private Map<FilterCatField, List> facets = null;
130

  
131
    private ArrayList j_facets = null;
132

  
133
    private List<Map<String, Field>> documents = null;
134

  
135
    private String hideDS = "";
136

  
137
    private String fileurl = "";
138

  
139
    private List<D1DocTransferObject> d1Docs = null;
140

  
141
    public String getHideDS() {
142
        return hideDS;
143
    }
144

  
145
    public void setHideDS(String hideDS) {
146
        this.hideDS = hideDS;
147
    }
148

  
149
    public List<Map<String, Field>> getDocuments() {
150
        return documents;
151
    }
152

  
153
    public void setDocuments(List<Map<String, Field>> documents) {
154
        this.documents = documents;
155
    }
156

  
157
    public Map<FilterCatField, List> getFacets() {
158
        return facets;
159
    }
160

  
161
    public void setFacets(Map<FilterCatField, List> facets) {
162
        this.facets = facets;
163
    }
164

  
165
    public Response getRes() {
166
        return res;
167
    }
168

  
169
    public void setRes(Response res) {
170
        this.res = res;
171
    }
172

  
173
    /**
174
     * @return Returns the accountsList.
175
     */
176
    public List getAccountsList() {
177
        return accountsList;
178
    }
179

  
180
    /**
181
     * @param accountsList
182
     *            The accountsList to set.
183
     */
184
    public void setAccountsList(List accountsList) {
185
        this.accountsList = accountsList;
186
    }
187

  
188
    public ArrayList getJ_facets() {
189
        return j_facets;
190
    }
191

  
192
    public void setJ_facets(ArrayList j_facets) {
193
        this.j_facets = j_facets;
194
    }
195

  
196
    public ArrayList getJ_Docs() {
197
        return j_Docs;
198
    }
199

  
200
    public void setJ_Docs(ArrayList docs) {
201
        j_Docs = docs;
202
    }
203

  
204
    public String getQueryString() {
205
        return queryString;
206
    }
207

  
208
    public void setQueryString(String queryString) {
209
        this.queryString = queryString;
210
    }
211

  
212
    public int getFound() {
213
        return found;
214
    }
215

  
216
    public void setFound(int found) {
217
        this.found = found;
218
    }
219

  
220
    public String getSearchStatus() {
221
        return searchStatus;
222
    }
223

  
224
    public void setSearchStatus(String searchStatus) {
225
        this.searchStatus = searchStatus;
226
    }
227

  
228
    public int getPageSize() {
229
        return pageSize;
230
    }
231

  
232
    public void setPageSize(int pageSize) {
233
        this.pageSize = pageSize;
234
    }
235

  
236
    public int getStart() {
237
        return start;
238
    }
239

  
240
    public void setStart(int start) {
241
        this.start = start;
242
    }
243

  
244
    public int getCurrent_page() {
245
        return current_page;
246
    }
247

  
248
    public void setCurrent_page(int current_page) {
249
        this.current_page = current_page;
250
    }
251

  
252
    public int getNum_pages() {
253
        return num_pages;
254
    }
255

  
256
    public void setNum_pages(int num_pages) {
257
        this.num_pages = num_pages;
258
    }
259

  
260
    public int getPage_max_count() {
261
        return page_max_count;
262
    }
263

  
264
    public void setPage_max_count(int page_max_count) {
265
        this.page_max_count = page_max_count;
266
    }
267

  
268
    public String getNb() {
269
        return nb;
270
    }
271

  
272
    public void setNb(String nb) {
273
        this.nb = nb;
274
    }
275

  
276
    public String getFacet_str() {
277
        return facet_str;
278
    }
279

  
280
    public void setFacet_str(String facet_str) {
281
        this.facet_str = facet_str;
282
    }
283

  
284
    public HashMap getSolr_facets_map() {
285
        return solr_facets_map;
286
    }
287

  
288
    public void setSolr_facets_map(HashMap solr_facets_map) {
289
        this.solr_facets_map = solr_facets_map;
290
    }
291

  
292
    public String getSortattribute() {
293
        return sortattribute;
294
    }
295

  
296
    public void setSortattribute(String sortattribute) {
297
        this.sortattribute = sortattribute;
298
    }
299

  
300
    public String getGui_queryString() {
301
        return gui_queryString;
302
    }
303

  
304
    public void setGui_queryString(String gui_queryString) {
305
        this.gui_queryString = gui_queryString;
306
    }
307

  
308
    public String getMercury3_query_string() {
309
        return mercury3_query_string;
310
    }
311

  
312
    public void setMercury3_query_string(String mercury3_query_string) {
313
        this.mercury3_query_string = mercury3_query_string;
314
    }
315

  
316
    public String getFacet_str2() {
317
        return facet_str2;
318
    }
319

  
320
    public void setFacet_str2(String facet_str2) {
321
        this.facet_str2 = facet_str2;
322
    }
323

  
324
    public Float getMaxScore() {
325
        return maxScore;
326
    }
327

  
328
    public void setMaxScore(Float maxScore) {
329
        this.maxScore = maxScore;
330
    }
331

  
332
    public ArrayList getBriefResList() {
333
        return briefResList;
334
    }
335

  
336
    public void setBriefResList(ArrayList briefResList) {
337
        this.briefResList = briefResList;
338
    }
339

  
340
    public String getContents() {
341
        return contents;
342
    }
343

  
344
    public void setContents(String contents) {
345
        this.contents = contents;
346
    }
347

  
348
    public InputStream getIs() {
349
        return is;
350
    }
351

  
352
    public void setIs(InputStream is) {
353
        this.is = is;
354
    }
355

  
356
    public String getHtmltext() {
357
        return htmltext;
358
    }
359

  
360
    public void setHtmltext(String htmltext) {
361
        this.htmltext = htmltext;
362
    }
363

  
364
    public String getFull_queryString() {
365
        return full_queryString;
366
    }
367

  
368
    public void setFull_queryString(String full_queryString) {
369
        this.full_queryString = full_queryString;
370
    }
371

  
372
    public String getDatasource() {
373
        return datasource;
374
    }
375

  
376
    public void setDatasource(String datasource) {
377
        this.datasource = datasource;
378
    }
379

  
380
    public boolean isShowFacets() {
381
        return showFacets;
382
    }
383

  
384
    public void setShowFacets(boolean showFacets) {
385
        this.showFacets = showFacets;
386
    }
387

  
388
    public boolean isGeoError() {
389
        return geoError;
390
    }
391

  
392
    public void setGeoError(boolean geoError) {
393
        this.geoError = geoError;
394
    }
395

  
396
    public String getBrowseStatus() {
397
        return browseStatus;
398
    }
399

  
400
    public void setBrowseStatus(String browseStatus) {
401
        this.browseStatus = browseStatus;
402
    }
403

  
404
    public String getPlainqueryString() {
405
        return plainqueryString;
406
    }
407

  
408
    public void setPlainqueryString(String plainqueryString) {
409
        this.plainqueryString = plainqueryString;
410
    }
411

  
412
    public String getDatasourcemap() {
413
        return datasourcemap;
414
    }
415

  
416
    public void setDatasourcemap(String datasourcemap) {
417
        this.datasourcemap = datasourcemap;
418
    }
419

  
420
    public String getFileId() {
421
        return fileId;
422
    }
423

  
424
    public void setFileId(String fileId) {
425
        this.fileId = fileId;
426
    }
427

  
428
    public String getFromBrief() {
429
        return fromBrief;
430
    }
431

  
432
    public void setFromBrief(String fromBrief) {
433
        this.fromBrief = fromBrief;
434
    }
435

  
436
    public HashMap getCart_urls() {
437
        return cart_urls;
438
    }
439

  
440
    public void setCart_urls(HashMap cart_urls) {
441
        this.cart_urls = cart_urls;
442
    }
443

  
444
    public String getErrorMsg() {
445
        return errorMsg;
446
    }
447

  
448
    public void setErrorMsg(String errorMsg) {
449
        this.errorMsg = errorMsg;
450
    }
451

  
452
    public String getSearchmode() {
453
        return searchmode;
454
    }
455

  
456
    public void setSearchmode(String searchmode) {
457
        this.searchmode = searchmode;
458
    }
459

  
460
    public ArrayList<HashMap<String, String>> getMlt_list() {
461
        return mlt_list;
462
    }
463

  
464
    public void setMlt_list(ArrayList<HashMap<String, String>> mlt_list) {
465
        this.mlt_list = mlt_list;
466
    }
467

  
468
    public String getEmlContents() {
469
        return emlContents;
470
    }
471

  
472
    public void setEmlContents(String emlContents) {
473
        this.emlContents = emlContents;
474
    }
475

  
476
    public String getFileName() {
477
        return fileName;
478
    }
479

  
480
    public void setFileName(String fileName) {
481
        this.fileName = fileName;
482
    }
483

  
484
    public String getDatasourceCode() {
485
        return datasourceCode;
486
    }
487

  
488
    public void setDatasourceCode(String datasourceCode) {
489
        this.datasourceCode = datasourceCode;
490
    }
491

  
492
    public String getFileurl() {
493
        return fileurl;
494
    }
495

  
496
    public void setFileurl(String fileurl) {
497
        this.fileurl = fileurl;
498
    }
499

  
500
    public String getSuggestion() {
501
        return suggestion;
502
    }
503

  
504
    public void setSuggestion(String suggestion) {
505
        this.suggestion = suggestion;
506
    }
507

  
508
    private String isoContents = "";
509

  
510
    public String getIsoContents() {
511
        return isoContents;
512
    }
513

  
514
    public void setIsoContents(String isoContents) {
515
        this.isoContents = isoContents;
516
    }
517

  
518
    public List<D1DocTransferObject> getD1Docs() {
519
        if (d1Docs == null) {
520
            d1Docs = new ArrayList<D1DocTransferObject>();
521
        }
522
        return d1Docs;
523
    }
524

  
525
    public void setD1Docs(List<D1DocTransferObject> d1Docs) {
526
        this.d1Docs = d1Docs;
527
    }
528

  
529
    public int getD1DocsSize() {
530
        return getD1Docs().size();
531
    }
532

  
533
    public int getD1DataDocCount() {
534
        return getD1DocsSize() - 1;
535
    }
536

  
537
}
23
package gov.ornl.mercury3.commands;
24

  
25
import gov.ornl.mercury3.web.util.D1DocTransferObject;
26

  
27
import java.io.InputStream;
28
import java.util.ArrayList;
29
import java.util.HashMap;
30
import java.util.List;
31
import java.util.Map;
32

  
33
/**
34
 * The model class passed to all View objects (JSPs).
35
 * 
36
 */
37
public class SolrTransactionDetail {
38

  
39
    public String suggestion;
40

  
41
    public Object[][] getOntologyList() {
42
        return ontologyList;
43
    }
44

  
45
    public void setOntologyList(Object[][] ontologyList) {
46
        this.ontologyList = ontologyList;
47
    }
48

  
49
    public Object[][] ontologyList = null;
50

  
51
    private ArrayList<HashMap<String, String>> mlt_list = new ArrayList<HashMap<String, String>>();
52

  
53
    public String errorMsg = "";
54

  
55
    public HashMap cart_urls;
56

  
57
    public String fromBrief = "";
58

  
59
    public String browseStatus = "false";
60

  
61
    public String datasourcemap = "";
62

  
63
    private boolean geoError = false;
64

  
65
    public String datasource = "";
66

  
67
    public String datasourceCode = "";
68

  
69
    public String htmltext = "";
70

  
71
    public String fileId = "";
72

  
73
    private String contents = "";
74

  
75
    private String fileName = "";
76

  
77
    private String emlContents = "";
78

  
79
    private InputStream is;
80

  
81
    private String searchmode;
82

  
83
    public String mercury3_query_string = "";
84

  
85
    private String gui_queryString = "";
86

  
87
    private String sortattribute = "";
88

  
89
    public HashMap solr_facets_map = null;
90

  
91
    public Float maxScore;
92

  
93
    public String facet_str = " ";
94

  
95
    public String facet_str2 = " ";
96

  
97
    public int found;
98

  
99
    public int start;
100

  
101
    private int pageSize;
102

  
103
    private String searchStatus;
104

  
105
    public String queryString = " ";
106

  
107
    public String full_queryString = " ";
108

  
109
    public String plainqueryString = "";
110

  
111
    private List accountsList;
112

  
113
    private ArrayList j_Docs;
114

  
115
    private int current_page;
116

  
117
    private int num_pages;
118

  
119
    public int page_max_count;
120

  
121
    public String nb;
122

  
123
    private Response res;
124

  
125
    private ArrayList briefResList;
126

  
127
    private boolean showFacets;
128

  
129
    private Map<FilterCatField, List> facets = null;
130

  
131
    private ArrayList j_facets = null;
132

  
133
    private List<Map<String, Field>> documents = null;
134

  
135
    private String hideDS = "";
136

  
137
    private String fileurl = "";
138

  
139
    private String pid = "";
140

  
141
    private List<D1DocTransferObject> d1Docs = null;
142

  
143
    public String getPid() {
144
        return pid;
145
    }
146

  
147
    public void setPid(String _pid) {
148
        this.pid = _pid;
149
    }
150

  
151
    public String getHideDS() {
152
        return hideDS;
153
    }
154

  
155
    public void setHideDS(String hideDS) {
156
        this.hideDS = hideDS;
157
    }
158

  
159
    public List<Map<String, Field>> getDocuments() {
160
        return documents;
161
    }
162

  
163
    public void setDocuments(List<Map<String, Field>> documents) {
164
        this.documents = documents;
165
    }
166

  
167
    public Map<FilterCatField, List> getFacets() {
168
        return facets;
169
    }
170

  
171
    public void setFacets(Map<FilterCatField, List> facets) {
172
        this.facets = facets;
173
    }
174

  
175
    public Response getRes() {
176
        return res;
177
    }
178

  
179
    public void setRes(Response res) {
180
        this.res = res;
181
    }
182

  
183
    /**
184
     * @return Returns the accountsList.
185
     */
186
    public List getAccountsList() {
187
        return accountsList;
188
    }
189

  
190
    /**
191
     * @param accountsList
192
     *            The accountsList to set.
193
     */
194
    public void setAccountsList(List accountsList) {
195
        this.accountsList = accountsList;
196
    }
197

  
198
    public ArrayList getJ_facets() {
199
        return j_facets;
200
    }
201

  
202
    public void setJ_facets(ArrayList j_facets) {
203
        this.j_facets = j_facets;
204
    }
205

  
206
    public ArrayList getJ_Docs() {
207
        return j_Docs;
208
    }
209

  
210
    public void setJ_Docs(ArrayList docs) {
211
        j_Docs = docs;
212
    }
213

  
214
    public String getQueryString() {
215
        return queryString;
216
    }
217

  
218
    public void setQueryString(String queryString) {
219
        this.queryString = queryString;
220
    }
221

  
222
    public int getFound() {
223
        return found;
224
    }
225

  
226
    public void setFound(int found) {
227
        this.found = found;
228
    }
229

  
230
    public String getSearchStatus() {
231
        return searchStatus;
232
    }
233

  
234
    public void setSearchStatus(String searchStatus) {
235
        this.searchStatus = searchStatus;
236
    }
237

  
238
    public int getPageSize() {
239
        return pageSize;
240
    }
241

  
242
    public void setPageSize(int pageSize) {
243
        this.pageSize = pageSize;
244
    }
245

  
246
    public int getStart() {
247
        return start;
248
    }
249

  
250
    public void setStart(int start) {
251
        this.start = start;
252
    }
253

  
254
    public int getCurrent_page() {
255
        return current_page;
256
    }
257

  
258
    public void setCurrent_page(int current_page) {
259
        this.current_page = current_page;
260
    }
261

  
262
    public int getNum_pages() {
263
        return num_pages;
264
    }
265

  
266
    public void setNum_pages(int num_pages) {
267
        this.num_pages = num_pages;
268
    }
269

  
270
    public int getPage_max_count() {
271
        return page_max_count;
272
    }
273

  
274
    public void setPage_max_count(int page_max_count) {
275
        this.page_max_count = page_max_count;
276
    }
277

  
278
    public String getNb() {
279
        return nb;
280
    }
281

  
282
    public void setNb(String nb) {
283
        this.nb = nb;
284
    }
285

  
286
    public String getFacet_str() {
287
        return facet_str;
288
    }
289

  
290
    public void setFacet_str(String facet_str) {
291
        this.facet_str = facet_str;
292
    }
293

  
294
    public HashMap getSolr_facets_map() {
295
        return solr_facets_map;
296
    }
297

  
298
    public void setSolr_facets_map(HashMap solr_facets_map) {
299
        this.solr_facets_map = solr_facets_map;
300
    }
301

  
302
    public String getSortattribute() {
303
        return sortattribute;
304
    }
305

  
306
    public void setSortattribute(String sortattribute) {
307
        this.sortattribute = sortattribute;
308
    }
309

  
310
    public String getGui_queryString() {
311
        return gui_queryString;
312
    }
313

  
314
    public void setGui_queryString(String gui_queryString) {
315
        this.gui_queryString = gui_queryString;
316
    }
317

  
318
    public String getMercury3_query_string() {
319
        return mercury3_query_string;
320
    }
321

  
322
    public void setMercury3_query_string(String mercury3_query_string) {
323
        this.mercury3_query_string = mercury3_query_string;
324
    }
325

  
326
    public String getFacet_str2() {
327
        return facet_str2;
328
    }
329

  
330
    public void setFacet_str2(String facet_str2) {
331
        this.facet_str2 = facet_str2;
332
    }
333

  
334
    public Float getMaxScore() {
335
        return maxScore;
336
    }
337

  
338
    public void setMaxScore(Float maxScore) {
339
        this.maxScore = maxScore;
340
    }
341

  
342
    public ArrayList getBriefResList() {
343
        return briefResList;
344
    }
345

  
346
    public void setBriefResList(ArrayList briefResList) {
347
        this.briefResList = briefResList;
348
    }
349

  
350
    public String getContents() {
351
        return contents;
352
    }
353

  
354
    public void setContents(String contents) {
355
        this.contents = contents;
356
    }
357

  
358
    public InputStream getIs() {
359
        return is;
360
    }
361

  
362
    public void setIs(InputStream is) {
363
        this.is = is;
364
    }
365

  
366
    public String getHtmltext() {
367
        return htmltext;
368
    }
369

  
370
    public void setHtmltext(String htmltext) {
371
        this.htmltext = htmltext;
372
    }
373

  
374
    public String getFull_queryString() {
375
        return full_queryString;
376
    }
377

  
378
    public void setFull_queryString(String full_queryString) {
379
        this.full_queryString = full_queryString;
380
    }
381

  
382
    public String getDatasource() {
383
        return datasource;
384
    }
385

  
386
    public void setDatasource(String datasource) {
387
        this.datasource = datasource;
388
    }
389

  
390
    public boolean isShowFacets() {
391
        return showFacets;
392
    }
393

  
394
    public void setShowFacets(boolean showFacets) {
395
        this.showFacets = showFacets;
396
    }
397

  
398
    public boolean isGeoError() {
399
        return geoError;
400
    }
401

  
402
    public void setGeoError(boolean geoError) {
403
        this.geoError = geoError;
404
    }
405

  
406
    public String getBrowseStatus() {
407
        return browseStatus;
408
    }
409

  
410
    public void setBrowseStatus(String browseStatus) {
411
        this.browseStatus = browseStatus;
412
    }
413

  
414
    public String getPlainqueryString() {
415
        return plainqueryString;
416
    }
417

  
418
    public void setPlainqueryString(String plainqueryString) {
419
        this.plainqueryString = plainqueryString;
420
    }
421

  
422
    public String getDatasourcemap() {
423
        return datasourcemap;
424
    }
425

  
426
    public void setDatasourcemap(String datasourcemap) {
427
        this.datasourcemap = datasourcemap;
428
    }
429

  
430
    public String getFileId() {
431
        return fileId;
432
    }
433

  
434
    public void setFileId(String fileId) {
435
        this.fileId = fileId;
436
    }
437

  
438
    public String getFromBrief() {
439
        return fromBrief;
440
    }
441

  
442
    public void setFromBrief(String fromBrief) {
443
        this.fromBrief = fromBrief;
444
    }
445

  
446
    public HashMap getCart_urls() {
447
        return cart_urls;
448
    }
449

  
450
    public void setCart_urls(HashMap cart_urls) {
451
        this.cart_urls = cart_urls;
452
    }
453

  
454
    public String getErrorMsg() {
455
        return errorMsg;
456
    }
457

  
458
    public void setErrorMsg(String errorMsg) {
459
        this.errorMsg = errorMsg;
460
    }
461

  
462
    public String getSearchmode() {
463
        return searchmode;
464
    }
465

  
466
    public void setSearchmode(String searchmode) {
467
        this.searchmode = searchmode;
468
    }
469

  
470
    public ArrayList<HashMap<String, String>> getMlt_list() {
471
        return mlt_list;
472
    }
473

  
474
    public void setMlt_list(ArrayList<HashMap<String, String>> mlt_list) {
475
        this.mlt_list = mlt_list;
476
    }
477

  
478
    public String getEmlContents() {
479
        return emlContents;
480
    }
481

  
482
    public void setEmlContents(String emlContents) {
483
        this.emlContents = emlContents;
484
    }
485

  
486
    public String getFileName() {
487
        return fileName;
488
    }
489

  
490
    public void setFileName(String fileName) {
491
        this.fileName = fileName;
492
    }
493

  
494
    public String getDatasourceCode() {
495
        return datasourceCode;
496
    }
497

  
498
    public void setDatasourceCode(String datasourceCode) {
499
        this.datasourceCode = datasourceCode;
500
    }
501

  
502
    public String getFileurl() {
503
        return fileurl;
504
    }
505

  
506
    public void setFileurl(String fileurl) {
507
        this.fileurl = fileurl;
508
    }
509

  
510
    public String getSuggestion() {
511
        return suggestion;
512
    }
513

  
514
    public void setSuggestion(String suggestion) {
515
        this.suggestion = suggestion;
516
    }
517

  
518
    private String isoContents = "";
519

  
520
    public String getIsoContents() {
521
        return isoContents;
522
    }
523

  
524
    public void setIsoContents(String isoContents) {
525
        this.isoContents = isoContents;
526
    }
527

  
528
    public List<D1DocTransferObject> getD1Docs() {
529
        if (d1Docs == null) {
530
            d1Docs = new ArrayList<D1DocTransferObject>();
531
        }
532
        return d1Docs;
533
    }
534

  
535
    public void setD1Docs(List<D1DocTransferObject> d1Docs) {
536
        this.d1Docs = d1Docs;
537
    }
538

  
539
    public int getD1DocsSize() {
540
        return getD1Docs().size();
541
    }
542

  
543
    public int getD1DataDocCount() {
544
        return getD1DocsSize() - 1;
545
    }
546

  
547
}
src/main/java/gov/ornl/mercury3/web/SolrClientController.java (working copy)
1736 1736
                                htmlContent.append(inputLine);
1737 1737
                            }
1738 1738
                            std.setContents(htmlContent.toString());
1739
                            String pid = request.getParameter("pid");
1740
                            std.setPid(pid);
1741
                            System.out.println("******PID: " + pid);
1739 1742
                        } catch (Exception ex) {
1740 1743
                            System.err.println("IOException caught...");
1741 1744
                            ex.printStackTrace();
src/main/webapp/WEB-INF/views/brief.jsp (working copy)
438 438
</script>
439 439

  
440 440
																											<button class="d1-button result-button"
441
																											onclick="window.location='../send/xsltText2?fileURL=${briefRes.fileID}&full_datasource=${briefRes.datasource}&full_queryString=${solrTransactionDetail.gui_queryString}&ds_id=${fn:substringAfter(briefRes.ogc_url,'=')}'">View full metadata</button>
441
																											onclick="window.location='../send/xsltText2?pid=${briefRes.id}&fileURL=${briefRes.fileID}&full_datasource=${briefRes.datasource}&full_queryString=${solrTransactionDetail.gui_queryString}&ds_id=${fn:substringAfter(briefRes.ogc_url,'=')}'">View full metadata</button>
442 442
																										</span>
443 443
																									</div>
444 444
																								</td>
src/main/webapp/WEB-INF/views/eml.xsl (working copy)
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<!-- Edited with XML Spy v2007 (http://www.altova.com) -->
3
<xsl:stylesheet version="1.0"
4
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5
  
6
  <!-- 
7
  <xsl:import href="../../xsl/eml-access.xsl"/>
8
   -->
9
  <xsl:import href="../../xsl/eml-additionalmetadata.xsl"/>
10
  <xsl:import href="../../xsl/eml-attribute.xsl"/>
11
  <xsl:import href="../../xsl/eml-attribute-enumeratedDomain.xsl"/>
12
  <xsl:import href="../../xsl/eml-constraint.xsl"/>
13
  <xsl:import href="../../xsl/eml-coverage.xsl"/>
14
  <xsl:import href="../../xsl/eml-dataset.xsl"/>
15
  <xsl:import href="../../xsl/eml-datatable.xsl"/>
16
  <xsl:import href="../../xsl/eml-distribution.xsl"/>
17
  <xsl:import href="../../xsl/eml-entity.xsl"/>
18
  <xsl:import href="../../xsl/eml-identifier.xsl"/>
19
  <xsl:import href="../../xsl/eml-literature.xsl"/>
20
  <xsl:import href="../../xsl/eml-method.xsl"/>
21
  <xsl:import href="../../xsl/eml-otherentity.xsl"/>
22
  <xsl:import href="../../xsl/eml-party.xsl"/>
23
  <xsl:import href="../../xsl/eml-physical.xsl"/>
24
  <xsl:import href="../../xsl/eml-project.xsl"/>
25
  <xsl:import href="../../xsl/eml-protocol.xsl"/>
26
  <xsl:import href="../../xsl/eml-resource.xsl"/>
27
  <xsl:import href="../../xsl/eml-settings.xsl"/>
28
  <xsl:import href="../../xsl/eml-software.xsl"/>
29
  <xsl:import href="../../xsl/eml-spatialraster.xsl"/>
30
  <xsl:import href="../../xsl/eml-spatialvector.xsl"/>
31
  <xsl:import href="../../xsl/eml-storedprocedure.xsl"/>
32
  <xsl:import href="../../xsl/eml-text.xsl"/>
33
  <xsl:import href="../../xsl/eml-view.xsl"/>
34

  
35

  
36

  
37
 
38

  
39
  <xsl:output method="html" encoding="iso-8859-1"
40
              doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
41
              doctype-system="http://www.w3.org/TR/html4/loose.dtd"
42
              indent="yes" />
43
              
44
              
45
  <!-- global variables to store id node set in case to be referenced-->
46
  <xsl:variable name="ids" select="//*[@id!='']"/>
47

  
48
  <xsl:template match="/">
49
        <div id="{$mainTableAligmentStyle}">
50
          <script language="JavaScript" type="text/JavaScript">
51
	     <xsl:if test="$insertTemplate='0'">
52
                 <xsl:comment>insertTemplateOpening();//</xsl:comment>
53
             </xsl:if>
54
	     <xsl:if test="$insertTemplate='1'">
55
                 insertTemplateOpening();
56
             </xsl:if>
57
          </script>
58

  
59
          <table xsl:use-attribute-sets="cellspacing" width="100%"
60
                                        class="{$mainContainerTableStyle}">
61
          <xsl:apply-templates select="*[local-name()='eml']"/>
62
          </table>
63

  
64
	  <script language="JavaScript" type="text/JavaScript">
65
	     <xsl:if test="$insertTemplate='0'">
66
               <xsl:comment>insertTemplateClosing();//</xsl:comment>
67
             </xsl:if>
68
	     <xsl:if test="$insertTemplate='1'">
69
                 insertTemplateClosing();
70
             </xsl:if>
71
          </script>
72
        </div>
73
   </xsl:template>
74

  
75
   <xsl:template match="*[local-name()='eml']">
76
     <tr><td>
77
       <xsl:for-each select="dataset">
78
         <xsl:call-template name="emldataset"/>
79
       </xsl:for-each>
80
       <xsl:for-each select="citation">
81
         <xsl:call-template name="emlcitation"/>
82
       </xsl:for-each>
83
       <xsl:for-each select="software">
84
         <xsl:call-template name="emlsoftware"/>
85
       </xsl:for-each>
86
       <xsl:for-each select="protocol">
87
         <xsl:call-template name="emlprotocol"/>
88
       </xsl:for-each>
89
      </td></tr>
90

  
91
       <!-- Additinal metadata-->
92
       <xsl:choose>
93
               <xsl:when test="$displaymodule='additionalmetadata' or $displaymodule='printall'">
94
                   <xsl:for-each select="additionalMetadata">
95
                     <xsl:if test="$displaymodule='additionalmetadata' and $additionalmetadataindex=position()">
96
                        <tr><td>
97
                            <xsl:call-template name="additionalmetadata">
98
		               <xsl:with-param name="additionalmetadataindex" select="position()"/>
99
                            </xsl:call-template>
100
                         </td></tr>
101
                     </xsl:if>
102
                     <xsl:if test="$displaymodule='printall'">
103
                        <tr><td>
104
                            <xsl:call-template name="additionalmetadata">
105
		               <xsl:with-param name="additionalmetadataindex" select="position()"/>
106
                            </xsl:call-template>
107
                         </td></tr>
108
                     </xsl:if>
109
                  </xsl:for-each>
110
               </xsl:when>
111
               <xsl:otherwise>
112
                 <xsl:if test="$displaymodule='dataset'">
113
		   <xsl:if test="$withAdditionalMetadataLink='1'">
114
                     <xsl:for-each select="additionalMetadata">
115
                       <tr><td>
116
                         <xsl:call-template name="additionalmetadataURL">
117
                             <xsl:with-param name="index" select="position()"/>
118
                          </xsl:call-template>
119
                       </td></tr>
120
                     </xsl:for-each>
121
                   </xsl:if>
122
                 </xsl:if>
123
              </xsl:otherwise>
124
     </xsl:choose>
125
     <!-- xml format-->
126
   </xsl:template>
127

  
128
   <!--********************************************************
129
                             dataset part
130
       ********************************************************-->
131

  
132
   <xsl:template name="emldataset">
133
      <table xsl:use-attribute-sets="cellspacing"  class="{$tabledefaultStyle}" width="100%">
134
          <xsl:if test="$displaymodule='dataset'">
135
             <xsl:call-template name="datasetpart"/>
136
          </xsl:if>
137
          <xsl:if test="$displaymodule='entity'">
138
             <xsl:call-template name="entitypart"/>
139
          </xsl:if>
140
          <xsl:if test="$displaymodule='attribute'">
141
             <xsl:call-template name="attributepart"/>
142
          </xsl:if>
143
          <xsl:if test="$displaymodule='attributedomain'">
144
             <xsl:call-template name="datasetattributedomain"/>
145
          </xsl:if>
146
          <xsl:if test="$displaymodule='attributecoverage'">
147
             <xsl:call-template name="datasetattributecoverage"/>
148
          </xsl:if>
149
          <xsl:if test="$displaymodule='attributemethod'">
150
             <xsl:call-template name="datasetattributemethod"/>
151
          </xsl:if>
152
          <xsl:if test="$displaymodule='inlinedata'">
153
             <xsl:call-template name="emlinlinedata"/>
154
          </xsl:if>
155
          <xsl:if test="$displaymodule='attributedetail'">
156
             <xsl:call-template name="entityparam"/>
157
          </xsl:if>
158
          <xsl:if test="$displaymodule='printall'">
159
             <xsl:call-template name="printalltemplate"/>
160
          </xsl:if>
161
      </table>
162
   </xsl:template>
163

  
164
   <!--*************** Data set diaplay *************-->
165
   <xsl:template name="datasetpart">
166
			<xsl:call-template name="identifier"/>
167
     <tr>
168
           <td colspan="2">
169
              <xsl:apply-templates select="." mode="dataset"/>
170
           </td>
171
      </tr>
172
   </xsl:template>
173
   
174

  
175
   <!--************ Entity diplay *****************-->
176
   <xsl:template name="entitypart">
177
       <xsl:choose>
178
               <xsl:when test="references!=''">
179
                  <xsl:variable name="ref_id" select="references"/>
180
                  <xsl:variable name="references" select="$ids[@id=$ref_id]" />
181
                  <xsl:for-each select="$references">
182
                     <xsl:call-template name="entitypartcommon"/>
183
                  </xsl:for-each>
184
               </xsl:when>
185
               <xsl:otherwise>
186
                  <xsl:call-template name="entitypartcommon"/>
187
              </xsl:otherwise>
188
         </xsl:choose>
189
    </xsl:template>
190

  
191

  
192
    <xsl:template name="entitypartcommon">
193
      <tr><td colspan="2">
194
            <h3>Entity Description</h3>
195
      </td></tr>
196
      <xsl:call-template name="identifier">
197
                <xsl:with-param name="packageID" select="../@packageId"/>
198
                <xsl:with-param name="system" select="../@system"/>
199
      </xsl:call-template>
200
      <tr>
201
           <td colspan="2">
202
              <!-- find the subtree to process -->
203
             <xsl:call-template name="entityparam"/>
204
           </td>
205
      </tr>
206
   </xsl:template>
207

  
208
   <!--************ Attribute display *****************-->
209
   <xsl:template name="attributedetailpart">
210
   </xsl:template>
211

  
212
    <xsl:template name="attributepart">
213
      <tr><td width="100%">
214

  
215
            <h3>Attributes Description</h3>
216

  
217
      </td></tr>
218
      <tr>
219
           <td width="100%">
220
              <!-- find the subtree to process -->
221
            <xsl:if test="$entitytype='dataTable'">
222
              <xsl:for-each select="dataTable">
223
                  <xsl:if test="position()=$entityindex">
224
                      <xsl:for-each select="attributeList">
225
                         <xsl:call-template name="attributelist">
226
                            <xsl:with-param name="docid" select="$docid"/>
227
                            <xsl:with-param name="entitytype" select="$entitytype"/>
228
                            <xsl:with-param name="entityindex" select="$entityindex"/>
229
                         </xsl:call-template>
230
                      </xsl:for-each>
231
                  </xsl:if>
232
              </xsl:for-each>
233
            </xsl:if>
234
          </td>
235
      </tr>
236
   </xsl:template>
237

  
238
   <!--************************Attribute Domain display module************************-->
239
   <xsl:template name="datasetattributedomain">
240
      <tr><td>
241
            <h3>Attribute Domain</h3>
242
      </td></tr>
243
      <tr>
244
           <td width="100%">
245
             <!-- find the subtree to process -->
246
             <xsl:call-template name="entityparam"/>
247
          </td>
248
      </tr>
249
   </xsl:template>
250

  
251

  
252
   <!--************************Attribute Method display module************************-->
253
   <xsl:template name="datasetattributemethod">
254
      <tr><td>
255
            <h3>Attribute Method</h3>
256
      </td></tr>
257
      <tr>
258
           <td width="100%">
259
             <!-- find the subtree to process -->
260
             <xsl:call-template name="entityparam"/>
261
          </td>
262
      </tr>
263
   </xsl:template>
264

  
265

  
266
   <!--************************Attribute Coverage display module************************-->
267
   <xsl:template name="datasetattributecoverage">
268
     <tr><td>
269
            <h3>Attribute Coverage</h3>
270
      </td></tr>
271
      <tr>
272
           <td width="100%">
273
             <!-- find the subtree to process -->
274
             <xsl:call-template name="entityparam"/>
275
          </td>
276
      </tr>
277
   </xsl:template>
278

  
279

  
280
   <!--************************Print all display module************************-->
281
   <xsl:template name="printalltemplate">
282
 	<!-- find the subtree to process -->
283
             <xsl:call-template name="datasetpart"/>
284
   </xsl:template>
285

  
286

  
287
   <xsl:template name="entityparam">
288
     <xsl:choose>
289
      <xsl:when test="$entitytype=''">
290
	<xsl:variable name="dataTableCount" select="0"/>
291
        <xsl:variable name="spatialRasterCount" select="0"/>
292
        <xsl:variable name="spatialVectorCount" select="0"/>
293
        <xsl:variable name="storedProcedureCount" select="0"/>
294
        <xsl:variable name="viewCount" select="0"/>
295
        <xsl:variable name="otherEntityCount" select="0"/>
296
        <xsl:for-each select="dataTable|spatialRaster|spatialVector|storedProcedure|view|otherEntity">
297

  
298
        <xsl:if test="'dataTable' = name()">
299
           <xsl:variable name="currentNode" select="."/>
300
           <xsl:variable name="dataTableCount">
301
            <xsl:for-each select="../dataTable">
302
    	      <xsl:if test=". = $currentNode">
303
                <xsl:value-of select="position()"/>
304
              </xsl:if>
305
            </xsl:for-each>
306
	   </xsl:variable>
307
           <xsl:if test="position() = $entityindex">
308
             <xsl:choose>
309
               <xsl:when test="$displaymodule='attributedetail'">
310
                 <xsl:for-each select="attributeList">
311
                   <xsl:call-template name="singleattribute">
312
                    <xsl:with-param name="attributeindex" select="$attributeindex"/>
313
                    <xsl:with-param name="docid" select="$docid"/>
314
                    <xsl:with-param name="entitytype" select="'dataTable'"/>
315
                    <xsl:with-param name="entityindex" select="$dataTableCount"/>
316
                   </xsl:call-template>
317
                 </xsl:for-each>
318
               </xsl:when>
319
               <xsl:otherwise>
320
                 <xsl:for-each select="../.">
321
                   <xsl:call-template name="chooseentity">
322
                    <xsl:with-param name="entitytype" select="'dataTable'"/>
323
                    <xsl:with-param name="entityindex" select="$dataTableCount"/>
324
                   </xsl:call-template>
325
                  </xsl:for-each>
326
                  </xsl:otherwise>
327
 		</xsl:choose>
328
           </xsl:if>
329
        </xsl:if>
330

  
331
        <xsl:if test="'spatialRaster' = name()">
332
          <xsl:variable name="currentNode" select="."/>
333
           <xsl:variable name="spatialRasterCount">
334
            <xsl:for-each select="../spatialRaster">
335
    	      <xsl:if test=". = $currentNode">
336
                <xsl:value-of select="position()"/>
337
              </xsl:if>
338
            </xsl:for-each>
339
	   </xsl:variable>
340
            <xsl:if test="position() = $entityindex">
341
           <xsl:choose>
342
               <xsl:when test="$displaymodule='attributedetail'">
343
                 <xsl:for-each select="attributeList">
344
                   <xsl:call-template name="singleattribute">
345
                    <xsl:with-param name="attributeindex" select="$attributeindex"/>
346
                    <xsl:with-param name="docid" select="$docid"/>
347
                    <xsl:with-param name="entitytype" select="'spatialRaster'"/>
348
                    <xsl:with-param name="entityindex" select="$spatialRasterCount"/>
349
                   </xsl:call-template>
350
                 </xsl:for-each>
351
               </xsl:when>
352
               <xsl:otherwise>
353
                 <xsl:for-each select="../.">
354
                   <xsl:call-template name="chooseentity">
355
                    <xsl:with-param name="entitytype" select="'spatialRaster'"/>
356
                    <xsl:with-param name="entityindex" select="$spatialRasterCount"/>
357
                   </xsl:call-template>
358
                  </xsl:for-each>
359
                  </xsl:otherwise>
360
 		</xsl:choose>
361
            </xsl:if>
362
        </xsl:if>
363

  
364
        <xsl:if test="'spatialVector' = name()">
365
          <xsl:variable name="currentNode" select="."/>
366
           <xsl:variable name="spatialVectorCount">
367
            <xsl:for-each select="../spatialVector">
368
    	      <xsl:if test=". = $currentNode">
369
                <xsl:value-of select="position()"/>
370
              </xsl:if>
371
            </xsl:for-each>
372
	   </xsl:variable>
373
           <xsl:if test="position() = $entityindex">
374
             <xsl:choose>
375
               <xsl:when test="$displaymodule='attributedetail'">
376
                 <xsl:for-each select="attributeList">
377
                   <xsl:call-template name="singleattribute">
378
                    <xsl:with-param name="attributeindex" select="$attributeindex"/>
379
                    <xsl:with-param name="docid" select="$docid"/>
380
                    <xsl:with-param name="entitytype" select="'spatialVector'"/>
381
                    <xsl:with-param name="entityindex" select="$spatialVectorCount"/>
382
                   </xsl:call-template>
383
                 </xsl:for-each>
384
               </xsl:when>
385
               <xsl:otherwise>
386
                 <xsl:for-each select="../.">
387
                   <xsl:call-template name="chooseentity">
388
                    <xsl:with-param name="entitytype" select="'spatialVector'"/>
389
                    <xsl:with-param name="entityindex" select="$spatialVectorCount"/>
390
                   </xsl:call-template>
391
                  </xsl:for-each>
392
                  </xsl:otherwise>
393
 		</xsl:choose>
394
           </xsl:if>
395
        </xsl:if>
396

  
397
        <xsl:if test="'storedProcedure' = name()">
398
          <xsl:variable name="currentNode" select="."/>
399
           <xsl:variable name="storedProcedureCount">
400
            <xsl:for-each select="../storedProcedure">
401
    	      <xsl:if test=". = $currentNode">
402
                <xsl:value-of select="position()"/>
403
              </xsl:if>
404
            </xsl:for-each>
405
	   </xsl:variable>
406
           <xsl:if test="position() = $entityindex">
407
             <xsl:choose>
408
               <xsl:when test="$displaymodule='attributedetail'">
409
                 <xsl:for-each select="attributeList">
410
                   <xsl:call-template name="singleattribute">
411
                    <xsl:with-param name="attributeindex" select="$attributeindex"/>
412
                    <xsl:with-param name="docid" select="$docid"/>
413
                    <xsl:with-param name="entitytype" select="'storedProcedure'"/>
414
                    <xsl:with-param name="entityindex" select="$storedProcedureCount"/>
415
                   </xsl:call-template>
416
                 </xsl:for-each>
417
               </xsl:when>
418
               <xsl:otherwise>
... This diff was truncated because it exceeds the maximum size that can be displayed.
Add picture from clipboard (Maximum size: 14.8 MB)