New menu entries for creating sub-objects on community and collection pages - #5873
New menu entries for creating sub-objects on community and collection pages#5873EikLoe wants to merge 18 commits into
Conversation
|
I'm still not sure, whether we want the Submit button to display the text "Submit Publication" or "Submit JournalIssue" on collections with the specific entity types. |
450971a to
510200a
Compare
|
Hi @EikLoe, |
510200a to
a6de76f
Compare
alexandrevryghem
left a comment
There was a problem hiding this comment.
@EikLoe: Thnx for this PR, I've tested the changes and they look good. I added some small inline comments regarding small improvements
I did however notice that you added an option to display the "Add an item" option as a separate button. That code should be removed, because this is something that can easily be achieved by moving that provider to be at the same level as the DsoOptionMenuProvider like this:
[MenuID.DSO_EDIT]: [
SubmitNewItemMenuProvider.onRoute(
MenuRoute.COLLECTION_PAGE,
),
DsoOptionMenuProvider.withSubs([
EditItemMenuProvider.onRoute(
MenuRoute.ITEM_PAGE,
),
SubscribeMenuProvider.onRoute(
MenuRoute.COMMUNITY_PAGE,
MenuRoute.COLLECTION_PAGE,
),
...|
Hi @alexandrevryghem ,
I'm not sure how to address the problem with the configurable option by adding it twice to the app.menu.ts Both buttons would need slightly different attributes, which would require two providers: one for the dso-edit-menu entry and one for the collection-page. The other option is, implementing the configuration check in the app.menu.ts. |
|
@EikLoe: Implementing that button as a menu provider is in my opinion already enough to make it configurable. Based on that comment I assume the default behavior is displaying it like this as a seperate button, and if someone want to customize their DSpace to show the option under the regular menu this can easily be achieved by moving the provider to the dso menu About the issue if it would be prominent enough we could update the We should propably also introduce a new |
This a good idea! But isn't the new |
…tButton configuration.
|
Hi @EikLoe, |
f56d875 to
303be42
Compare
|
@EikLoe: This would indeed be best handled in the |
|
I added the <span [class.sr-only]="section.renderIconOnly" >{{itemModel.text | translate}}</span>(the default would be |
|
@EikLoe: I don't have a lot of time to test it today but it looks good 👌 |


References
Add references/links to any related issues or PRs. These may include:
Description
This PR adds new entries to the dso-edit menus on community and collection pages. Those entries allow you to directly add sub-objects such as communities or collections to an existing community or submit a new item in a collection.

In addition a new Submit item button will be added to the collection page, if
collection.showSubmitButtonis set totrue.If you're a logged in as a submitter and your frontend is configured to show the submit button the collection page should look like this:
If

collection.showSubmitButtonis set tofalse, the Submit item functionality is hidden in the dso-edit menu of the collection page:Instructions for Reviewers
Please add a more detailed description of the changes made by your PR. At a minimum, providing a bulleted list of changes in your PR is helpful to reviewers.
List of changes in this PR:
Include guidance for how to test or review your PR. This may include: steps to reproduce a bug, screenshots or description of a new feature, or reasons behind specific changes.
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)If my PR includes new libraries/dependencies (inpackage.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.