Bug 46933 - EDITING: Numbered bibliography entry in frame displays [0]
Summary: EDITING: Numbered bibliography entry in frame displays [0]
Status: REOPENED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: Other All
: high normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
: 73664 74093 (view as bug list)
Depends on:
Blocks: Bibliography
  Show dependency treegraph
 
Reported: 2012-03-03 06:40 UTC by Valdas
Modified: 2020-03-24 15:21 UTC (History)
16 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of bug. (67.11 KB, image/png)
2012-03-03 06:40 UTC, Valdas
Details
wrong number without paragraph / right with another (29.26 KB, application/pdf)
2012-03-20 06:55 UTC, mini-matze
Details
ODT and screenshot showing problem. (52.05 KB, application/zip)
2014-01-28 08:09 UTC, Owen Genat (retired)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Valdas 2012-03-03 06:40:18 UTC
Created attachment 57974 [details]
Screenshot of bug.

Problem description: 

If I insert bibliography entry in to Frame then bibliography entry number becomes zero.


Steps to reproduce:

- strat new Writer document;
- insert Frame (insert -> frame... -> ok);
- place carret in to frame;
- insert bibliography entry (inser -> indexes and tables... -> bibliography entry... -> choose one entry from database -> insert -> close);
- place carret otside frame;
- inser bibliography table (insert -> indexes and tables... -> indexes and tables -> select "type" = "bibliography" and check "number entries" -> ok);

Current behavior:

after mentioned steps number of bibliograhy entry becomes "0" (see screenshot).
This bug also persist in v3.4.

Expected behavior:

numbering must be correct.

Platform (if different from the browser): 
              
Browser: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Comment 1 mini-matze 2012-03-20 06:51:11 UTC
In LO 3.5.1 this problem happens only if there is no other paragraph.

Steps to reproduce:

- strat new Writer document;
- insert Frame (insert -> frame... -> ok);
- place carret in to frame;
- insert bibliography entry (inser -> indexes and tables... -> bibliography
entry... -> choose one entry from database -> insert -> close);
- place carret otside frame;
- inser bibliography table (insert -> indexes and tables... -> indexes and
tables -> select "type" = "bibliography" and check "number entries" -> ok);
- Entry becomes "0"
- I enter a new paragraph (Test: "Test foo bar")
- Press F9
- Entry becomes 1
Comment 2 mini-matze 2012-03-20 06:55:14 UTC
Created attachment 58749 [details]
wrong number without paragraph / right with another
Comment 3 bfoman (inactive) 2012-08-08 10:02:02 UTC
Confirmed with:
LO 3.5.5.3 
Build ID: own W7 debug build
Windows 7 Professional SP1 64 bit

Confirmed original and comment 1 description.
Comment 4 sasha.libreoffice 2012-12-22 10:48:34 UTC
reproduced in 3.6.4 on RFR 17 64 bit
(use "Number entries" on first tab of dialog "Insert index/table")
Comment 5 Celt 2013-11-05 10:18:51 UTC
Confirmed as still a bug in version 4.1.3.2 release 64 bit.
Comment 6 sasha.libreoffice 2013-11-05 10:56:45 UTC
Thanks for additional testing
Sorry, but "version" is version where bug initially found. Not a current version of LO. If bug disappears we just closing the bug.
Changing back to 3.5.0
Comment 7 Celt 2013-11-05 11:45:06 UTC
Sorry. Thanks for correcting and informing me Sasha.

To point out the importance of fixing this bug; note that putting a reference in a figure caption causes the problem. This makes the bibliography system unusable for any scientific writing.
Comment 8 nico 2013-12-04 15:33:25 UTC
Can reproduce in Version: 4.1.3.2

I agree with celt: This makes the bibliography system unusable for any scientific writing.
Comment 9 Owen Genat (retired) 2014-01-27 10:38:17 UTC
*** Bug 74093 has been marked as a duplicate of this bug. ***
Comment 10 Owen Genat (retired) 2014-01-27 10:39:49 UTC
*** Bug 73664 has been marked as a duplicate of this bug. ***
Comment 11 Owen Genat (retired) 2014-01-27 11:11:42 UTC
Related Apache OO issue added to See Also list. Summary edited for clarity.
Comment 12 sablik 2014-01-27 11:23:39 UTC
A workaround for this problem is to insert an invisible copy of this bibliography entry befor the frame. Then the numbering works. It is not the best solution but it works
Comment 13 Regina Henschel 2014-01-27 14:34:09 UTC
For me it works, I use version 4.1 and 4.3(Build ID: 160db96a882a2be8c3307e8a04beda4ae93a13c4) on Windows 7.

I always get the "Short name" as defined, with the external data base "Bibliography" and with document internal bibliography entries too. Perhaps you did it different. Can you describe in detail, how you insert the bibliography entry?

I do it this way, for example:
1. Set cursor into caption paragraph inside the picture frame.
2. Insert > Indexes and Tables > Bibliography entry
3. Option "from bibliography database".
4. Select "GAS00" from "Short name" drop-down list.
5. Click "Insert"
6. Click "Close"

