Reply To: opac facets

Home Forums ABCD Installation opac facets Reply To: opac facets

#7063
ABCD Community
Keymaster
Helpful
Up
0
Down
Not Helpful
::

Hi, Peter!

In fact, single quotes ‘ break the facets, because the button is a JavaScript function that uses these characters.

In your test, I see the line:
replace(v260^b,`'`,``)

– This works to remove the quote from the term in the preview, but it doesn’t work because the term isn’t formatted that way in the index.

Everything needs to be “synchronized.”

Add a line like this to your marc.fst file:
260 0 mpu,('EDC_'replace(v260^b,`'`,``))/

Then, in marc_facetas.dat, modify the Publisher field to:

Publisher|replace(v260^b,`'`,``)|EDC_|Q

If the replace operation follows the same rules on both sides, the facets will work.