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

Improved handling of empty titles #7362

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 @@ -28,8 +28,13 @@
data-ng-href="catalog.search#/{{(md.draft == 'y')?'metadraf':'metadata'}}/{{md.uuid}}"
title="{{md.resourceAbstract}}"
class="gn-break"
>{{md.resourceTitle}}</a
>
<i
data-ng-show="md.resourceTitle.trim()=='' || md.resourceTitle===undefined"
>{{'missingTitle' | translate}}</i
>
{{md.resourceTitle}}
</a>
<span data-ng-show="md.isTemplate == 's'">{{md.resourceTitle}}</span>
<div class="gn-record-details text-muted">
<small><span data-translate="">owner</span>:</small>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ <h1>
title="{{md.resourceTitle}}"
class="gn-break"
>
<i data-ng-show="md.resourceTitle.trim()=='' || md.resourceTitle===undefined"
>{{'missingTitle' | translate}}</i
>
{{(md.resourceTitle) | characters:80}}
</a>
</h1>
Expand Down
3 changes: 2 additions & 1 deletion web-ui/src/main/resources/catalog/locales/ca-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,6 @@
"batchSubmitInfo": "This option submits the selected metadata owned by the user.",
"reviewerNotAllowedPublish": "Reviewer not allowed to publish the metadata",
"reviewerNotAllowedUnpublish": "Reviewer not allowed to un-publish the metadata",
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata"
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata",
"missingTitle": "Missing title"
}
5 changes: 3 additions & 2 deletions web-ui/src/main/resources/catalog/locales/cs-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,6 @@
"batchSubmitInfo": "Tato možnost odešle vybraná metadata vlastněná uživatelem.",
"reviewerNotAllowedPublish": "Prohlížející nemá oprávnění publikovat metadata",
"reviewerNotAllowedUnpublish": "Prohlížející nemůže zrušit publikování metadat",
"reviewerNotAllowedPublishUnpublish": "Prohlížející nemá oprávnění publikovat/zrušit publikování metadat"
}
"reviewerNotAllowedPublishUnpublish": "Prohlížející nemá oprávnění publikovat/zrušit publikování metadat",
"missingTitle": "Missing title"
}
5 changes: 3 additions & 2 deletions web-ui/src/main/resources/catalog/locales/da-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,6 @@
"batchSubmitInfo": "Denne indstilling indsender de valgte metadata, der ejes af brugeren.",
"reviewerNotAllowedPublish": "Reviewer not allowed to publish the metadata",
"reviewerNotAllowedUnpublish": "Reviewer not allowed to un-publish the metadata",
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata"
}
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata",
"missingTitle": "Missing title"
}
5 changes: 3 additions & 2 deletions web-ui/src/main/resources/catalog/locales/de-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,6 @@
"batchSubmitInfo": "This option submits the selected metadata owned by the user.",
"reviewerNotAllowedPublish": "Reviewer not allowed to publish the metadata",
"reviewerNotAllowedUnpublish": "Reviewer not allowed to un-publish the metadata",
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata"
}
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata",
"missingTitle": "Missing title"
}
3 changes: 2 additions & 1 deletion web-ui/src/main/resources/catalog/locales/en-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -575,5 +575,6 @@
"batchSubmitInfo": "This option submits the selected metadata owned by the user.",
"reviewerNotAllowedPublish": "Reviewer not allowed to publish the metadata",
"reviewerNotAllowedUnpublish": "Reviewer not allowed to un-publish the metadata",
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata"
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata",
"missingTitle": "Missing title"
}
5 changes: 3 additions & 2 deletions web-ui/src/main/resources/catalog/locales/es-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,6 @@
"batchSubmitInfo": "This option submits the selected metadata owned by the user.",
"reviewerNotAllowedPublish": "Reviewer not allowed to publish the metadata",
"reviewerNotAllowedUnpublish": "Reviewer not allowed to un-publish the metadata",
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata"
}
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata",
"missingTitle": "Missing title"
}
3 changes: 2 additions & 1 deletion web-ui/src/main/resources/catalog/locales/fi-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,6 @@
"batchSubmitInfo": "This option submits the selected metadata owned by the user.",
"reviewerNotAllowedPublish": "Reviewer not allowed to publish the metadata",
"reviewerNotAllowedUnpublish": "Reviewer not allowed to un-publish the metadata",
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata"
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata",
"missingTitle": "Missing title"
}
5 changes: 3 additions & 2 deletions web-ui/src/main/resources/catalog/locales/fr-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,6 @@
"batchSubmitInfo": "Cette option propose les fiches sélectionnées appartenant à l'utilisateur.",
"reviewerNotAllowedPublish": "Les relecteurs ne sont pas autorisés à publier des fiches.",
"reviewerNotAllowedUnpublish": "Les relecteurs ne sont pas autorisés à dépublier des fiches",
"reviewerNotAllowedPublishUnpublish": "Les relecteurs ne sont pas autorisés à publier/dépublier des fiches"
}
"reviewerNotAllowedPublishUnpublish": "Les relecteurs ne sont pas autorisés à publier/dépublier des fiches",
"missingTitle": "Missing title"
}
3 changes: 2 additions & 1 deletion web-ui/src/main/resources/catalog/locales/is-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,6 @@
"batchSubmitInfo": "This option submits the selected metadata owned by the user.",
"reviewerNotAllowedPublish": "Reviewer not allowed to publish the metadata",
"reviewerNotAllowedUnpublish": "Reviewer not allowed to un-publish the metadata",
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata"
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata",
"missingTitle": "Missing title"
}
3 changes: 2 additions & 1 deletion web-ui/src/main/resources/catalog/locales/it-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,6 @@
"batchSubmitInfo": "This option submits the selected metadata owned by the user.",
"reviewerNotAllowedPublish": "Reviewer not allowed to publish the metadata",
"reviewerNotAllowedUnpublish": "Reviewer not allowed to un-publish the metadata",
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata"
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata",
"missingTitle": "Missing title"
}
3 changes: 2 additions & 1 deletion web-ui/src/main/resources/catalog/locales/ko-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,6 @@
"batchSubmitInfo": "This option submits the selected metadata owned by the user.",
"reviewerNotAllowedPublish": "Reviewer not allowed to publish the metadata",
"reviewerNotAllowedUnpublish": "Reviewer not allowed to un-publish the metadata",
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata"
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata",
"missingTitle": "Missing title"
}
5 changes: 3 additions & 2 deletions web-ui/src/main/resources/catalog/locales/nl-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -574,5 +574,6 @@
"batchSubmitInfo": "This option submits the selected metadata owned by the user.",
"reviewerNotAllowedPublish": "Reviewer not allowed to publish the metadata",
"reviewerNotAllowedUnpublish": "Reviewer not allowed to un-publish the metadata",
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata"
}
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata",
"missingTitle": "Missing title"
}
3 changes: 2 additions & 1 deletion web-ui/src/main/resources/catalog/locales/pt-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,6 @@
"batchSubmitInfo": "This option submits the selected metadata owned by the user.",
"reviewerNotAllowedPublish": "Reviewer not allowed to publish the metadata",
"reviewerNotAllowedUnpublish": "Reviewer not allowed to un-publish the metadata",
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata"
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata",
"missingTitle": "Missing title"
}
3 changes: 2 additions & 1 deletion web-ui/src/main/resources/catalog/locales/ru-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,6 @@
"batchSubmitInfo": "This option submits the selected metadata owned by the user.",
"reviewerNotAllowedPublish": "Reviewer not allowed to publish the metadata",
"reviewerNotAllowedUnpublish": "Reviewer not allowed to un-publish the metadata",
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata"
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata",
"missingTitle": "Missing title"
}
3 changes: 2 additions & 1 deletion web-ui/src/main/resources/catalog/locales/sk-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,6 @@
"batchSubmitInfo": "This option submits the selected metadata owned by the user.",
"reviewerNotAllowedPublish": "Reviewer not allowed to publish the metadata",
"reviewerNotAllowedUnpublish": "Reviewer not allowed to un-publish the metadata",
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata"
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata",
"missingTitle": "Missing title"
}
5 changes: 3 additions & 2 deletions web-ui/src/main/resources/catalog/locales/sv-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,6 @@
"batchSubmitInfo": "This option submits the selected metadata owned by the user.",
"reviewerNotAllowedPublish": "Reviewer not allowed to publish the metadata",
"reviewerNotAllowedUnpublish": "Reviewer not allowed to un-publish the metadata",
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata"
}
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata",
"missingTitle": "Missing title"
}
3 changes: 2 additions & 1 deletion web-ui/src/main/resources/catalog/locales/zh-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,5 +573,6 @@
"batchSubmitInfo": "This option submits the selected metadata owned by the user.",
"reviewerNotAllowedPublish": "Reviewer not allowed to publish the metadata",
"reviewerNotAllowedUnpublish": "Reviewer not allowed to un-publish the metadata",
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata"
"reviewerNotAllowedPublishUnpublish": "Reviewer not allowed to publish / un-publish the metadata",
"missingTitle": "Missing title"
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
gn-formatter="formatter.defaultUrl"
>
<h1>
<span class="clamp-2">{{md.resourceTitle}}</span>
<span class="clamp-2">
<i
data-ng-show="md.resourceTitle.trim()=='' || md.resourceTitle===undefined"
>{{'missingTitle' | translate}}</i
>
{{md.resourceTitle}}
</span>
</h1>
</a>
</div>
Expand Down
Loading