Skip to content

Commit

Permalink
Fix default publisher value + add missing publisher flags in some off…
Browse files Browse the repository at this point in the history
…liners
  • Loading branch information
benoit74 committed Jan 17, 2024
1 parent 90a5f14 commit d4ff4ca
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Meta:
publisher = String(
metadata={
"label": "Publisher",
"description": "Custom publisher name (ZIM metadata). “OpenZIM” otherwise",
"description": "Custom publisher name (ZIM metadata). “openZIM” otherwise",
}
)

Expand Down
2 changes: 1 addition & 1 deletion dispatcher/backend/src/common/schemas/offliners/kolibri.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class Meta:
publisher = String(
metadata={
"label": "Publisher",
"description": "Custom publisher name (ZIM metadata). “OpenZIM” otherwise",
"description": "Custom publisher name (ZIM metadata). “openZIM” otherwise",
}
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Meta:
publisher = String(
metadata={
"label": "Publisher",
"description": "ZIM publisher metadata. `Kiwix` otherwise.",
"description": "ZIM publisher metadata. `openZIM` otherwise.",
}
)
filenamePrefix = String(
Expand Down
8 changes: 8 additions & 0 deletions dispatcher/backend/src/common/schemas/offliners/nautilus.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ class Meta:
"description": "Name of content creator.",
}
)

publisher = String(
metadata={
"label": "Publisher",
"description": "Custom publisher name (ZIM metadata). “openZIM” otherwise",
}
)

tags = String(
metadata={
"label": "ZIM Tags",
Expand Down
7 changes: 7 additions & 0 deletions dispatcher/backend/src/common/schemas/offliners/openedx.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@ class Meta:
data_key="creator",
)

publisher = String(
metadata={
"label": "Publisher",
"description": "Custom publisher name (ZIM metadata). “openZIM” otherwise",
}
)

tags = String(
metadata={
"label": "ZIM Tags",
Expand Down
2 changes: 1 addition & 1 deletion dispatcher/backend/src/common/schemas/offliners/sotoki.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Meta:
publisher = String(
metadata={
"label": "Publisher",
"description": "Custom publisher name (ZIM metadata). “OpenZIM” otherwise",
"description": "Custom publisher name (ZIM metadata). “openZIM” otherwise",
},
)

Expand Down
7 changes: 7 additions & 0 deletions dispatcher/backend/src/common/schemas/offliners/ted.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,13 @@ class Meta:
}
)

publisher = String(
metadata={
"label": "Publisher",
"description": "Custom publisher name (ZIM metadata). “openZIM” otherwise",
}
)

tags = String(
metadata={
"label": "ZIM Tags",
Expand Down
7 changes: 7 additions & 0 deletions dispatcher/backend/src/common/schemas/offliners/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,13 @@ class Meta:
}
)

publisher = String(
metadata={
"label": "Publisher",
"description": "Custom publisher name (ZIM metadata). “openZIM” otherwise",
}
)

tags = String(
metadata={
"label": "ZIM Tags",
Expand Down
7 changes: 7 additions & 0 deletions dispatcher/backend/src/common/schemas/offliners/zimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ class Meta:
}
)

publisher = String(
metadata={
"label": "Publisher",
"description": "Custom publisher name (ZIM metadata). “openZIM” otherwise",
}
)

source = String(
metadata={
"label": "Content Source",
Expand Down

0 comments on commit d4ff4ca

Please sign in to comment.