dtSearch Web

You need to update options file created by dtSearch Web. For example, if you deployed search form as "dtSearch.html", in the same folder there should be file "dtSearch_options.html".

Open *_options.html and add the following to the end of the ResultsScript block:

<script src="/highlighter/js/pdf-highlighter.min.js"></script>
<script>
if (pdfHighlighter.isPdfViewerCompatible()) {
pdfHighlighter.initOnDOMContentLoaded({
highlighterUrl: '/highlighter/',
viewer: {
url: '/highlighter/viewer/index.html',
// including script for integration with dtSearch Web navigation buttons
script: '/highlighter/js/viewer-dtweb-glue.js'
},
navigation: 'hit-to-hit', // dtSearch navigates between hits so using the same
updateHref: true
});
}
</script>

comments powered by Disqus