Search Highlighting in Baggage Files
When you click on a result in your Search Results, you’ll open the associated source document or baggage file. If what you are clicking is a baggage file and you want to get the highlighting feature in your baggage file, you’ll have to copy next to your file and then reference the reverb-search.js script in the <head> tag of your HTML file. The reverb-search.js file lives in the installation directory at ...\WebWorks\ePublisher\<VERSION>\Formats\WebWorks Reverb 2.0\API\reverb-search.js.
To Reference the reverb-search.js File From Within Your HTML File (After Copying the Script Next to Your HTML File)
1. Open your HTML document.
2. Locate the <head> tag.
3. Create the following line inside the <head> tag, pointing to the script you just copied:
<script type="text/javascript" src=".../reverb-search.js"></script>
4. Save your HTML file.
5. You can either Enable in your Target Settings under Baggage Files the Copy baggage file dependents (this will copy the script to the Output folder, see Copy baggage file dependents), or you can manually copy the file to the Output directory, next to your baggage file.
Was this helpful?
Last modified date: 01/19/2022