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.

CommentFileSizeAuthor
#10 bible.module.txt102.47 KBcoopercrazy

Comments

MikeLee_Birdy’s picture

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

coopercrazy’s picture

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.

MikeLee_Birdy’s picture

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

coopercrazy’s picture

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

Thanks.

coopercrazy’s picture

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.

MikeLee_Birdy’s picture

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.

coopercrazy’s picture

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.

MikeLee_Birdy’s picture

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

coopercrazy’s picture

MikeLee,

That is very nice! Thank you very much.

Merry Christmas!

coopercrazy’s picture

StatusFileSize
new102.47 KB

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.

MikeLee_Birdy’s picture

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

avpaderno’s picture

Version: 6.x-1.2-rc9 » 6.x-1.x-dev
Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue, since it's for a Drupal version no longer supported.