Or with internal bibliography entries.
1. Set cursor into caption paragraph inside the picture frame.
2. Insert > Indexes and Tables > Bibliography entry
3. Option "from document content".
4. Click "New".
5. Fill the record fields, do not forget the field "Short name". OK.
6. Select the item from the "Short name" drop-down list.
7. Click "Insert"
8. Click "Close"

With the checkbox "Number entries" in the bibliography index dialog you switch between using numbers and "Short name". That works for and back and there are no zeros.
Comment 14 Joel Madero 2014-01-27 15:15:43 UTC
Removing from MAB list as no contributor has verified that this belongs there. Putting it on multiple lists is against policy - also there are procedures for how a bug makes it to the list and this one has not gone through them.

If anyone is interested in joining QA you can join the mailing list or jump into the IRC room here http://webchat.freenode.net/?channels=libreoffice-qa and we'll help you become familiar with the policies.

MAB list is supposed to be a way to organize and prioritize, in order to do this we have to stick to these procedures else the list will become unmanageable. Thanks for understanding
Comment 15 Owen Genat (retired) 2014-01-28 08:09:52 UTC
Created attachment 92907 [details]
ODT and screenshot showing problem.

(In reply to comment #13)
> For me it works, I use version 4.1 and 4.3(Build ID:
> 160db96a882a2be8c3307e8a04beda4ae93a13c4) on Windows 7.
> 
> I always get the "Short name" as defined, with the external data base
> "Bibliography" and with document internal bibliography entries too. Perhaps
> you did it different. Can you describe in detail, how you insert the
> bibliography entry?

Regina, I have attached an example and included a screenshot for clarity. Given I am using the default bibliography database provided with v4.1.4.2 Build ID: 0a0440ccc0227ad9829de5f46be37cfb6edcf72 I hope it works for others. The problem does not appear under the index is inserted. Here is how I created the attached:

1. Start Writer (empty document).
2. Insert > Frame > enlarge frame width a bit > click OK.
3. Place cursor in the frame.
4. Insert > Indexes and Tables > Bibliography entry.
5. Use default entries > click Insert > click OK ("[ARJ00]" is inserted).
6. Press ENTER.
7. Type "Text".
8. Press ENTER.
9. Insert > Indexes and Tables > Bibliography entry.
10. Select short name entry "AVV00" > click Insert > click OK ("[AVV00]" is inserted).
11. Press ENTER.
12. Insert > Picture > From file > browse to raster graphic > click OK.
13. Right-click on inserted raster graphic > Caption.
14. Type "TDF logo." > click OK.
15. Place cursor at caption line end > type SPACE
16. Insert > Indexes and Tables > Bibliography entry.
17. Select short name entry "DUD00" > click Insert > click OK ("[DUD00]" is inserted).
18. Place cursor on the first paragraph.
19. Insert > Indexes and Tables > Indexes and Tables.
20. Index/Table tab > select type of "Bibliography" > Formatting of the entries section > check "Number entries" option > click OK.

Observed behaviour: The first [ARJ00] and third [DUD00] citations (the two that are in frames) are converted to "[0]". Corresponding bibliography index entries are also set to "0".

Expected behaviour: All citations number in sequence (e.g., "[1]", "[2]", "[3]"), along with matching identifier in the bibliography index.
Comment 16 Owen Genat (retired) 2014-01-28 08:12:03 UTC
(In reply to comment #15)
> The problem does not appear under the index ...

The problem does not appear UNTIL the index ...
Comment 17 Celt 2014-01-28 10:00:31 UTC
In some circumstances creating a new paragraph outside of the frame fixes the numbering. However I have some existing documents where this is not the case. So far I have not been able to find the steps to reproduce the "unfixable" version of the bug. Can anyone else provide insight on this, or suggest anything I can try with these files?
Comment 18 Alex Thurgood 2015-01-03 17:38:19 UTC Comment hidden (no-value)
Comment 19 Christian Pietzsch 2015-11-25 08:55:05 UTC
Bug is still present in Version: 5.0.3.2

I can reproduce the bug every time I have a source entry that's only used inside an image caption.
If you insert the bibliography entry the index gets [0]. Adding the same entry within the normal text indexes it correctly. The previously inserted entry inside the caption still remains [0]. Deleting this entry and inserting it again shows the correct index (The entry also changes the index if you don't delete it and insert the same entry behind it). 
This index also stay correct if you delete the entry in the normal text (sometimes!!). It also changes if you add or delete entries before the image.
It's quite mysterious. I already had pictures where the entry stayed correct after the deleting the entry in the text but now I have one that changes back to [0] if you update all things within the document. Thought you might have to save before updating but it didn't have any effect.
Comment 20 QA Administrators 2017-09-01 11:16:00 UTC Comment hidden (obsolete)
Comment 21 Christian Pietzsch 2017-09-01 17:03:05 UTC
The latest version I currently have is 
Version: 5.4.0.3
Build ID: 5.4.0-2
CPU threads: 4; OS: Linux 4.12; UI render: default; VCL: gtk3; 
Locale: de-DE (de_DE.UTF-8); Calc: group

I can still reproduce the issue in the same manner.
As long as the entry also exists outside the frame the numbering gets updated correctly. But if the entry is only within the frame the numbering is [0]
Comment 22 QA Administrators 2018-09-02 02:50:38 UTC Comment hidden (obsolete)
Comment 23 Valdas 2018-09-02 08:58:19 UTC
(In reply to QA Administrators from comment #22)

Bug still persists. 

Version: 5.4.6.2
Build ID: 1:5.4.6-0ubuntu0.17.10.1
CPU threads: 16; OS: Linux 4.13; UI render: default; VCL: kde4; 
Locale: lt-LT (lt_LT.UTF-8); Calc: group
Comment 24 Stéphane Guillou (stragu) 2018-09-03 03:52:51 UTC
Also confirmed with the following:

Version: 6.0.3.2
Build ID: 1:6.0.3-0ubuntu1
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-AU (en_GB.UTF-8); Calc: group

But for some reason, the numbering started at 1 if I had text before the reference and the bibliography.

Steps updated for 6.0:

- create new Writer document;
- insert Frame (insert -> frame -> frame... -> ok);
- place cursor inside the frame;
- insert bibliography entry (insert -> Table of Contents and Index -> bibliography entry... -> choose one entry from database -> insert -> close);
- place cursor outside of the frame;
- insert bibliography table (insert -> Table of Contents and Index -> Table of Contents, Index or Bibliography -> select "type" = "bibliography" and check "number entries" -> ok);
Comment 25 Christian Pietzsch 2018-09-28 02:37:17 UTC
Bug still reproducable with the original steps in

Version: 6.1.0.3
Build ID: 6.1.0-2
CPU threads: 12; OS: Linux 4.18; UI render: default; VCL: gtk2; 
Locale: de-DE (en_US.UTF-8); Calc: CL
Comment 26 Xisco Faulí 2019-09-24 13:37:37 UTC Comment hidden (obsolete)
Comment 27 Xisco Faulí 2019-09-25 12:25:35 UTC
(In reply to stragu from comment #24)
> Also confirmed with the following:
> 
> Version: 6.0.3.2
> Build ID: 1:6.0.3-0ubuntu1
> CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3; 
> Locale: en-AU (en_GB.UTF-8); Calc: group
> 
> But for some reason, the numbering started at 1 if I had text before the
> reference and the bibliography.
> 
> Steps updated for 6.0:
> 
> - create new Writer document;
> - insert Frame (insert -> frame -> frame... -> ok);
> - place cursor inside the frame;
> - insert bibliography entry (insert -> Table of Contents and Index ->
> bibliography entry... -> choose one entry from database -> insert -> close);
> - place cursor outside of the frame;
> - insert bibliography table (insert -> Table of Contents and Index -> Table
> of Contents, Index or Bibliography -> select "type" = "bibliography" and
> check "number entries" -> ok);

Actually, in the Contents, Index or Bibliography dialog is possible to select if we want brackets for the entry references. Options: None, [], (), {}, <>, so selecting None fixes this issue.
Setting status to RESOLVED WORKSFORME
Comment 28 Christian Pietzsch 2019-09-29 09:38:24 UTC
(In reply to Xisco Faulí from comment #27)
> (In reply to stragu from comment #24)
> > Also confirmed with the following:
> > 
> > Version: 6.0.3.2
> > Build ID: 1:6.0.3-0ubuntu1
> > CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3; 
> > Locale: en-AU (en_GB.UTF-8); Calc: group
> > 
> > But for some reason, the numbering started at 1 if I had text before the
> > reference and the bibliography.
> > 
> > Steps updated for 6.0:
> > 
> > - create new Writer document;
> > - insert Frame (insert -> frame -> frame... -> ok);
> > - place cursor inside the frame;
> > - insert bibliography entry (insert -> Table of Contents and Index ->
> > bibliography entry... -> choose one entry from database -> insert -> close);
> > - place cursor outside of the frame;
> > - insert bibliography table (insert -> Table of Contents and Index -> Table
> > of Contents, Index or Bibliography -> select "type" = "bibliography" and
> > check "number entries" -> ok);
> 
> Actually, in the Contents, Index or Bibliography dialog is possible to
> select if we want brackets for the entry references. Options: None, [], (),
> {}, <>, so selecting None fixes this issue.
> Setting status to RESOLVED WORKSFORME

The problem behind it is still not solved. I can replicate the issue in Version: 6.4.0.0.alpha0+
stragu is right about the problem disappearing if you enter text above the bilio index. And I also can confirm, that the numbering is correct if you don't use any brackets for labeling
Comment 29 Karel Hruska 2020-03-24 15:21:37 UTC
I confirm this bug is still present in LibreOffice 6.2.8 and 6.4.2.

Reproduced by accident in own document at Debian GNU/Linux Stretch and Buster amd64, LO binaries downloaded from https://www.libreoffice.org/download/download/.

K.H.