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

EItem: Make E-Book default value in editor #626

Merged
merged 1 commit into from
May 28, 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
4 changes: 2 additions & 2 deletions src/lib/modules/Document/DocumentCard/DocumentCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class DocumentCard extends Component {
return image;
};

renderEItemLabels = (eitems) => {
renderEItemTypeLabels = (eitems) => {
if (eitems.total === 0) {
return null;
}
Expand Down Expand Up @@ -111,7 +111,7 @@ class DocumentCard extends Component {
On shelf
</Label>
)}
{this.renderEItemLabels(metadata.eitems)}
{this.renderEItemTypeLabels(metadata.eitems)}
<Overridable id="DocumentCard.Extras" metadata={metadata} />
</Card.Content>
</Card>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class DocumentListEntry extends Component {
this.metadata = props.metadata;
}

renderEItemTags = (eitems) => {
renderEItemTypeLabels = (eitems) => {
if (eitems.total === 0) {
return null;
}
Expand Down Expand Up @@ -50,7 +50,7 @@ class DocumentListEntry extends Component {
<List.Content>Available for loan</List.Content>
</List.Item>
) : null}
{this.renderEItemTags(meta.eitems)}
{this.renderEItemTypeLabels(meta.eitems)}
</List>
);
}
Expand Down
1 change: 1 addition & 0 deletions src/lib/pages/backoffice/EItem/EItemEditor/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const schema = () => {
.map((status) => status.text),
title: 'EItem type',
type: 'string',
default: 'E-BOOK',
},
source: {
title: 'Source',
Expand Down
Loading