-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring RecordDataFormatter spec provision #4195
base: dev
Are you sure you want to change the base?
Refactoring RecordDataFormatter spec provision #4195
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @ThoWagen -- this is a good idea; see below for a few minor suggestions!
module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatter.php
Outdated
Show resolved
Hide resolved
module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatter.php
Outdated
Show resolved
Hide resolved
module/VuFind/tests/unit-tests/src/VuFindTest/View/Helper/Root/RecordDataFormatterTest.php
Outdated
Show resolved
Hide resolved
module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatterFactory.php
Show resolved
Hide resolved
module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatterFactory.php
Show resolved
Hide resolved
module/VuFind/src/VuFind/RecordDataFormatter/Specs/PluginManager.php
Outdated
Show resolved
Hide resolved
module/VuFind/src/VuFind/RecordDataFormatter/Specs/DefaultRecord.php
Outdated
Show resolved
Hide resolved
module/VuFind/src/VuFind/RecordDataFormatter/Specs/DefaultRecord.php
Outdated
Show resolved
Hide resolved
…rd.php Co-authored-by: Demian Katz <[email protected]>
…ing' of github.com:ThoWagen/vufind into pull-request/refactor-record-data-formatter-spec-providing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @ThoWagen, I'm feeling very good about the direction this is taking. I've just left a couple of minor suggestions.
Once you've addressed those (and feel free to ignore any suggestions you don't like -- these ideas are purely optional), I think we should advertise this one on the pr-reviews channel on Slack to get a few more eyes on it, since it's a big and significant change.
module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatterFactory.php
Outdated
Show resolved
Hide resolved
module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatter.php
Outdated
Show resolved
Hide resolved
…actory.php Co-authored-by: Demian Katz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me now! I've posted a note to the #pr-reviews
channel in Slack, and will give some time to collect more feedback before formally approving and merging.
This PR moves the definition of RecordDataFormatter specifications from the factory to a new plugin manager. This has the advantage, that the RecordDataFormatter can be used for other RecordDrivers like EDS and that translations are available when defining the specs.
TODO