SearchSummary für Publication korrigert

git-svn-id: https://svn.libreccm.org/ccm/trunk@2199 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2013-06-10 06:49:52 +00:00
parent ed68a29314
commit 8fd07ec451
1 changed files with 4 additions and 4 deletions

View File

@ -165,7 +165,7 @@ public class Publication extends ContentPage {
* *
* @param misc The new content of the misc field. * @param misc The new content of the misc field.
*/ */
public void setMisc(String misc) { public void setMisc(final String misc) {
set(MISC, misc); set(MISC, misc);
} }
@ -173,7 +173,7 @@ public class Publication extends ContentPage {
return (Boolean) get(REVIEWED); return (Boolean) get(REVIEWED);
} }
public void setReviewed(Boolean reviewed) { public void setReviewed(final Boolean reviewed) {
set(REVIEWED, reviewed); set(REVIEWED, reviewed);
} }
@ -232,7 +232,7 @@ public class Publication extends ContentPage {
protected void updateAuthorsStr() { protected void updateAuthorsStr() {
final AuthorshipCollection authors = getAuthors(); final AuthorshipCollection authors = getAuthors();
StringBuilder builder = new StringBuilder(); final StringBuilder builder = new StringBuilder();
while (authors.next()) { while (authors.next()) {
if (builder.length() > 0) { if (builder.length() > 0) {
builder.append("; "); builder.append("; ");
@ -378,7 +378,7 @@ public class Publication extends ContentPage {
@Override @Override
public String getSearchSummary() { public String getSearchSummary() {
String summary = String.format("%s %s %s", getTitle(), getAuthors(), getAbstract()); String summary = String.format("%s %s %s", getTitle(), (String)get(AUTHORS_STR), getAbstract());
if (summary.length() > 4000) { if (summary.length() > 4000) {
summary = summary.substring(0, 4000); summary = summary.substring(0, 4000);
} }