Opened 10 years ago

Closed 10 years ago

#166 closed defect (fixed)

Scholar.ItemTypes.getID("journalArticle") throws "Invalid item type journalarticle"

Reported by: simon Owned by: dstillman
Priority: major Milestone: 1.0 Beta 1
Component: data layer Version: 1.0
Keywords: Cc:

Description

I assume (although I haven't tested this) that the same error will appear with all item types that aren't completely lowercase. For now (so I can keep working) I've set this._ignoreCase to false for Scholar.ItemTypes, which seems to eliminate the problem.

Change History (1)

comment:1 Changed 10 years ago by dstillman

  • Resolution set to fixed
  • Status changed from new to closed

(In [418]) Fixes #166, Scholar.ItemTypes.getID("journalArticle") throws "Invalid item type journalarticle"

Fixed ignoreCase logic (and also set all but CharacterSets to false, since there's no reason for them to be true)

Also made CachedTypes.getID() and getName() return false and , respectively, on unknown types rather than letting them hit the error (there's still the 'invalid * type' debug message)

Note: See TracTickets for help on using tickets.