Commit 92e204713b60a8211b110275104097787326485e Introduced a switch statement which is breaking opac-detail.pl. This needs to be changed to an if construct.
Patch from Frederic pushed new/bug_5382, and merged to master, please test and close