mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
Mirror of https://github.com/zotero/zotero.git
Closes #453, Check if any fields will actually be discarded on item type change before giving warning Refs #530, Add base field conversion to translation level Added mechanism for linking item type fields via base fields, e.g. publisher => label in audioRecording New methods: Item.getFieldsNotInType(itemTypeID, allowBaseConversion) ItemFields.getLocalizedString(itemTypeID, field) ItemFields.isBaseField(fieldID) ItemFields.getFieldIDFromTypeAndBase(itemType, baseField) ItemFields.getBaseIDFromTypeAndField(itemType, typeField) ItemFields.getTypeFieldsFromBase(baseField) Currently only the publisher fields are mapped -- I need more feedback on #346 before I implement the others (specifically on whether or not all these sorts of fields should be done as distinct fields or whether some should just be localized strings (in which case they'll autocomplete but not show up separately as search conditions)) Also added 'university' as distinct publisher field for thesis Values of equivalent fields are now preserved when switching between item types (e.g. the 'studio' value becomes the 'label' value when switching between videoRecording and audioRecording), and the pop-up is much smarter--it will only prompt you if fields will in fact be lost, and it will list the fields that would be deleted. Not finished: - Searching for base fields doesn't yet search the type-specific fields, as Elena requested - import/export/bib should be updated to use the ItemFields base conversion methods where appropriate -- data coming from the 'publisher' field from translators, for example, should be put into the appropriate type-specific field. |
||
|---|---|---|
| chrome | ||
| components | ||
| defaults/preferences | ||
| chrome.manifest | ||
| install.rdf | ||
| license.txt | ||
| scrapers.sql | ||
| system.sql | ||
| update.rdf | ||
| userdata.sql | ||