Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library document list: restrict extremely long document titles #57

Closed
GerHobbelt opened this issue Aug 26, 2019 · 1 comment
Closed

Comments

@GerHobbelt
Copy link
Collaborator

As the PDF document titles can be extremely long, particularly when derived from source document URIs while the PDF has not been OCR'ed yet, clutter the screen, these should be restricted in length.

Screenshot:

2019-08-22

GerHobbelt added a commit to GerHobbelt/qiqqa-open-source that referenced this issue Aug 26, 2019
…tiveTitle` derived property which is used for the library document list view: some derived titles can be extremely long, e.g. when there's no title text available, yet a long SourceDocument URI is used instead. This code is combined with new `StringTools` APIs to produce a title that's limited to a given length and when longer prints the first part plus an ELLIPSIS. This dals with jimmejardine#57
GerHobbelt added a commit to GerHobbelt/qiqqa-open-source that referenced this issue Oct 2, 2019
…tiveTitle` derived property which is used for the library document list view: some derived titles can be extremely long, e.g. when there's no title text available, yet a long SourceDocument URI is used instead. This code is combined with new `StringTools` APIs to produce a title that's limited to a given length and when longer prints the first part plus an ELLIPSIS. This dals with jimmejardine#57
GerHobbelt added a commit to GerHobbelt/qiqqa-open-source that referenced this issue Oct 3, 2019
…tiveTitle` derived property which is used for the library document list view: some derived titles can be extremely long, e.g. when there's no title text available, yet a long SourceDocument URI is used instead. This code is combined with new `StringTools` APIs to produce a title that's limited to a given length and when longer prints the first part plus an ELLIPSIS. This dals with jimmejardine#57
@GerHobbelt GerHobbelt added the 🦸‍♀️enhancement🦸‍♂️ New feature or request label Oct 4, 2019
@GerHobbelt GerHobbelt added this to the Our Glorious Future milestone Oct 9, 2019
@GerHobbelt
Copy link
Collaborator Author

Example URL: https://pdf.sciencedirectassets.com/272481/1-s2.0-S0047259X15X00030/1-s2.0-S0047259X15000494/main.pdf?X-Amz-Date=20191021T202143Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=c9b90fdc49ee3a417c98dede9fa5a02375a61459dadbcd5232acfd615303f124&X-Amz-Credential=ASIAQ3PHCVTY6SXZ2IG6%2F20191021%2Fus-east-1%2Fs3%2Faws4_request&type=client&tid=prr-dd4e5351-904e-46b6-a2c9-805fcd04625c&sid=199d1c3d5318e545e65885355afcd02d48bagxrqb&pii=S0047259X15000494&X-Amz-SignedHeaders=host&X-Amz-Security-Token=AgoJb3JpZ2luX2VjEOT%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQDRzgdH6XxiZL2acxbpy8ijMg2GRAdkLqHUblqPiMhOqQIgESnouZkbXwiSA1rdks9xVl%2FgG1CJCG15wlgL9Xc%2F2UQq4wMI3f%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARACGgwwNTkwMDM1NDY4NjUiDKl4oeXYXRsXLPgtDCq3A9Hbb17r6PIIJEIiasM3fQONwHL3vFuWsGl2TzWAh93O%2BqGYw%2B1iip9vlpKmXAiHYF4l%2BYNzY3qzPCDAtV9GGU6%2FZHguEII%2F37U%2B5VMoh3MQpY0goD%2Fvi%2Fu%2BUlZuN85m03q42cz%2BXIkeihaSTO4Jjn05RIg4%2FqVR8pTDV%2F%2FtuxX%2FnhhRDELWDSk3z3pDc3OIbwphPj5ufuAoYtw3LDknhr%2FnKmVZYAxbNShB80xz5STo3JrJqEAXk%2Fpt4mwEGPKQHTkDHqjec%2FYF%2BmyNpoFe%2FCqa4wkz6Gh2IZF1OHyfv4pZ3qn7uv4YrIM4tQscRqaKmMm7VOIUQsKJVhqWL7yHvcmU5cfA12vzCad%2FeTCDorDHgbP8EzcKMMQZyV6JAKG1AuGpDOqnwcQilURbcorqLp%2BVMIPxuNqQU7Ms%2BtTi2lvt2m92uKWctAlmAwg1%2BNQx4r72Fa%2F%2BG%2FSJGoysyDKAonUfugP6qyDMJ2Jr0TpPEU8nllp427W4BjA%2Bof1VfkOOyDhIc6JfoRRQ8sc5p9SAAoXR7dTb9zlLm5CEswTX7h2ZA9Ldh2liBoA5bDVL%2FxujOQQV83Zl7FAwlJC47QU6tAH3VmDHT%2BOs2sLr2xRPXmF3kHdfyWv3dTPtmWRGUGwSOrASkZ4HTT9PCVxzlw18a3nItGQ11i7WSHNQPLSeB8fqdNykwTMkmBJrydKHU0Czz7W%2B9n5Uud1LonGka352fBey2fn1uzkBs9rB1vh2C2taaOKPnirn89IaErlNsZtWRJJFZeFu3%2BuPmc0a5LmlUhvY4sj91pUOeV1Ru9iX7lsfzmWjlhcRz65xzA1hbtmcy47CKa8%3D&host=68042c943591013ac2b2430a89b270f6af2c76d8dfd086a07176afe7c76c2c61&X-Amz-Expires=300&hash=8e05463a79a8eecb555f015df5b5c769f7d7e3750c757c933ac745b7b5c0a731

GerHobbelt added a commit to GerHobbelt/qiqqa-open-source that referenced this issue Oct 22, 2019
…updates more usable by truncating them. Had a long url being reported for downloading which pushed all other messages off screen. 👎
GerHobbelt added a commit that referenced this issue Nov 5, 2019
…tiveTitle` derived property which is used for the library document list view: some derived titles can be extremely long, e.g. when there's no title text available, yet a long SourceDocument URI is used instead. This code is combined with new `StringTools` APIs to produce a title that's limited to a given length and when longer prints the first part plus an ELLIPSIS. This dals with #57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant