Download & Extend

Search Function Suggestion

Project:Bible
Version:6.x-1.2-rc9
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I love the Bible module. It works great!

There is one thing I would like to add, and that is the ability to search not only by keyword, but by verse numbers. For example I would like to be able to put in the search box 4:24 and see every verse that has a corresponding Chapter and Verse.

I would do this myself, but I have no idea how to implement.

Thanks.

Comments

#1

Dear Sir:
Discuss for awhile: do you think if I use regex to solve this function is a good idea?
MikeLee

#2

Hi Mikelee,

I think the regex would work. It might not be the most efficient method of searchng. I'd be willing to do some testing if you can get something working. What is the current method you use to do keyword searches within the text?

Perhaps a good idea would be to have a check box that one could check if they wanted to perform the verse number search. Maybe an wven better suggestion would be to have a seperate search box which performs this type of search.

Thanks.

#3

Dear Sir:
I've finish this function development. Please use the latest version in http://drupal.org/node/979716 for test. And please let me know if there I should do some thing more. Thanks.
MikeLee

#4

Thanks MikeLee. I will begin checking it out and let you know how it does.

Thanks.

#5

MikeLee,

I was able to conduct an advanced search with the format "*:1:1" (without the quotes). This returns all books which have a chapter 1 and verse 1 as expected.

Is there any way to perform an advanced search from the quick "Bible Search" block?

Thanks.

#6

Dear Sir:
I've some plans:
1. Put advance option in Search Block also. But this will enlarge and change all block size to those who use this module. Of course we can make this advance option collapsible.
2. Add some syntax to teach user to use advance search, such as "search keyword [*:1:1]". This will cause some other effort to education users.
3. An simple link to tell user, if you need advance search, jump to normal bible search page.
Which do think is better?
MikeLee

ps. I've update a new release to solve some bugs. Please update.

#7

MikeLee

I like option 1 - it could also be something that gets turned on in the Bible Module's settings page. I.e. default is that that the search block performs a simple search. A checkbox could turn on whether the search block performs an advanced search.

I think option 2 would certainly be useful as well. I would consider option 3 as a last resort.

I will also check out the latest update.

Thanks Again.

#8

Dear Sir:
I've finish this part. As option 1, Admin/Config got a new block configuration, so that Search Block as a switch to enable/disable Advance Option. Please try http://drupal.org/node/999008 .
MikeLee

#9

MikeLee,

That is very nice! Thank you very much.

Merry Christmas!

#10

MikeLee,

I took the liberty of making a few changes to the layout of the block search form.
You can choose to keep them or not. Let me know what you think.

AttachmentSize
bible.module.txt 102.47 KB

#11

Dear Sir:
Thanks....I'll put it into next release. Happy New Year!
MikeLee

nobody click here