- Considere there are more allowed children elements of
xref
(#267)
- Fix abstracts (#265)
- Generate HTML specially for the website (#258)
- Workaround the presence of
--
in a XML comment. Inherent problem of SGML languages (#254) - Fix HTMLGenerator to transform
graphic
intable
(#248) - Fix HTMLGenerator to transform
inline-graphic
inxref
(#250)
- Generate HTML for abstracts, one for file, for Google Scholar Indexing.
- Fix HTMLGenerator to show all the abstracts in each translated article page.
- Generate modals to all images, even without id attribute.
- Show collection date in the bibliographic strip for all documents types, except Ahead of Prints
- Fix thumbnail in modal where elements are grouped in tabs.
- Generate modals to figs located in front, back and sub-article.
- Check if there is thumbnail graphic alternative xlink:href before using it in HTMLGenerator.
- Use of thumbnail graphic alternative to build HTML in HTMLGenerator.
- WEB optimiser minor fix to not to externalize an error of one dependent library.
- Changes XML reading in WEB optimiser to not to load DTD
- Preserves XML DOCTYPE after XML reading in WEB optimiser
- Fixes XML WEB optimiser stop execution in case linked image file format are not supported
- Adds debug logs
- SPS Package WEB optimiser code refactoring
- Adds option to stop execution if an error occurs during WEB package optimisation
- Drop support for Python version 3.4.
- Ajustments to follow the Crossref DOI Display guidelines [https://www.crossref.org/display-guidelines/]
- Tool to optimise images for WEB in SPS Packages
- Initial support for SciELO PS version 1.10.
- Fixes link to retracted articles in the HTML.
- Fixes the how to cite of documents that have collaborative authors.
- Adds Python 3.7 to the test matrix.
- Removes the dependency of
python-slugify
.
- Adds highlight to a document retraction [#205].
- Adds support to partial retractions and minor improvements to labels [scieloorg/opac#1406 (comment)].
- Shows DOIs for translations when available [scieloorg/opac#1391], [#202].
- Shows history dates for sub-articles.
- Fixes the rendering of visual abstracts. [#200].
- Minor fixes to the generated HTML.
- Minor fixes to the generated HTML.
- Adds the capability to run a webserver that provides a web-based interface for stylechecker and htmlgenerator.
- README.rst and HISTORY.rst were converted to Markdown.
- Change validation rules for
<pub-date>
on sps-1.8. - Minor fixes to the generated HTML.
- Minor fixes to the generated HTML [scieloorg/opac#1276].
- Add support to SciELO PS 1.9.
- Minor fixes to the generated HTML [#184].
- Makes possible to have plugable catalogs of validation schemas and xslts.
- Minor fixes and adjusts to the generated HTML.
- Fixes a bug that would cause authors names to be ommited in the HTML version [#159]
- Fixes a bug that would break the html generator [#157]
- Fixes a bug on the distribution os xsl data files.
- Fixes a bug that would cause affs to be mandatory for corrections and retractions.
- Fixes support for SciELO PS 1.8.
- Fixes support for SciELO PS 1.8 adding validations to affs and ref-lists.
- Makes the validation of the response element more flexible.
- Adds more values to
//product/@product-type
. - Adds more values to
//date/@date-type
. - Adds SciELO BR specific rules.
- Fixes a bug that would cause error messages on all sps-1.8 documents.
- Initial support for SciELO PS 1.8.
- Updates the HTMLGenerator to support the build of the most recent version of the articles in HTML.
- Initial support for SciELO PS 1.7.
- Adds support to JATS 1.1.
- Removes Python 3.3 and adds lxml 3.8 and 4.0 to the test matrix.
- Fixes a bug that would cause
etree.XMLParser
to raise TypeError on some old versions of lxml.
- Reduces the size of the test matrix so tests run on a reasonable amount of time (the full matrix was taking almost 1 hour to run). Now we are testing against minor versions of lxml 3.4, 3.5 and 3.6 , except for 3.7.x series where we also test patch versions.
- Fixes bug that would cause wheel distributions to handle dependencies incorrectly.
- Fixes bugs and regressions.
- [Backwards incompatible] Major changes on
packtools.domain.XMLValidator
initializer and.parse
classmethod. The paramextra_schematron
is now deprecated. Usesch_schemas
andextra_sch_schemas
instead, since both params accept an arbitrary number of schematron schemas. - Validation logic was abstracted and moved to Validator objects
(
packtools.domain.PyValidator
,packtools.domain.DTDValidator
, andpacktools.domain.SchematronValidator
). - The stylechecker utility exits 0 on success, and >0 if an error occurs [#118].
- The values in attribute
@country
are checked against ISO3166 alpha-2 list. - Fixes a bug that would cause element's text to be printed out on error messages instead of the element's name [#123].
- [Backwards incompatible] Major changes to the data structure returned by
packtools.stylechecker.summarize
and, as consequence, to the JSON-encoded data structure produced by the stylechecker command-line tool [#75]. - The parsing of schematron schemas was accelerated by preventing the collection of the IDs in an auxiliary hash table [#109].
- Initial support for SciELO PS 1.6.
- This release is purely bureaucratic, because Pypi does not allow a package to be fixed and resubmitted with the same filename.
- Fixes syntax error on HISTORY.rst that caused style problems on Pypi.
- XML catalog to resolve system ids of type URL [#110].
- Remove the use license restrictions from the Brazil instance [#112].
- Make built-in schematron schemas available through the prefix
@
: @scielo-br, @sps-1.1, @sps-1.2, @sps-1.3, @sps-1.4, @sps-1.5. - Better exception and log messages.
- Fixes a bug that would cause invalid product types to be accepted on
article/front/article-meta/product/@product-type
. - Fixes a bug that would cause invalid invalid values to be accepted on
article/front/article-meta/aff/institution/@content-type
. - Clean up unused attributes from classes from the
packtools.style_error
module. - Log messages are now omitted from the stderr by default.
- Fixes a bug that would cause tests to fail on Python 3.6 [#107].
- Bugfix release [#101].
- Bugfix release [https://github.com/scieloorg/packtools/commit/36a0277e].
- Added functions
stylechecker.summarize
andstylechecker.annotate
. - Added zip-file validation capabilities.
- Initial support for SciELO PS 1.5.
- Fixes a bug that would cause
country
elements to be mandatory on sub-articles of typetransation
. - HTMLGenerator().generate() method now handling undefined
article/@xml:lang
attribute.
- Initial support for SciELO PS 1.4.
- Better debug information with
stylechecker sysinfo
option. - Added scripts to handle registration of local xml catalog in the super catalog.
- New domain specific exceptions.
- The module
packtools.xray
was removed. - Added support for automatic generation of HTML documents through
HTMLGenerator
. - Backwards incompatible change in
XMLValidator
init method signature.
- Fixe some issues that would cause invalid sps-1.3 XMLs to be considered valid.
- Minor refactoring to make possible for the XMLValidator to handle deprecated versions of SciELO PS.
- Added basic support to SciELO PS 1.3.
- Fixed bug that would cause empty mandatory elements to be valid.
- Added feature to run the validation against an external schematron schema [#55].
- stylechecker's
loglevel
option accepts upper, lower or mixed case strings. - stylechecker utility can read from stdin, so it can be a filter in unix pipelines.
- Added
raw
option to stylechecker. - Fixed bug that would raise UnicodeDecodeError in the presence of any non-ascii character in the path to the file (Python 2 on Windows only).
- Fixed bug that would cause page counts to be reported as error when pagination is identified with elocation-id [#51].
- Added support for creative commons IGO licenses (sps-1.2 only).
- Fixed bug that would cause funding-group validation to raise false positives.
- Validating the minimum set of elements required for references of type journal [http://git.io/vUSp6].
- Added validation of //aff/country/@country attributes for XMLs under sps-1.2 spec.
- Fixes a bug in which the occurrence of empty award-id, fn[@fn-type="financial-disclosure"] or ack could lead stylechecker to crash.
- Fixes a bug that report page-count as invalid when fpage or lpage values are non-digit.
- Fixes a bug that mark as invalid XMLs containing use-licenses with https scheme or missing trailing slashes.
- Changes the funding-group validation algorithm.
- Checking for funding-statement when fn[fn-type="financial-disclosure"] is present.
- Added SciELO PS 1.2 support.
- Added the apparent sourceline of the element raising validation errors (stylechecker).
- Added the option nocolors to prevent stylechecker output from being colorized by ANSI escape sequences.
- stylechecker now prints log messages to stdout. The option loglevel should be used to define the log level. Options are: DEBUG, INFO, WARNING, ERROR or CRITICAL.
- SciELO PS 1.2 schematron uses EXSLT querybinding.
- Better error handling while analyzing multiple XML files with stylechecker.
- Fixes a bug that causes malfunctioning on stylechecker while expanding wildcards on windows.
- Major semantic changes at assetsdir options. Now it is always turned ON, and the option is used to set the lookup basedir. By default, the XML basedir is used.
- stylechecker CLI utility overhaul:
- The basic output is now presented as JSON structure.
- The option assetsdir lookups, in the given dir, for each asset referenced in XML. The annotated option now writes the output to a file. The utility now takes more than one XML a time.
- pygments, if installed, will be used to display pretty JSON outputs.
- Added method
XMLValidator.lookup_assets
. - Added property
XMLValidator.assets
. - Fixed minor issue that would cause //element-citation[@publication-type="report"] to be reported as invalid.
- Fixed minor issue that would erroneously identify an element-citation element as not being child of element ref.
- Minor fix to implement changes from SciELO PS 1.1.1.
- Python 3 support.
- Project-wide code refactoring.
packtools.__version__
attribute to get the package version.- Distinction between classes of error with the attribute
StyleError.level
.
- Basic implementation of XML style rules according to SciELO PS version 1.1.
stylechecker
andpackbuilder
console utilities.- Major performance improvements on
XMLValidator
instantiation, when used with long-running processes (9.5x).