Skip to content

Disallow importing multiple .bst files with the same filename #16360

Description

@subhramit

In #16315 we introduced support for .bst styles for LibreOffice.

Currently, one can import multiple of those file with the same name:

Image

which can be confusing (regardless of whether they are actually the same style or different).

"name" here is just the .bst filename with the extension stripped off, as these files do not specify a separate "name" field like CSL.

In CSL Styles, we don't allow the import of two files with the same name. We show a dialog that such a style already exists. Goal is to have the same guard for the .bst tab.

This no-duplication mechanism should take into account both internal (default) and externally added styles in the list.

Note: Please explore the CSL code, warning messages etc properly before attempting this. Refer to #15463 for more hints.

Metadata

Metadata

Assignees

Labels

component: libre-officegood first issueAn issue intended for project-newcomers. Varies in difficulty.📍 AssignedAssigned by assign-issue-action (or manually assigned)

Projects

Status
Assigned

Relationships

None yet

Development

No branches or pull requests

Issue actions