Skip to content

Commit

Permalink
Merge pull request #98 from nhart/7.x-1.4
Browse files Browse the repository at this point in the history
add page fragment regardless of search type
  • Loading branch information
ppound committed Oct 24, 2014
2 parents 562f374 + 5863bd0 commit 70cef01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion islandora_newspaper.module
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 70cef01

Please sign in to comment.