Skip to content

Commit

Permalink
Issue ufal#851
Browse files Browse the repository at this point in the history
Improve the indication of too many files in archive preview.
English only as this is in metadata.
  • Loading branch information
kosarko committed Feb 19, 2020
1 parent dd48a17 commit 86e6823
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ static int addBitstreamContent(Bitstream b) throws SQLException, AuthorizeExcept
b.addMetadata( schema, element, qualifier, Item.ANY, content );
//don't add more than 1000 files
if(++i >= 1000){
b.addMetadata(schema, element, qualifier, Item.ANY, String.format("%s|%d", "...", 0));
b.addMetadata(schema, element, qualifier, Item.ANY, String.format("%s|%d", "... too many " +
"files ...", 0));
break;
}
}
Expand Down

0 comments on commit 86e6823

Please sign in to comment.