Opened 10 years ago

Closed 10 years ago

#502 closed enhancement (fixed)

Special handling for automatic tags

Reported by: dstillman Owned by: simon
Priority: minor Milestone: 1.0 Beta 4
Component: ingester Version: 1.0
Keywords: Cc:

Description (last modified by dstillman)

  • Add DB column to track whether tags were automatically added
  • Add parameter to addTag() for automatic tags
  • Discard automatic status on edit
  • Display automatic tags in a different color
  • Don't show automatic tags in tag selector

Change History (8)

comment:1 Changed 10 years ago by dstillman

  • Description modified (diff)

comment:2 Changed 10 years ago by dstillman

(In [1104]) Addresses #502, Special handling for automatic tags

  • Automatic tags now appear in orange; tooltip says either "User-added tag" or "Automatically added tag"
  • New menu in tag selector to toggle automatic tags
  • User and automatic tags are combined in tag selector, so renaming/deleting a tag will affect both user and automatic, regardless of view mode
  • Editing a tag makes it a user tag, as does adding an identical user tag to an item (rather than creating a second one)
  • ingester/export will need to be adjusted to add automatic tags

Changed:

Item.addTag(tag) => addTag(tag, type)
Item.getTags() - now returns 'id', 'tag', 'type'
Item.toArray() - tags now include 'type' property (from Item.getTags())
Tags.getID(tag) => getID(tag, type)
Tags.getAll() => getAll([types]) - types is an optional array of tagTypes to fetch; now returns objects with 'tag' and 'type' properties
Tags.getAllWithinSearch(search) => Tags.getAllWithinSearch(search, [types]) - now returns object with 'tag'/'type'

Added:

Tags.get(tagID) - returns object with 'tag' and 'type' properties
Tags.getIDs(tag) - returns all tagIDs for this tag (of all types)
Tags.getType(tag) - returns array of tag types matching given tag

For type property, 0 == user, 1 == automatic

comment:3 Changed 10 years ago by dstillman

  • Component changed from data layer to ingester
  • Owner changed from dstillman to simon

Reassigning to Simon for ingester/export changes

comment:4 Changed 10 years ago by dstillman

(In [1105]) Addresses #502, Special handling for automatic tags

Missed file

comment:5 Changed 10 years ago by dstillman

(In [1106]) Addresses #502, Special handling for automatic tags

Fix broken report generation after automatic tag changes (automatic tags not currently displayed differently in reports)

comment:6 Changed 10 years ago by dstillman

(In [1107]) Addresses #502, Special handling for automatic tags

  • Localize "Show automatic" in tag selector
  • Remove debug line

comment:7 Changed 10 years ago by simon

(In [1120]) closes #488, Proquest translator broken
references #502, Special handling for automatic tags (support is now enabled, but not tag type is not maintained during RDF export)
references #517, ScienceDirect translator fails (I fixed the issue I had translating this page, but I think the reported error may be different)

comment:8 Changed 10 years ago by stakats

  • Priority changed from major to minor
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.