Difference between revisions of "Search"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<html lang="en" class="no-js"> | <html lang="en" class="no-js"> | ||
<head> | <head> | ||
− | + | <link rel="stylesheet" href="https://static.cloud.coveo.com/searchui/v2.10104/css/CoveoFullSearch.min.css" /> | |
− | + | <script class="coveo-script" src="https://static.cloud.coveo.com/searchui/v2.10104/js/CoveoJsSearch.Lazy.min.js"></script> | |
− | + | <script src="https://static.cloud.coveo.com/searchui/v2.10104/js/templates/templates.js"></script> | |
− | + | <script> | |
− | + | document.addEventListener("DOMContentLoaded", function () { | |
+ | let organizationId = "epriproductione28sc58i"; | ||
+ | let accessToken = "xx8ab82222-22e8-4edf-9944-4a182027d67a"; | ||
+ | Coveo.SearchEndpoint.configureCloudV2Endpoint(organizationId, accessToken); | ||
+ | const root = document.querySelector('#search'); | ||
− | + | try{ | |
− | + | Coveo.$$(root).on('preprocessResults', function (e, args) { | |
− | + | args.results.results.forEach(result => { | |
− | + | var uri= result.Uri; | |
− | + | if (uri.includes('/images')) { | |
− | }) | + | var uri= uri.substring(uri.lastIndexOf('/') + 1); |
− | + | result.Title = result.title = result.raw.title = uri; | |
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | } | ||
+ | catch(error){} | ||
+ | |||
+ | Coveo.init(root); | ||
+ | |||
+ | }); | ||
+ | </script> | ||
</head> | </head> | ||
<body> | <body> | ||
<div id="search" class="CoveoSearchInterface" data-enable-history="true" data-excerpt-length="150"> | <div id="search" class="CoveoSearchInterface" data-enable-history="true" data-excerpt-length="150"> | ||
<div class="coveo-tab-section" style="display:none!important" > | <div class="coveo-tab-section" style="display:none!important" > | ||
− | <a class="CoveoTab" data-id="All" data-caption="All Content" data-expression="@source=NuclearWikis and @uri<> | + | <a class="CoveoTab" data-id="All" data-caption="All Content" data-expression="@source=NuclearWikis and @uri<>tgug.epri.com"></a> |
</div> | </div> | ||
Line 37: | Line 51: | ||
<div class="CoveoResultList"> | <div class="CoveoResultList"> | ||
<script id="Default" class="result-template" type="text/html" data-layout="list"> | <script id="Default" class="result-template" type="text/html" data-layout="list"> | ||
− | + | <div class="coveo-result-frame"> | |
− | + | <div class="coveo-result-cell" style="vertical-align:top;text-align:center;width:32px;"> | |
− | + | <span class="CoveoIcon" data-small="true" data-with-label="false"></span> | |
− | + | </div> | |
− | + | <div class="coveo-result-cell" style="vertical-align: top;padding-left: 16px;"> | |
− | + | <div class="coveo-result-row" style="margin-top:0;"> | |
− | + | <div class="coveo-result-cell" style="vertical-align:top;font-size:16px;" role="heading" aria-level="2"> | |
− | + | <a class="CoveoResultLink"></a> | |
− | + | </div> | |
− | + | <div class="coveo-result-cell" style="width:120px;text-align:right;font-size:12px"> | |
− | + | <div class="coveo-result-row"> | |
− | + | <span class="CoveoFieldValue" data-field="@date" data-helper="date"></span> | |
− | + | </div> | |
− | + | </div> | |
− | + | </div> | |
− | + | <div class="coveo-result-row" style="margin-top:10px;"> | |
− | + | <div class="coveo-result-cell"> | |
− | + | <span class="CoveoExcerpt"></span> | |
− | + | </div> | |
− | + | </div> | |
− | + | <div class="coveo-result-row" style="margin-top:10px;"> | |
− | + | <div class="coveo-result-cell"> | |
− | + | <div class="CoveoPrintableUri"></div> | |
− | + | </div> | |
− | + | </div> | |
− | + | <div class="coveo-result-row"> | |
− | + | <div class="coveo-result-cell"> | |
− | + | <div class="CoveoMissingTerms"></div> | |
− | + | </div> | |
− | + | </div> | |
− | + | </div> | |
− | + | </div> | |
− | + | </script> | |
</div> | </div> |
Latest revision as of 18:27, 5 September 2025
Record of Revisions
Number | Date | Description of Changes |
---|---|---|
0 | 7/21/2021 | Initial Release |