Skip to content

Base publication slug (URL) on title rather BibTeX ID #30

@gcushen

Description

@gcushen

Currently, we use the ID provided by Bibtex. An ID based on the title may be more intuitive but this kind of ID is unavailable in Bibtex, so would require implementing the below algorithm to generate a unique ID based on the title.

Requirements:

  • consider up to first 5 words of title (after removal of stop words?)
  • strips special chars
  • converts all characters to lowercaps
  • slugify: replace whitespaces, underscores and periods by hyphens/dashes
  • reduce multiple consecutive dashes to one
  • Either check generated ID is unique and append numeric ID if clashes, or else append hash to name

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions