[jsword-svn] jsword/java/jsword/org/crosswire/jsword/book s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Wed Jan 26 19:18:37 MST 2005


Update of /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book
In directory www.crosswire.org:/tmp/cvs-serv21172/java/jsword/org/crosswire/jsword/book

Modified Files:
	BookData.java 
Log Message:
Fixed the searching to return all hits.
Problem was that it was using a Tally Passage.

Index: BookData.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/BookData.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** BookData.java	30 Aug 2004 09:27:07 -0000	1.7
--- BookData.java	27 Jan 2005 02:18:35 -0000	1.8
***************
*** 86,91 ****
                  if (data instanceof Element)
                  {
!                     String txt = OSISUtil.getPlainText((Element) data);
!                     buffer.append(txt);
                  }
              }
--- 86,95 ----
                  if (data instanceof Element)
                  {
!                     Element ele = (Element) data;
!                     if (ele.getName().equals(OSISUtil.OSIS_ELEMENT_VERSE))
!                     {
!                         String txt = OSISUtil.getPlainText((Element) data);
!                         buffer.append(txt);
!                     }
                  }
              }



More information about the jsword-svn mailing list