Skip to content
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
28 changes: 25 additions & 3 deletions themes/MUG/additional.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,18 @@ The **educational resources schema (`lom`)** is not required for the MUG reposit

If, in the future, MUG decides to enable **educational resources**, the developer can follow these steps:

### **1. Update configuration variables**
### **1. Install invenio-records-lom**
Locally install invenio-records-lom, update the uv.lock and push the changes. **TODO: this should be somehow automatic.**

### **2. Update configuration variables**
In the configuration file, set the following variable to `True`:
```bash
OVERRIDE_SHOW_EDUCATIONAL_RESOURCES = True
```

### **2. Add the schema back to the Global Search Configuration**
Modify the GLOBAL_SEARCH_SCHEMAS dictionary by adding the lom schema:
```bash
```python
GLOBAL_SEARCH_SCHEMAS = {
"lom": {
"schema": "lom",
Expand All @@ -120,7 +123,13 @@ GLOBAL_SEARCH_SCHEMAS = {
}
```

### **3. Rebuild Global Search and Indices**
### **3. Run the database migration**
To create the tables necessary for OER run the database migrations with:
```bash
invenio alembic upgrade
```

### **4. Rebuild Global Search and Indices**
After reintroducing the schema, the global search database and indices need to be recreated:
```bash
invenio global-search rebuild-database
Expand All @@ -129,3 +138,16 @@ invenio index init
invenio rdm rebuild-all-indices
```

# MUG Customization

## UI

- We change the name of the Uploads dashboard menu with Research Results.
```python
USER_DASHBOARD_MENU_OVERRIDES = {
"uploads": {
"text": _("Research Results"),
},
}
"""Override the Uploads menu title"""
```
7 changes: 7 additions & 0 deletions themes/MUG/invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,13 @@ OVERRIDE_SHOW_PUBLICATIONS_SEARCH = True
OVERRIDE_SHOW_EDUCATIONAL_RESOURCES = False
"""Enable or disable the educational resources global search feature."""

USER_DASHBOARD_MENU_OVERRIDES = {
"uploads": {
"text": _("Research Results"),
},
}
"""Override the Uploads menu title"""

GLOBAL_SEARCH_SCHEMAS = {
"rdm": {
"schema": "rdm",
Expand Down
Loading