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

affiliations: exporting helper functions #264

Merged
merged 1 commit into from
Nov 27, 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 @@ -11,7 +11,7 @@ import { Image } from "../../../Image";
import { Header } from "semantic-ui-react";
import Overridable from "react-overridable";

const makeIdEntry = (identifier) => {
export const makeIdEntry = (identifier) => {
let icon, link;

switch (identifier.scheme) {
Expand Down Expand Up @@ -45,7 +45,7 @@ const makeIdEntry = (identifier) => {
);
};

const makeSubheader = (creatibutor, isOrganization) => {
export const makeSubheader = (creatibutor, isOrganization) => {
if (isOrganization) {
const locationPart = [creatibutor?.location_name, creatibutor?.country_name]
?.filter(Boolean)
Expand Down
6 changes: 5 additions & 1 deletion src/lib/elements/contrib/invenioRDM/records/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
* // under the terms of the MIT License; see LICENSE file for more details.
*/

export { AffiliationsSuggestions } from "./AffiliationsSuggestions";
export {
AffiliationsSuggestions,
makeIdEntry,
makeSubheader,
} from "./AffiliationsSuggestions";
Loading