Skip to content
Snippets Groups Projects

[RTfixed] hotline#176160 : fix FRBR module to use any type of records URL.

Merged Arthur Suzuki requested to merge hotline#176160_fix_frbr_url into master
All threads resolved!
Files
2
@@ -211,7 +211,7 @@ class Class_FRBR_Link extends Storm_Model_Abstract {
if ('opac' == $request->getModuleName()
&& 'recherche' == $request->getControllerName()
&& 'viewnotice' == $request->getActionName()) {
$callback(self::TYPE_NOTICE, $clef);
$callback(self::TYPE_NOTICE, $this->_detectRecordKeyFromUrl($request));
;
return;
}
@@ -224,12 +224,12 @@ class Class_FRBR_Link extends Storm_Model_Abstract {
if ($clef = $request->getParam('clef'))
return $clef;
if ($id = $request->getParam('id'))
return Class_Notice::find($id)->getClefAlpha();
$id = $request->getParam('id') ?? Class_MoteurRecherche_RecordRequest::answer($request)
->recordId();
if ($notice = Class_Notice::find(Class_MoteurRecherche_RecordRequest::answer($request)
->recordId()))
return $notice->getClefAlpha();
return ($notice = Class_Notice::find($id))
? $notice->getClefAlpha()
: '';
return '';
}