Skip to content

Commit 846f0d4

Browse files
committed
backoffice: added input for internal location field accessible_by_patrons
1 parent c58cc0a commit 846f0d4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/lib/pages/backoffice/Location/InternalLocationEditor/schema.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ export const schema = () => {
2222
type: 'string',
2323
title: 'Physical location',
2424
},
25+
accessible_by_patrons: {
26+
type: 'boolean',
27+
title: 'Is this location accessible by patrons?',
28+
default: true,
29+
},
2530
},
2631
};
2732
return _merge(_schema, invenioConfig.INTERNAL_LOCATIONS.editorSchema);

src/lib/pages/backoffice/Location/InternalLocationEditor/uiSchema.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,9 @@ export const uiSchema = (title) => {
1010
'ui:widget': 'textarea',
1111
},
1212
'custom:grid': [
13-
{
14-
name: 8,
15-
location_pid: 8,
16-
},
17-
{
18-
physical_location: 8,
19-
notes: 8,
20-
},
13+
{ name: 8, location_pid: 8 },
14+
{ physical_location: 8, notes: 8 },
15+
{ accessible_by_patrons: 8 },
2116
],
2217
'custom:root': {
2318
'custom:formTitle': title,

0 commit comments

Comments
 (0)