Skip to content

Commit

Permalink
> svn log -r52497 search/
Browse files Browse the repository at this point in the history
------------------------------------------------------------------------
r52497 | [email protected] | 2008-09-19 11:03:53 +0200 (Fri, 19 Sep
2008) | 10 lines

SAK-14465


Patch from David Horwitz

"Update search message adaptors to use cotnext sensative methods"

Thanks


------------------------------------------------------------------------
dhorwitz@david-horwitz-6:~/branchManagement/trunk> svn merge -c-52497
search/ search/
--- Reverse-merging r52497 into 'search':
U
search/search-adapters/impl/src/java/org/sakaiproject/search/component/adapter/message/MessageContentProducer.java


git-svn-id: https://source.sakaiproject.org/svn/search/trunk@52510 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information
axxter99 committed Sep 19, 2008
1 parent 4a417b0 commit 2300aa9
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,7 @@ public String getContent(String reference)

sb.append(RESOURCE_BUNDLE.getString("MessageContentProducer.3")); //$NON-NLS-1$
sb.append(RESOURCE_BUNDLE.getString("MessageContentProducer.4"));
Reference ref1 = entityManager.newReference(m.getReference());
String context = ref1.getContext();
log.debug("found context of: " + context);
SearchUtils.appendCleanString(mh.getFrom().getDisplayName(context),sb); //$NON-NLS-1$
SearchUtils.appendCleanString(mh.getFrom().getDisplayName(), sb); //$NON-NLS-1$
sb.append("\n"); //$NON-NLS-1$
sb.append(RESOURCE_BUNDLE.getString("MessageContentProducer.11")); //$NON-NLS-1$
String mBody = m.getBody();
Expand Down Expand Up @@ -279,11 +276,9 @@ public String getTitle(String reference)
{
log.debug("Didnt get Subject from " + mh); //$NON-NLS-1$
}
Reference ref1 = entityManager.newReference(m.getReference());
String context = ref1.getContext();
log.debug("found context of: " + context);
String title = subject + Messages.getString("MessageContentProducer.36") //$NON-NLS-1$
+ mh.getFrom().getDisplayName(context);
String title = subject
+ RESOURCE_BUNDLE.getString("MessageContentProducer.36") //$NON-NLS-1$
+ mh.getFrom().getDisplayName();

String r = SearchUtils.appendCleanString(title, null).toString();
if (log.isDebugEnabled())
Expand Down

0 comments on commit 2300aa9

Please sign in to comment.