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 - Ported to PHP 8.3 and github actions
- PHP
Published by zozlak about 1 year ago
https://github.com/acdh-oeaw/tokeneditor-model - Fixed issues with loading schema from the database
- PHP
Published by zozlak over 6 years ago
https://github.com/acdh-oeaw/tokeneditor-model - Loading schema from the database fixed.
- PHP
Published by zozlak over 6 years ago
https://github.com/acdh-oeaw/tokeneditor-model - Non-standad property attributes made flexible
Backward-incompatible changes:
- The
dict_valuestable has been removed. Theattributescolumn of typejsonbhas been added instead to thepropertiestable. - The
acdhOeaw\tokeneditorModel\Property::getValues()method has been removed. - The
acdhOeaw\tokeneditorModel\Property::getAttribute(attributeName)and theacdhOeaw\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
jsonbin 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 - Reserved property list corrected
- PHP
Published by zozlak over 7 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 genericasArray()method with actual output formatting left out to the external formatter classesacdhOeaw\tokeneditorModel\Document::exportCsv()replaced by theexportTabular()methodacdhOeaw\tokeneditorModel\ExportTableInterfaceadded as a common interface for non-XML outputsacdhOeaw\tokeneditorModel\ExportCsvandacdhOeaw\tokeneditorModel\ExportJsonprovided 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 - Full optional properties support added
- 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 (likeTokenCollection::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 - TokenCollection now skips non-existing sorting columns
- 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 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 tohtmlspecialchars()
- PHP
Published by zozlak almost 8 years ago
https://github.com/acdh-oeaw/tokeneditor-model - API enriched
Document::delete()added- Various getters for
Propertyclass 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 - User class added for user roles management
- PHP
Published by zozlak about 8 years ago
https://github.com/acdh-oeaw/tokeneditor-model - Major cleaning
- all classes moved to the
achdOeaw\tokeneditorModelnamespace to avoid collisions with the achd/tokeneditor classes -
acdhOeaw\tokeneditorModel\TokenCollectionupdated 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