opac facets

Home Forums ABCD Installation opac facets

This forum is about questions on the ABCD installation process. Please choose a topic related to your operating system.
  • Creator
    Topic
  • #7061
    peter
    Participant
    Helpful
    Up
    0
    Down
    Not Helpful
    ::

    Hello, when the data field used in the facets contains a single quote ‘ it breaks the search.

    How can the search expression work with a single quote ‘ present in the data field ?

    The single quote ‘ breaks the search in our setup. Replacing the single quote ‘ with a space in the facets search expression does not solve the issue.
    replace(v260^b,',)

     

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #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.

    #7066
    peter
    Participant
    Helpful
    Up
    0
    Down
    Not Helpful
    ::

    ok thank you for the description, I will work further on the FST file. So far i was not successful with the below, clicking on the opac facets during a search ends up in “No records found”.

     

    260 0 mpu,('ED_'replace(v260^b,',))/
    • This reply was modified 2 weeks, 4 days ago by peter.
    • This reply was modified 2 weeks, 4 days ago by peter.
    • This reply was modified 2 weeks, 4 days ago by peter.
    • This reply was modified 2 weeks, 4 days ago by peter.
    • This reply was modified 2 weeks, 4 days ago by peter.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.