Add RecordDataFormatter helper to simplify description template. (#829)
- Replaces extremely redundant template logic with a view helper driven by a simple, declarative configuration. - Injects default configurations into the view helper, so that changes (adding/removing/reordering fields) can be made by customizing a factory OR by customizing templates, depending on user preferences. - Includes a class for managing configurations, to simplify common setup tasks. - Keeps all data retrieval logic in the record driver, but allows extremely granular display customization on a field-by-field and driver-by-driver basis using driver-specific templates.
Showing
- module/VuFind/src/VuFind/View/Helper/Root/Record.php 1 addition, 1 deletionmodule/VuFind/src/VuFind/View/Helper/Root/Record.php
- module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatter.php 275 additions, 0 deletions...uFind/src/VuFind/View/Helper/Root/RecordDataFormatter.php
- module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatter/SpecBuilder.php 136 additions, 0 deletions...Find/View/Helper/Root/RecordDataFormatter/SpecBuilder.php
- module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatterFactory.php 161 additions, 0 deletions...rc/VuFind/View/Helper/Root/RecordDataFormatterFactory.php
- module/VuFind/tests/unit-tests/src/VuFindTest/View/Helper/Root/RecordDataFormatter/SpecBuilderTest.php 86 additions, 0 deletions.../View/Helper/Root/RecordDataFormatter/SpecBuilderTest.php
- module/VuFind/tests/unit-tests/src/VuFindTest/View/Helper/Root/RecordDataFormatterTest.php 192 additions, 0 deletions...c/VuFindTest/View/Helper/Root/RecordDataFormatterTest.php
- themes/bootstrap3/templates/RecordDriver/SolrDefault/core.phtml 11 additions, 234 deletions.../bootstrap3/templates/RecordDriver/SolrDefault/core.phtml
- themes/bootstrap3/templates/RecordDriver/SolrDefault/data-allRecordLinks.phtml 11 additions, 0 deletions...plates/RecordDriver/SolrDefault/data-allRecordLinks.phtml
- themes/bootstrap3/templates/RecordDriver/SolrDefault/data-allSubjectHeadings.phtml 11 additions, 0 deletions...es/RecordDriver/SolrDefault/data-allSubjectHeadings.phtml
- themes/bootstrap3/templates/RecordDriver/SolrDefault/data-authorNotes.phtml 8 additions, 0 deletions...templates/RecordDriver/SolrDefault/data-authorNotes.phtml
- themes/bootstrap3/templates/RecordDriver/SolrDefault/data-authors.phtml 15 additions, 0 deletions...ap3/templates/RecordDriver/SolrDefault/data-authors.phtml
- themes/bootstrap3/templates/RecordDriver/SolrDefault/data-childRecords.phtml 1 addition, 0 deletions...emplates/RecordDriver/SolrDefault/data-childRecords.phtml
- themes/bootstrap3/templates/RecordDriver/SolrDefault/data-containerTitle.phtml 10 additions, 0 deletions...plates/RecordDriver/SolrDefault/data-containerTitle.phtml
- themes/bootstrap3/templates/RecordDriver/SolrDefault/data-onlineAccess.phtml 14 additions, 0 deletions...emplates/RecordDriver/SolrDefault/data-onlineAccess.phtml
- themes/bootstrap3/templates/RecordDriver/SolrDefault/data-publicationDetails.phtml 14 additions, 0 deletions...es/RecordDriver/SolrDefault/data-publicationDetails.phtml
- themes/bootstrap3/templates/RecordDriver/SolrDefault/data-series.phtml 16 additions, 0 deletions...rap3/templates/RecordDriver/SolrDefault/data-series.phtml
- themes/bootstrap3/templates/RecordDriver/SolrDefault/data-tags.phtml 15 additions, 0 deletions...strap3/templates/RecordDriver/SolrDefault/data-tags.phtml
- themes/bootstrap3/templates/RecordTab/description.phtml 7 additions, 229 deletionsthemes/bootstrap3/templates/RecordTab/description.phtml
- themes/root/theme.config.php 1 addition, 0 deletionsthemes/root/theme.config.php
Please register or sign in to comment