citation-style-language/csl-editor

More options for search by example

zuphilip opened this issue · 3 comments

For numeric styles or also author-date styles the inline-citation will most of the time look the same, but the entry in the bibliography can vary very much. However, in the search by example will always rank the result on a combined matching. In these cases it would make sense to have an option to deactivate (toggle) to search only for a good match in the bibliography.

this is actually already possible in response to me bringing up exactly the same concerns with Steve as the editor was developed. It wasn't included in the regular release version because Mendeley's UX experts found it too cluttered/confusing, but if you add
?advanced=true to the search by example URL (i.e. http://editor.citationstyles.org/searchByExample/?advanced=true ) you get one box to select multiple citations and one box to match the results on the entire search, not equally weighted citation/bibliography.

I tried the second option out which sounds similar to my request. However, I always receive 'No results found'. Does it work for you?

Another thing which I thought about: Could we make a similar advanced option which ignores some characters? My impression is that we mostly want to check the order and presence of the different elements. Therefore, I would suggest to ignore all punctations, i.e. delete them for comparison. @adam3smith What do you think?

I don't yet understand the code, but a starting point seems to be https://github.com/citation-style-language/csl-editor/blob/master/src/SearchByExample.js#L473