Skip to content
Snippets Groups Projects
Commit 2998b930 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Dewey flag rename.

parent fc89c0fa
No related merge requests found
...@@ -378,7 +378,7 @@ class BrowseController extends AbstractBase ...@@ -378,7 +378,7 @@ class BrowseController extends AbstractBase
]; ];
} }
$view->categoryList = $categoryList; $view->categoryList = $categoryList;
$view->query_field = 'dewey'; $view->dewey_flag = 1;
if ($this->params()->fromQuery('findby')) { if ($this->params()->fromQuery('findby')) {
$secondaryList = $this->quoteValues( $secondaryList = $this->quoteValues(
$this->getFacetList( $this->getFacetList(
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<? foreach($this->secondaryList as $secondary): ?> <? foreach($this->secondaryList as $secondary): ?>
<li<? if ($this->query == $secondary['value'].'' || $this->query == $secondary['value'].'*'): ?> class="active"<? endif; ?>> <li<? if ($this->query == $secondary['value'].'' || $this->query == $secondary['value'].'*'): ?> class="active"<? endif; ?>>
<? if (!empty($this->categoryList) && $this->currentAction != 'Tag' && $this->findby != 'alphabetical'):?> <? if (!empty($this->categoryList) && $this->currentAction != 'Tag' && $this->findby != 'alphabetical'):?>
<a href="<?=$SEARCH_BASE ?>?lookfor=<? if ($this->filter): ?>&filter[]=<?=urlencode($this->filter) ?>%3A<?=str_replace('+AND+','&filter[]=', urlencode($secondary['value'])) ?><? endif; ?>&filter[]=<?=$this->browse()->getSolrField($this->currentAction) ?>%3A[* TO *]<? if($this->query_field == 'dewey'):?>&sort=dewey-sort<?endif;?>" class="viewRecords"><?=$this->transEsc('View Records') ?></a> <a href="<?=$SEARCH_BASE ?>?lookfor=<? if ($this->filter): ?>&filter[]=<?=urlencode($this->filter) ?>%3A<?=str_replace('+AND+','&filter[]=', urlencode($secondary['value'])) ?><? endif; ?>&filter[]=<?=$this->browse()->getSolrField($this->currentAction) ?>%3A[* TO *]<? if($this->dewey_flag):?>&sort=dewey-sort<?endif;?>" class="viewRecords"><?=$this->transEsc('View Records') ?></a>
<? endif; ?> <? endif; ?>
<a href="<?=$BROWSE_BASE ?>?findby=<?=urlencode($this->findby) ?>&category=<?=urlencode($this->category) ?>&query=<?=urlencode($secondary['value']) ?><? if ($this->facetPrefix): ?>&facet_prefix=<?=urlencode($secondary['displayText']) ?><? endif; ?><? if ($this->secondaryParams): foreach($this->secondaryParams as $var=>$val): ?>&<?=$var ?>=<?=urlencode($val) ?><? endforeach;endif; ?>"><?=$this->escapeHtml($secondary['displayText']) ?><? if ($this->findby != 'alphabetical'): ?> (<?=$this->localizedNumber($secondary['count']) ?>)<? endif; ?></a> </li> <a href="<?=$BROWSE_BASE ?>?findby=<?=urlencode($this->findby) ?>&category=<?=urlencode($this->category) ?>&query=<?=urlencode($secondary['value']) ?><? if ($this->facetPrefix): ?>&facet_prefix=<?=urlencode($secondary['displayText']) ?><? endif; ?><? if ($this->secondaryParams): foreach($this->secondaryParams as $var=>$val): ?>&<?=$var ?>=<?=urlencode($val) ?><? endforeach;endif; ?>"><?=$this->escapeHtml($secondary['displayText']) ?><? if ($this->findby != 'alphabetical'): ?> (<?=$this->localizedNumber($secondary['count']) ?>)<? endif; ?></a> </li>
<? endforeach; ?> <? endforeach; ?>
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<? endif; ?> <? endif; ?>
</a> </a>
<? if($viewRecord): ?> <? if($viewRecord): ?>
<a class="list-group-item view-record" href="<?=$SEARCH_BASE ?>?lookfor=<? if ($this->filter): ?>&filter[]=<?=urlencode($this->filter) ?>%3A<?=str_replace('+AND+','&filter[]=', urlencode($secondary['value'])) ?><? endif; ?>&filter[]=<?=$this->browse()->getSolrField($this->currentAction) ?>%3A[* TO *]<? if($this->query_field == 'dewey'):?>&sort=dewey-sort<?endif;?>"><?=$this->transEsc('View Records') ?></a> <a class="list-group-item view-record" href="<?=$SEARCH_BASE ?>?lookfor=<? if ($this->filter): ?>&filter[]=<?=urlencode($this->filter) ?>%3A<?=str_replace('+AND+','&filter[]=', urlencode($secondary['value'])) ?><? endif; ?>&filter[]=<?=$this->browse()->getSolrField($this->currentAction) ?>%3A[* TO *]<? if($this->dewey_flag):?>&sort=dewey-sort<?endif;?>"><?=$this->transEsc('View Records') ?></a>
<? endif; ?> <? endif; ?>
<? endforeach; ?> <? endforeach; ?>
</div> </div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment