Skip to content

Commit

Permalink
more correction following the style checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathew1011 committed Nov 13, 2023
1 parent c01e955 commit 27be961
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import java.util.TimeZone;
import java.util.UUID;
import java.util.Vector;

import javax.mail.MessagingException;

import org.apache.commons.collections4.CollectionUtils;
Expand Down Expand Up @@ -209,10 +208,10 @@ protected void update(Context context, IndexFactory indexableObjectService, Inde
*/
private void addCommunityCollectionItem(
Context context,IndexableObject indexableObject, SolrInputDocument doc
) throws IOException, SolrServerException, SQLException {
) throws IOException, SolrServerException, SQLException {

// IndexableObject.getType();
if(!(indexableObject instanceof IndexableItem)) {
if (!(indexableObject instanceof IndexableItem)) {
return;
}

Expand Down Expand Up @@ -272,7 +271,12 @@ private void addCommunityCollectionItem(
String thumbnailName = thumbnailBitstream.getName();
int thumbnailSequence = thumbnailBitstream.getSequenceID();
String thumbnailUrl = String.format(
bitstreamUrlTemplate, dspaceUrl, handle, thumbnailName, thumbnailSequence);
bitstreamUrlTemplate,
dspaceUrl,
handle,
thumbnailName,
thumbnailSequence
);
doc.addField("thumbnailBitstream_stored", thumbnailUrl);
}
break;
Expand Down

0 comments on commit 27be961

Please sign in to comment.