Summary: | creating master document from *.odt breaks cross-references | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Oliver Brinzing <oliver.brinzing> |
Component: | Writer | Assignee: | Michael Stahl (allotropia) <michael.stahl> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | 79045_79045, dgp-mail, emanuele.gissi, ilmari.lauhakangas, oliver.brinzing, pierre.choffardet, thb |
Priority: | medium | ||
Version: | Inherited From OOo | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://bugs.documentfoundation.org/show_bug.cgi?id=145621 https://bugs.documentfoundation.org/show_bug.cgi?id=154956 |
||
Whiteboard: | target:7.3.0 target:7.2.2 | ||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 107805, 107905 | ||
Attachments: |
cross reference demo
cross reference demo with bookmarks global document with repaired bookmarks |
When you create master document from your file you get master and two different ODT files splitted by Heading 1 style paragraph. Now you have TWO files and Writer can't work with cross-reference between different files. It works only inside one file. There is a workaround for it. You can use bookmarks in every ODT with unique names and then you'll paste bookmarks using fields->cross-reference->bookmarks in need ODT. In ODT you'll see some error, but when you'll open your master document its will be works fine. May be it's a bug, but now it works that way... Possible better will create an enhancement about cros-references between different files Created attachment 154965 [details]
cross reference demo with bookmarks
Added a second example with additionally two standard bookmarks/references:
- bookmark "bookmarkchapter1" has a reference from Chapter 2
- bookmark "bookmarkchapter1_text" has a reference from inside Chapter 1
But during master document export *all* xml <bookmark-start/><bookmark-end/> elements will be removed.
IMHO it could work, if the <bookmark-start/> <bookmark-end/> elements would not be removed during export. Maybe the unique "__RefHeading__4_2121972034" names need to be renamed before too.
Created attachment 154966 [details]
global document with repaired bookmarks
added an attachment with manual repaired bookmarks in "global1.odt":
- bookmark "bookmarkchapter1_text"
- bookmark "Chapter 1.1" (Chapter 1.1)
cross references from "global2.odt" will now work
(In reply to Oliver Brinzing from comment #0) > Created attachment 154954 [details] > cross reference demo > > steps to reproduce: > > - open attached writer document, it contains chapter numbering and some > cross > references, inserted via Menu Insert/Cross-reference/Headings > > - Menu File/Send/Create Master Document > > - after update links, references are broken, showing: > Error: Reference source not found I confirm it with Version: 6.4.0.0.alpha1 (x64) Build ID: cc57df8f942f239d29cb575ea5a7cb01405db787 CPU threads: 4; OS: Windows 10.0 Build 18362; UI render: GL; VCL: win; Locale: de-DE (de_DE); UI-Language: en-US Calc: threaded I set status to NEW, because I think this shouldn't happen or there should be at least a warning. Michael Stahl committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/3608de9a3647294361c64b923b1ae413ad9755df tdf#128106 sw: copy bookmarks in SwDoc::SplitDoc() It will be available in 7.3.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. Michael Stahl committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/4bf04dea9afb30a9395e80b07a81d1908937ee8b tdf#128106 sw: copy bookmarks at start if whole node is copied It will be available in 7.3.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. fixed on master Michael Stahl committed a patch related to this issue. It has been pushed to "libreoffice-7-2": https://git.libreoffice.org/core/commit/7094f05e0e4b5c62ee7c1d42eed15e9cc3aff103 tdf#128106 sw: copy bookmarks in SwDoc::SplitDoc() It will be available in 7.2.2. 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. Michael Stahl committed a patch related to this issue. It has been pushed to "libreoffice-7-2": https://git.libreoffice.org/core/commit/8885bdf2f564bb7b56181c50baf39ff99d551ec9 tdf#128106 sw: copy bookmarks at start if whole node is copied It will be available in 7.2.2. 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. Both demo files now work Arch Linux 64-bit Version: 7.3.0.0.alpha0+ / LibreOffice Community Build ID: 9b73d3e8926d5f9b10464d19b539eef3eb088f50 CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Built on 8 September 2021 |
Created attachment 154954 [details] cross reference demo steps to reproduce: - open attached writer document, it contains chapter numbering and some cross references, inserted via Menu Insert/Cross-reference/Headings - Menu File/Send/Create Master Document - after update links, references are broken, showing: Error: Reference source not found