I've tried to use biblio_db_search() with OR as operator but biblio module still acts like I set the operator as AND.
The function call I've tried is like biblio_db_serach("inline","keyword","drupal","or","keyword,"qazBOB"). Thus instead serching for biblios witch keyword is drupal or qazBOB, it search for biblios who have both of this keywords.

CommentFileSizeAuthor
#2 biblio.module_3.patch7.78 KBqazBOB

Comments

rjerome’s picture

As it is now that "or" would be ignored. Although this seems straight forward, it is actually a bit tricky, but I have been looking at ways to achieve this and will implement this capability sometime soon.

Ron.

qazBOB’s picture

Version: 5.x-1.2 » 5.x-1.4
Status: Active » Reviewed & tested by the community
StatusFileSize
new7.78 KB

Hi, I've solved. I have modified the biblio_db_search(), now it's possible to combine the use of ANDs and ORs also in the same query.

In attachment the biblio_db_search() that I've modified.

Roberto

qazBOB’s picture

Version: 5.x-1.4 » 5.x-1.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)
qazBOB’s picture

Did anyone found this patch useful?

rjerome’s picture

I'll revisit this since I'm looking at db_search function right now in 6.x

savitha’s picture

Hi,

does this patch is really working?, because I tried and it didn't work for me.

ar-jan’s picture

Status: Patch (to be ported) » Closed (won't fix)

I'm assuming this is fixed in 6.x and 7.x branches, and 5.x is no longer supported.
Edit: I see it's still an issue in D6: #1273484: OR_clause in the biblio_db search function of the biblio module, but leaving status as won't fix for 5.x.