render search result highlights as images and show in pages view

This commit is contained in:
j 2023-06-12 14:30:32 +01:00
commit 48e6d4af6f
8 changed files with 273 additions and 12 deletions

View file

@ -1470,6 +1470,17 @@ pandora.getFindLayer = function() {
return key
};
pandora.getFulltextQuery = function() {
if (pandora.user.ui.findDocuments) {
var conditions = pandora.user.ui.findDocuments.conditions.filter(condition => {
return condition.key == 'fulltext'
})
if (conditions.length) {
return conditions[0].value
}
}
};
pandora.getHash = function(state, callback) {
// FIXME: remove this
var embedKeys = [