Fixed some display bugs and set passages only to convert to wylie when the passage is Tibetan

This commit is contained in:
travismccauley 2003-12-19 20:54:44 +00:00
parent 7af072de84
commit 136340ab79
2 changed files with 5 additions and 2 deletions

View File

@ -72,6 +72,7 @@ public class RemoveCommand extends LexCommand implements Command
ThdlUser user = visit.getUser();
LexQuery query = visit.getQuery();
ITerm term = query.getEntry();
LexComponentRepository.update( term );
if ( CommandToken.isValid( req ) && validate( user, component ) )
{

View File

@ -33,14 +33,16 @@
'<c:out value="${ passage.pagination }" escapeXml="false" />' <br />
</c:if>
<!--<span class="label">Passage:</span>-->
<c:set target="${ sessionScope.visit.helper}" property="wylie" value="${ passage.passage }"/>
<!--If it's a Tibetan Passage, convert the wylie.-->
<c:if test="${ passage.meta.language == 2 }">
<c:set target="${ sessionScope.visit.helper}" property="wylie" value="${ passage.passage }"/>
<c:catch var="exception">
<c:set var="tib" value="${ sessionScope.visit.helper.tibetan } " />
<c:if test="${ ! empty tib }">
<div class="tmw-block"><c:out value="${ tib }" escapeXml="false" /></div>
</c:if>
</c:catch>
</c:if>
<c:if test="${ ! empty exception }">
<span class="error-info">Wylie conversion error (view source for details)</span>