|
361 | 361 | let instrument = document.getElementById(instrumentItemId).value; |
362 | 362 |
|
363 | 363 | let expSearchParams = ""; |
| 364 | + let separator = ""; |
364 | 365 | if (author) { |
365 | 366 | expAnnotationFilters.push(createFilter(authorsItemId, author)); |
366 | | - expSearchParams += "Targeted MS Experiment List." + "authors~containsoneof" + "=" + encodeURIComponent(author) + "&"; |
| 367 | + expSearchParams += separator + "Targeted MS Experiment List." + "authors~containsoneof=" + encodeURIComponent(author); |
| 368 | + separator = "&"; |
367 | 369 | } |
368 | 370 | if (title) { |
369 | 371 | expAnnotationFilters.push(createFilter(titleItemId, title)); |
370 | | - expSearchParams += "Targeted MS Experiment List." + "title~containsoneof" + "=" + encodeURIComponent(title) + "&"; |
| 372 | + expSearchParams += separator + "Targeted MS Experiment List." + "title~containsoneof=" + encodeURIComponent(title); |
| 373 | + separator = "&"; |
371 | 374 | } |
372 | 375 | if (organism) { |
373 | 376 | expAnnotationFilters.push(createFilter(organismItemId, organism)); |
374 | | - expSearchParams += "Targeted MS Experiment List." + "organism~containsoneof" + "=" + encodeURIComponent(organism.replaceAll(",", ";")) + "&"; |
| 377 | + expSearchParams += separator + "Targeted MS Experiment List." + "organism~containsoneof=" + encodeURIComponent(organism.replaceAll(",", ";")); |
| 378 | + separator = "&"; |
375 | 379 | } |
376 | 380 | if (instrument) { |
377 | 381 | expAnnotationFilters.push(createFilter(instrumentItemId, instrument)); |
378 | | - expSearchParams += "Targeted MS Experiment List." + "instrument~containsoneof" + "=" + encodeURIComponent(instrument.replaceAll(",", ";")); |
| 382 | + expSearchParams += separator + "Targeted MS Experiment List." + "instrument~containsoneof" + "=" + encodeURIComponent(instrument.replaceAll(",", ";")); |
| 383 | + separator = "&"; |
379 | 384 | } |
380 | 385 | if (expSearchParams !== "") { |
381 | 386 | location.replace(window.location.href + "?" + expSearchParams); |
|
494 | 499 | ]; |
495 | 500 | } |
496 | 501 |
|
| 502 | + debugger; |
497 | 503 | let wp = new LABKEY.QueryWebPart({ |
498 | 504 | renderTo: 'webpart_'+ expWebpart[0].webPartId, |
499 | 505 | title: 'Panorama Public Experiments', |
|
0 commit comments