From 5863bd0fe782442184aaa59a0dcd9171f9a02001 Mon Sep 17 00:00:00 2001 From: Nelson Hart Date: Tue, 14 Oct 2014 15:23:04 -0300 Subject: [PATCH] add page fragment regardless of search type --- islandora_newspaper.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/islandora_newspaper.module b/islandora_newspaper.module index c8efe87..5833725 100644 --- a/islandora_newspaper.module +++ b/islandora_newspaper.module @@ -368,11 +368,12 @@ function islandora_newspaper_islandora_newspaperpagecmodel_islandora_solr_object if (islandora_object_access(ISLANDORA_VIEW_OBJECTS, islandora_object_load($issue_pid))) { $search_results['object_url'] = "islandora/object/$issue_pid"; + $search_results['object_url_fragment'] = "page/$page_number/mode/1up"; // XXX: Won't handle fielded searches nicely... then again, if our // highlighting field is not the one being search on, this makes sense? if ($query_processor->solrDefType == 'dismax' || $query_processor->solrDefType == 'edismax') { - $search_results['object_url_fragment'] = "page/$page_number/mode/1up/search/" . rawurlencode($query_processor->solrQuery); + $search_results['object_url_fragment'] .= "/search/" . rawurlencode($query_processor->solrQuery); } } }