- Timestamp:
- 2010-07-13T13:21:10+12:00 (14 years ago)
- Location:
- main/trunk/greenstone2/runtime-src/src/java/org/nzdl/gsdl/Phind
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/java/org/nzdl/gsdl/Phind/Phind.java
r21878 r22384 123 123 public boolean vertical; 124 124 public int depth; 125 125 public boolean righttoleft; 126 126 // Font 127 127 public int fontSize; … … 702 702 vertical = true; 703 703 } 704 704 705 705 706 // How many phind windows are there? 706 707 depth = parameterValue("depth", 3); 707 708 709 // is the text right to left? 710 String rtl = parameterValue("textorientation", "ltr"); 711 if (rtl.equals("rtl")) { 712 righttoleft = true; 713 } else { 714 righttoleft = false; 715 } 708 716 // Result sort order 709 717 // Standard is "LlEeDd", expansion-first is "EeLlDd" -
main/trunk/greenstone2/runtime-src/src/java/org/nzdl/gsdl/Phind/ResultBox.java
r2507 r22384 546 546 547 547 // Create a new ResultItem and add it to the display 548 ResultItemPhrase ri = new ResultItemPhrase(idStr, tfStr, dfStr, prefix, body, suffix); 549 548 ResultItemPhrase ri; 549 if (phind.righttoleft) { 550 // swap suffix and prefix 551 ri = new ResultItemPhrase(idStr, tfStr, dfStr, suffix, body, prefix); 552 } else { 553 ri = new ResultItemPhrase(idStr, tfStr, dfStr, prefix, body, suffix); 554 } 550 555 if (c.addResultItem(ri)) { 551 556 expansionsRetrieved++;
Note:
See TracChangeset
for help on using the changeset viewer.