Skip to content

Commit

Permalink
EItem: Make E-Book default value in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshamarora1 authored and kpsherva committed May 28, 2024
1 parent 76aba5e commit 60a5eff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
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 @@ -36,7 +36,7 @@ class DocumentCard extends Component {
return image;
};

renderEItemLabels = (eitems) => {
renderEItemTypeLabels = (eitems) => {
if (eitems.total === 0) {
return null;
}
Expand Down Expand Up @@ -108,7 +108,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 @@ -21,7 +21,7 @@ class DocumentListEntry extends Component {
this.metadata = props.metadata;
}

renderEItemTags = (eitems) => {
renderEItemTypeLabels = (eitems) => {
if (eitems.total === 0) {
return null;
}
Expand Down Expand Up @@ -51,7 +51,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

0 comments on commit 60a5eff

Please sign in to comment.