Feature #470
Chapter reference lookup
100%
Description
Add ability to go directly to a chapter by entering a verse in a text-box.
Associated revisions
Added ability to jump to section in document by typing an section reference. Reference #470.
Added ability to jump to section in document by typing an section reference. Reference #470.
Added ability to jump to section in document by typing an section reference. Reference #470.
Fixed issue where incorrect chapter references caused verses to flag as invalid too.
Also updated the Javascript such that the section description is updated according to the verse selected.
Closes #470.
Fixed issue where incorrect chapter references caused verses to flag as invalid too.
Also updated the Javascript such that the section description is updated according to the verse selected.
Closes #470.
Fixed issue where incorrect chapter references caused verses to flag as invalid too.
Also updated the Javascript such that the section description is updated according to the verse selected.
Closes #470.
History
#1 Updated by Luke Murphey almost 12 years ago
There are a couple of difficulties with this:
- Some works have sections with spaces in them. These spaces are difficult to distinguish from spaces intended to separate indicators (like a reference to "1 Timothy")
- References that include the verse indicator may be treated as chapter indicators
#2 Updated by Luke Murphey almost 12 years ago
- % Done changed from 0 to 50
#3 Updated by Luke Murphey almost 12 years ago
I think I have a method to handle differentiating verse indicators and chapter indicators.
- Try to match division on all of the indicators
- If the match succeeds, the return the division
- If the match fails, try to match without the last indicator
- If the partial match fails, then stop
- If the partial match succeeds, ensure that the verse exists in the given chapter
- If the verse exists, then return the verse and chapter
The function to get the chapter should also return the verse that matched so that it can indicate that a verse was matched.
#4 Updated by Luke Murphey almost 12 years ago
- Status changed from In Progress to Closed
- % Done changed from 50 to 100