Recent Releases of https://github.com/acdh-oeaw/tokeneditor-model

https://github.com/acdh-oeaw/tokeneditor-model - Minor fixes

- PHP
Published by zozlak about 1 year ago

https://github.com/acdh-oeaw/tokeneditor-model - Non-standad property attributes made flexible

Backward-incompatible changes:

  • The dict_values table has been removed. The attributes column of type jsonb has been added instead to the properties table.
  • The acdhOeaw\tokeneditorModel\Property::getValues() method has been removed.
  • The acdhOeaw\tokeneditorModel\Property::getAttribute(attributeName) and the acdhOeaw\tokeneditorModel\Property::getAttributes() have been added.
  • All non-standard property attributes from the XML schema definition are now parsed into custom attributes dictionary (stored as a jsonb in the database and available trough the API using above-mentioned acdhOeaw\tokeneditorModel\Property::getAttribute(attributeName)andacdhOeaw\tokeneditorModel\Property::getAttributes()` methods)

The change allows flexible adding of new property attributes without need to change the database structure nor the API.

- PHP
Published by zozlak over 6 years ago

https://github.com/acdh-oeaw/tokeneditor-model - New API for non-XML exports

A previously existing CSV export has been generalized to a tabular export with a JSON implementation added:

  • acdhOeaw\tokeneditorModel\Token::exportCsv() dropped in favour of a generic asArray() method with actual output formatting left out to the external formatter classes
  • acdhOeaw\tokeneditorModel\Document::exportCsv() replaced by the exportTabular() method
  • acdhOeaw\tokeneditorModel\ExportTableInterface added as a common interface for non-XML outputs
  • acdhOeaw\tokeneditorModel\ExportCsv and acdhOeaw\tokeneditorModel\ExportJson provided for CSV and JSON exports

- PHP
Published by zozlak over 7 years ago

https://github.com/acdh-oeaw/tokeneditor-model - Schema::loadDb() returns schema XML string

The acdhOeaw\tokeneditorModel::loadDb() method now returns the schema XML reconstructed from the database.

- PHP
Published by zozlak over 7 years ago

https://github.com/acdh-oeaw/tokeneditor-model - XML property type added

XML property values as put back into the original document as an XML code parsed in context of all token's XML namespaces (while all previously existing property types were put back as strings with all XML special characters escaped).

- PHP
Published by zozlak over 7 years ago

https://github.com/acdh-oeaw/tokeneditor-model - Adjustments in TokenCollection::getStats() and Property class

  • TokenCollection::getStats() takes into account also original values.
  • TokenCollection::getStats() takes property name (like TokenCollection::addFilter())
  • experimental support for the "optional" Property attribute added

- PHP
Published by zozlak over 7 years ago

https://github.com/acdh-oeaw/tokeneditor-model - Viewer document role added

- PHP
Published by zozlak almost 8 years ago

https://github.com/acdh-oeaw/tokeneditor-model - fixed getStats function

- PHP
Published by babslgam almost 8 years ago

https://github.com/acdh-oeaw/tokeneditor-model - Sorting added to the TokenCollection class

For large datasets client-side sorting may give wrong results (basically if the fetched data chunk is smaller then all matching tokens) therefore server-side sorting (applied before offset and limit clauses) was needed.

It was finally added.

- PHP
Published by zozlak almost 8 years ago

https://github.com/acdh-oeaw/tokeneditor-model - Sorting added to the TokenCollection class

For large datasets client-side sorting may give wrong results (basically if the fetched data chunk is smaller then all matching tokens) therefore server-side sorting (applied before offset and limit clauses) was needed.

It was finaly added.

- PHP
Published by zozlak almost 8 years ago

https://github.com/acdh-oeaw/tokeneditor-model - Bugfixes

  • Schema::loadXML() properly overwrites previous schema
  • All htmlentities() changed to htmlspecialchars()

- PHP
Published by zozlak almost 8 years ago

https://github.com/acdh-oeaw/tokeneditor-model - API enriched

  • Document::delete() added
  • Various getters for Property class added

- PHP
Published by zozlak almost 8 years ago

https://github.com/acdh-oeaw/tokeneditor-model - Tokens no longer have values

As discussed in the https://redmine.acdh.oeaw.ac.at/issues/5859 it's more flexible to treat former token value as just another token property. It simplifies data model and processing and allows editing them.

It's still possible to use old XML schemas, they will be automatically converted during an import (with token value turned into a read only "free text" property).

- PHP
Published by zozlak almost 8 years ago

https://github.com/acdh-oeaw/tokeneditor-model - Major cleaning

  • all classes moved to the achdOeaw\tokeneditorModel namespace to avoid collisions with the achd/tokeneditor classes
  • acdhOeaw\tokeneditorModel\TokenCollection updated and extended
  • new tests added
  • type hints added
  • license headers fixed
  • sample datasets added
  • travis and coveralls setup made up to date

- PHP
Published by zozlak about 8 years ago

https://github.com/acdh-oeaw/tokeneditor-model -

- PHP
Published by zozlak about 10 years ago