Commit fc0f702c authored by Sven-S. Porst's avatar Sven-S. Porst
Browse files

make keyword links work when extended search is not available

JS + no JS version
parent 84638363
......@@ -944,7 +944,18 @@ private function keywordsDetailLine ($result) {
$linkElement = $this->doc->createElement('a');
$URIBuilder = $this->controllerContext->getUriBuilder();
$linkURI = $URIBuilder->uriFor('index', Array('queryStringKeyword' => '"' . $keyword . '"', 'extended' => 1, 'useJS' => 'no'), 'Pazpar2', 'Pazpar2');
$parameters = Array('useJS' => 'no');
if ($this->conf['extendedSearch'] == 1) {
// The subject field is available: switch to extended search and use it.
$parameters['queryStringKeyword'] = '"' . $keyword . '"';
$parameters['extended'] = 1;
}
else {
// The subject field is not available: use "subject=XXX" in the general search field.
$parameters['queryString'] = 'subject="' . $keyword . '"';
}
$linkURI = $URIBuilder->uriFor('index', $parameters , 'Pazpar2', 'Pazpar2');
$linkElement->setAttribute('href', $linkURI);
$titleString = Tx_Extbase_Utility_Localization::translate('nach Schlagwort "#" suchen', 'Pazpar2');
$titleString = str_replace('#', $keyword, $titleString);
......
......@@ -203,7 +203,7 @@ Many thanks go to [Index Data](http://www.indexdata.com/) for their powerful paz
## Version History ##
* 2.0.1 (2012-08-??): more generic display of journal information for articles
* 2.0.1 (2012-09-??): more generic display of journal information for articles, better handling of subject search when extended search is not available
* 2.0.0 (2012-06-13): cooperation with nkwgok requires at least version 2 of that extension; display improvements; support MathJax; add visible link to hide the status panel; fix bug in Google Books links;
* 1.8.0 (2012-05-29): fix localisation for keyword search field label; enable use of boolean operators in extended search fields; add display of MSC classification; make facet configuration accessible from TypoScript; add ability to display facets for the `country` field containing ISO 3166-1 alpha-2 country codes and the `source-type` field
* 1.7.0 (2012-03-30): display the location covered by maps from the `` attribute of the `mapscale` field; Display the scale of maps from the `mapscale`field; Remove ZDB-JOP sid configuration from script, it has to be inserted into the URL by the proxy now; Add ability to display a link to the parent record (`catalogue-url-parent` field); Remove hard coded recognition and rewriting of Göttingen Opac URLs, the same effect is achieved more generically by using at least revision v2 of [pazpar2-access](https://github.com/ssp/pazpar2-access)
......
Subproject commit ba20c662f47536cff0ed692f32b7d0fc918cae36
Subproject commit 5556d8f8cca5c313f5dff846e602320bef274e6c
Supports Markdown
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