Skip to content
Snippets Groups Projects
Commit 374c114a authored by Demian Katz's avatar Demian Katz
Browse files

Remove unused code.

parent b82706cb
No related merge requests found
...@@ -1121,34 +1121,6 @@ class AjaxController extends AbstractBase ...@@ -1121,34 +1121,6 @@ class AjaxController extends AbstractBase
return $this->output($html, self::STATUS_OK); return $this->output($html, self::STATUS_OK);
} }
/**
* Process an export request
*
* @return \Zend\Http\Response
*/
protected function exportFavoritesAjax()
{
$format = $this->params()->fromPost('format');
$export = $this->serviceLocator->get('VuFind\Export');
$url = $export->getBulkUrl(
$this->getViewRenderer(), $format,
$this->params()->fromPost('ids', [])
);
$html = $this->getViewRenderer()->render(
'ajax/export-favorites.phtml',
['url' => $url, 'format' => $format]
);
return $this->output(
[
'result' => $this->translate('Done'),
'result_additional' => $html,
'needs_redirect' => $export->needsRedirect($format),
'export_type' => $export->getBulkExportType($format),
'result_url' => $url
], self::STATUS_OK
);
}
/** /**
* Fetch Links from resolver given an OpenURL and format as HTML * Fetch Links from resolver given an OpenURL and format as HTML
* and output the HTML content in JSON object. * and output the HTML content in JSON object.
......
<div class="alert alert-info">
<div class="text-center">
<?=$this->transEsc('export_success'); ?>&nbsp;&mdash;&nbsp;
<a class="btn btn-primary" href="<?=$this->escapeHtmlAttr($this->url)?>"<?=$this->export()->needsRedirect($this->format) ? ' target="_blank"' : ''?>><?=
$this->export()->needsRedirect($this->format)
? $this->transEsc('export_redirect', ['%%service%%' => $this->translate($this->export()->getLabelForFormat($this->format))])
: $this->transEsc('export_download')
?></a>
</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