Bug 153396 - LibreOffice Writer: Bibliography reference: Link to bibliography entry, not associated URL address
Summary: LibreOffice Writer: Bibliography reference: Link to bibliography entry, not a...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.0.3 release
Hardware: All All
: medium enhancement
Assignee: dolezvo1
URL:
Whiteboard: target:7.6.0
Keywords:
Depends on:
Blocks: Bibliography Bookmarks
  Show dependency treegraph
 
Reported: 2023-02-05 13:59 UTC by dolezvo1
Modified: 2023-12-08 13:56 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Fodt source (44.42 KB, application/vnd.oasis.opendocument.text)
2023-02-08 10:40 UTC, dolezvo1
Details
Result pdf (33.69 KB, application/pdf)
2023-02-08 10:41 UTC, dolezvo1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dolezvo1 2023-02-05 13:59:05 UTC
Description:
Hi, I noticed that when making a bibliography reference using Insert>Table of Content and Index>Bibliography Entry, the reference is turned into a link to the URL address associated with the entry when exported to pdf. I can understand that someone might find that useful, but it means that when someone wants to find what I'm refering to, they have to manually scroll to the bibliogrpahy section and find the correct number. Making the reference a link to the entry in the bibliography is so much more useful, I'm actually not sure if this isn't a bug.

Steps to Reproduce:
1. Make a bibliography reference that contains an URL address
2. Export to PDF
3. Click the reference: it will take you to the given URL site

Actual Results:
You are taken to the URL.

Expected Results:
Being taken to the bibliography table, where one can read the entry and choose to visit the URL only if they want to.


Reproducible: Always


User Profile Reset: No

Additional Info:
Having the reference database work on the references stored in the document would be really nice, but this currently seems like a much bigger issue.
Comment 1 dolezvo1 2023-02-07 14:46:07 UTC
If I implemented this, would it be accepted? That is what I'm mainly worried about. I don't think the documentation specifies what bibliography mark (that is the actual name used in the xml) is supposed to do.
Comment 2 Heiko Tietze 2023-02-08 10:32:47 UTC
Could you please upload a sample document with a reference to libreoffice.org, for example.
Comment 3 dolezvo1 2023-02-08 10:40:44 UTC
Created attachment 185207 [details]
Fodt source
Comment 4 dolezvo1 2023-02-08 10:41:00 UTC
Created attachment 185208 [details]
Result pdf
Comment 5 dolezvo1 2023-02-08 10:41:17 UTC
Sure, here is how it works now
Comment 6 Heiko Tietze 2023-02-08 10:46:33 UTC
The plan is not to make [1] behaving like a bookmark pointing to the first item in the bibliography, right? In other words, how exactly do you plan to change this.
Comment 7 dolezvo1 2023-02-08 10:47:59 UTC
No, I that is indeed what I have in mind.
Comment 8 Heiko Tietze 2023-02-08 11:24:07 UTC
Should be any kind of bibliographical reference then. What I see is that an associated URL opens the hyperlink; the patch could make any reference jumping to the bibliography ToC linking the website there. Makes sense to me, but I'll present the idea first at the ESC.
Comment 9 dolezvo1 2023-02-08 11:39:44 UTC
Okay, thank you
Comment 10 Heiko Tietze 2023-02-09 15:11:43 UTC
ESC gave green light to submit a patch providing that the review is accepted.

Assign the ticket to yourself and set the assigned state if you start working. If you need help please don't hesitate to ask on the developer channel/mailinglist.
Comment 11 dolezvo1 2023-02-16 09:36:58 UTC
When editing, does it make more sense to jump to the table with Ctrl+Click or standard Click? It seems that cross-references jump with simple Click and hyperlinks jump with Ctrl+Click, and I'm not sure what would be more consistent.
Comment 12 Heiko Tietze 2023-02-16 09:55:52 UTC
I don't see how cross-references (?) behave differently. Using ctrl+click to jump to the target allows to select the source. So let's use this method.
Comment 13 dolezvo1 2023-02-16 09:57:18 UTC
Okay, thanks for clarification.
Comment 14 dolezvo1 2023-02-16 12:16:26 UTC
One more idea: Would it be viable to modify the bibliography table so that if there is more of them, one could choose one of them as the "main bibliography table", so that they could, for example, have one table in front and one in back with different formats, and the marks would lead to the preferred one? (presumably the one with more information)
Comment 15 Commit Notification 2023-03-07 07:13:35 UTC
Vojtěch Doležal committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/7b99871635cd48c2a8a1d0afbd7afc60a45cc2ff

tdf#153396 - Bibliography marks improvements

It will be available in 7.6.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 16 dolezvo1 2023-03-07 07:18:33 UTC
Fully implemented now.