Skip to content
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

[Backport 4.2.x] Workflow / Edit action / Fix link in search results #8054

Merged
merged 1 commit into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"resourceTitle*",
"resourceAbstract*",
"draft",
"draftId",
"owner",
"link",
"status*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,16 @@

module.directive("gnLinksBtn", [
"gnTplResultlistLinksbtn",
function (gnTplResultlistLinksbtn) {
"gnMetadataActions",
function (gnTplResultlistLinksbtn, gnMetadataActions) {
return {
restrict: "E",
replace: true,
scope: true,
templateUrl: gnTplResultlistLinksbtn
templateUrl: gnTplResultlistLinksbtn,
link: function linkFn(scope) {
scope.gnMetadataActions = gnMetadataActions;
}
};
}
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<a
class="gn-md-edit-btn btn btn-default btn-sm"
data-ng-show="user.canEditRecord(md)"
data-ng-href="catalog.edit#/metadata/{{md.id}}?redirectUrl=catalog.search%23%2Fmetadata%2F{{md.uuid}}"
data-ng-href="catalog.edit#/metadata/{{gnMetadataActions.getMetadataIdToEdit(md)}}?redirectUrl=catalog.search%23%2Fmetadata%2F{{md.uuid}}"
title="{{'edit' | translate}}"
aria-label="{{'edit' | translate}}"
>
Expand Down
Loading