import DefaultCollectionModel from './DefaultCollectionModel'

export default class TranslateableCollectionModel extends DefaultCollectionModel {
  constructor(api) {
    super(api)
  }

  addItem (item) { // eslint-disable-line no-unused-vars
    // TODO: adding a figure like this would be possible in a classical Substance Data model
    // but it is not clear how to persist this in the JATS XML model
  }

  removeItem (item) { // eslint-disable-line no-unused-vars
    this._api.deleteTranslation(item.id)
  }

  getItems() {
    return this._api.getTranslatables()
  }

  _getCollectionId() {
    return 'translateables'
  }

}
import DefaultCollectionModel from './DefaultCollectionModel'

export default class TranslateableCollectionModel extends DefaultCollectionModel {
  constructor(api) {
    super(api)
  }

  addItem (item) { // eslint-disable-line no-unused-vars
    // TODO: adding a figure like this would be possible in a classical Substance Data model
    // but it is not clear how to persist this in the JATS XML model
  }

  removeItem (item) { // eslint-disable-line no-unused-vars
  }

  getItems() {
    return this._api.getTranslatables()
  }

  _getCollectionId() {
    return 'translateables'
  }

}
Remove wrong delete translation implementation.
Remove wrong delete translation implementation.
