Bug 45048 - Inconsistent document field names: Use names of column 'Select' instead of 'Type' (e.g. use Pages instead of Statistics)
Summary: Inconsistent document field names: Use names of column 'Select' instead of 'T...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0 all versions
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Fields
  Show dependency treegraph
 
Reported: 2012-01-21 11:26 UTC by Freek de Kruijf
Modified: 2023-04-05 01:43 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Freek de Kruijf 2012-01-21 11:26:37 UTC
When selecting in Writer via Insert -> Fields either Page Number or Page Count and in View enabling Field Names one would expect to see Page Number or Page Count displayed in that field. However Page numbers or Statistics is displayed. Please make this consistent.
Comment 1 A (Andy) 2013-05-04 20:50:32 UTC
reproducible with LO 4.0.2.2 (Win7 Home, 64bit)

Steps Done:
1. Open a new document in WRITER
2. Go to the menu INSERT -> FIELDS and select PAGE NUMBER -> now the page number is inserted
3. Make a line break
4. Go to the menu INSERT -> FIELDS and select PAGE COUNT -> now the number of pages is inserted
5. Go to the menu VIEW and activate FIELD NAMES

Result: Instead of the page number and number of pages "Page numbers" and "Statistics" is displayed.
For a layman this really seems not to be consistent.
Comment 2 Shinji Enoki 2013-06-23 17:33:28 UTC
I have encountered this problem.(LibO Version: 4.1.0.1)

IMO, maybe "Statistics" is not correct.
Because, it is hard to realize that it is "total number of pages".

I suggest "Total number of pages" or "Page count".
Comment 3 QA Administrators 2015-03-16 23:01:44 UTC Comment hidden (obsolete)
Comment 4 Jean-Baptiste Faure 2015-03-21 16:00:16 UTC
"Statistics" is still there as field name for "Pages Count".
Tested in LibreOffice 4.4.3.0.0+ and master under Ubuntu 14.10 x86-64.

Best regards. JBF
Comment 5 tommy27 2016-04-16 07:24:25 UTC Comment hidden (obsolete)
Comment 6 Freek de Kruijf 2016-04-16 09:47:57 UTC
Tested it again using 5.0.4.2
Still the same problem, note that "Page Numbers" is displayed, however the menu item shows "Page Number", without a letter s, which is what it should be.
Comment 7 Freek de Kruijf 2016-04-18 08:54:58 UTC
(In reply to Freek de Kruijf from comment #6)
> Tested it again using 5.0.4.2
> Still the same problem, note that "Page Numbers" is displayed, however the
> menu item shows "Page Number", without a letter s, which is what it should
> be.

Tested it with 5.1.1.3, same problem.
Comment 8 QA Administrators 2017-05-22 13:25:19 UTC Comment hidden (obsolete)
Comment 9 Jean-Baptiste Faure 2017-06-10 21:04:40 UTC
Still reproducible with LO 5.4.0.0.beta2+ built at home under Ubuntu 16.04 x86-64

Best regards. JBF
Comment 10 QA Administrators 2018-07-08 02:40:01 UTC Comment hidden (obsolete)
Comment 11 Dieter 2018-07-08 19:25:42 UTC
Still reproducible in

Version: 6.0.5.2 (x64)
Build-ID: 54c8cbb85f300ac59db32fe8a675ff7683cd5a16
CPU-Threads: 4; BS: Windows 10.0; UI-Render: GL; 
Gebietsschema: de-DE (de_DE); Calc: group
Comment 12 Thomas Lendo 2018-10-07 21:53:20 UTC Comment hidden (obsolete)
Comment 13 Thomas Lendo 2018-10-07 22:15:47 UTC
All fields from the type 'Statistics' are called this way when activating View > Field names and not only 'Page count'.

Seems a bug for most document fields because the following document field types are displayed correctly:
- Page (e.g. Page > Page number is called 'Page number')
- Date
- Time

Therefore I'll change blocking meta bug from 'Fields-Page-Count' to 'Fields' and the summary from 'Inconsistent field name: Statistics instead of page count' to 'Inconsistent document field names: Use names of column 'Select' instead of 'Type' (e.g. use Pages instead of Statistics)'.
Comment 14 Thomas Lendo 2018-10-07 22:52:37 UTC
For the different names (page count <> pages) see bug 108786.
Comment 15 QA Administrators 2019-10-08 02:28:36 UTC Comment hidden (obsolete)
Comment 16 Freek de Kruijf 2019-10-09 12:47:38 UTC
Still present in the following version:
Versie: 6.3.2.2
Build ID: 30(Build:2)
CPU-threads: 4; Besturingssysteem: Linux 5.3; UI-render: standaard; VCL: kde5; 
Locale: nl-NL (nl_NL.UTF-8); UI-taal: nl-NL
Calc: threaded
Comment 17 Dieter 2021-09-04 08:36:46 UTC
Still present in

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 74d35e143d557a7e65c4443f5b80cb9d406b1fa1
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL(In reply to Thomas Lendo from comment #13)


> Therefore I'll change
> to 'Inconsistent document field names: Use names of column 'Select'
> instead of 'Type' (e.g. use Pages instead of Statistics)'.

Not sure, if this should be a general solution (so it would be more enhancement than bug). It makes sense for type "statistics" and perhaps "page number" (if previous or next page), but not for all the other types (see field dialog => Document => Type)

=> cc: Design-Team
Comment 18 Mike Kaganski 2021-09-05 14:24:51 UTC
(In reply to Thomas Lendo from comment #13)
> All fields from the type 'Statistics' are called this way when activating
> View > Field names and not only 'Page count'.
> 
> Seems a bug for most document fields because the following document field
> types are displayed correctly:
> - Page (e.g. Page > Page number is called 'Page number')
> - Date
> - Time

And then compare the behavior when *editing* such fields.

Editing a Statistics filed, one may still change the type of the statistics, seeing the same list of variants in the middle listbox.

But editing a Page Number field, the "Page number", which initially was in the middle box on insertion, goes to the left box (where initially "Page" was).

So there is a bug/inconsistency between the insertion dialog's categories. The middle list must have the choices of the *subtype*, editable even after insertion, and not the main types of the fields - "Page" pseudo-type should be fixed in insert field dialog.

Basically this tdf#45048 is technically NOTABUG - if the field *types* (not content of "select" middle box) is consistently shown as the field name.
Comment 19 Heiko Tietze 2021-09-07 07:10:41 UTC
(In reply to Mike Kaganski from comment #18)
> But editing a Page Number field, the "Page number", which initially was in
> the middle box on insertion, goes to the left box (where initially "Page"
> was).

This is bug 137298
 
Point here is the misleading "Statistics" variable name for all these fields. It would be better to call it #Pages, #Paragraphs etc.
Comment 20 Mike Kaganski 2021-09-07 07:17:12 UTC
(In reply to Heiko Tietze from comment #19)
> Point here is the misleading "Statistics" variable name for all these
> fields. It would be better to call it #Pages, #Paragraphs etc.

No. You may not name a filed for its *configuration* (and the thing that you discuss here is exactly the configuration of a field, that has the same relation as field's number format or other variable things).

In MSO, the filed codes show the field *arguments* - so it would be OK if e did the same; but in any case, it would be something like "Statistics: Pages" - telling the *type* of field, and then *configurable* options specific to this type, chosen at this moment.
Comment 21 Heiko Tietze 2021-09-07 07:23:20 UTC
(In reply to Mike Kaganski from comment #20)
> ... it would be something like "Statistics: Pages"

Sounds perfect to me.