Skip to content

Commit

Permalink
Merge pull request #40 from RRZE-Webteam/FAU-376
Browse files Browse the repository at this point in the history
[FAU-376] Update filter text, update documentation
  • Loading branch information
zhyian authored Jul 18, 2024
2 parents c42a11e + 6db327d commit 00ca233
Show file tree
Hide file tree
Showing 12 changed files with 188 additions and 172 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Expand the admission requirements filter to include the "Admission free with restriction" option.
- Support pre-applied values for the admission requirements filter.
- Support filter reordering based on the `filters` attribute in the search shortcode.
- Support `ids` attribute in the search shortcode to restrict search results by Campo Keys.
- Support `german-language-skills-for-international-students` attribute in the search shortcode to restrict search results by language skills.
Expand Down
6 changes: 3 additions & 3 deletions docs/degree_programs_search_shortcode.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ See below for a list of supported attributes.

| Filter | Description | Accepted values (if used as a pre-applied filter) |
|-----------------------------------------------------|-------------------------------------------------------------------------|---------------------------------------------------|
| `admission-requirement` | Admission requirements filter | Not available |
| `admission-requirement` | Admission requirements filter | Comma-separated term slugs |
| `area-of-study` | Area of study filter | Comma-separated term names |
| `attribute` | Attribute filter | Comma-separated term names |
| `degree` | Degree filter | Comma-separated term names |
Expand Down Expand Up @@ -52,7 +52,7 @@ show visitors.
### Example with pre-applied filters

To pre-apply filters and hide them from visitors, add an attribute with the name of the filter as the key and
comma-separated term names as the value.
comma-separated term names as the value. Please always use slugs as the value for the admission requirement filter.
Example: To pre-apply the `degree` filter with `Bachelor` and `Master` and also add `faculty` and `study-location` as
visible filters, use the following shortcode:

Expand All @@ -63,7 +63,7 @@ visible filters, use the following shortcode:
Note that in this example, although `degree` is a hidden filter, it still must be included in the `filters` attributes.

Note that on the main website (meinstudium.fau.de), instead of using term names, it is possible to use term IDs or
slugs. This does **not** work on other websites.
slugs. This does **not** work on other websites, except for the admission requirement filter, which only works with slugs.

## Advanced filters

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"translation-revision-date":"2024-05-29 14:27+0200","generator":"WP-CLI\/2.10.0","source":"assets\/ts\/gutenberg.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de_DE","plural-forms":"nplurals=2; plural=(n != 1);"},"backoffice: block editor\u0004Select degree program":["Studiengang w\u00e4hlen"],"backend: block editor\u0004Could not load suggestion list":["Vorschlagsliste konnte nicht geladen werden"]}}}
{"translation-revision-date":"2024-07-18 16:07+0300","generator":"WP-CLI\/2.9.0","source":"assets\/ts\/gutenberg.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de_DE","plural-forms":"nplurals=2; plural=(n != 1);"},"backoffice: block editor\u0004Select degree program":["Studiengang w\u00e4hlen"],"backend: block editor\u0004Could not load suggestion list":["Vorschlagsliste konnte nicht geladen werden"]}}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"translation-revision-date":"2024-05-29 14:27+0200","generator":"WP-CLI\/2.10.0","source":"assets\/ts\/frontend.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de_DE","plural-forms":"nplurals=2; plural=(n != 1);"},"frontoffice: degree-programs-overview\u0004Type":["Typ"],"frontoffice: degree-programs-overview\u0004Start":["Studienbeginn"],"frontoffice: degree-programs-overview\u0004Location":["Studienort"],"frontoffice: degree-programs-overview\u0004NC":["NC"],"frontoffice: degree-programs-overview\u0004Language certificates":["Sprachnachweise"],"frontoffice: Search results\u0004No degree programs found":["Keine Studieng\u00e4nge gefunden"],"frontoffice: degree-programs-overview\u0004Keyword":["Schlagwort"]}}}
{"translation-revision-date":"2024-07-18 16:07+0300","generator":"WP-CLI\/2.9.0","source":"assets\/ts\/frontend.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de_DE","plural-forms":"nplurals=2; plural=(n != 1);"},"frontoffice: degree-programs-overview\u0004Type":["Typ"],"frontoffice: degree-programs-overview\u0004Start":["Studienbeginn"],"frontoffice: degree-programs-overview\u0004Location":["Studienort"],"frontoffice: degree-programs-overview\u0004NC":["NC"],"frontoffice: degree-programs-overview\u0004Language certificates":["Sprachnachweise"],"frontoffice: Search results\u0004No degree programs found":["Keine Studieng\u00e4nge gefunden"],"frontoffice: degree-programs-overview\u0004Keyword":["Schlagwort"]}}}
Binary file modified languages/fau-degree-program-output-de_DE.mo
Binary file not shown.
161 changes: 87 additions & 74 deletions languages/fau-degree-program-output-de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,35 @@ msgid ""
msgstr ""
"Project-Id-Version: FAU Degree Program Output 0.0.4\n"
"Report-Msgid-Bugs-To: https://github.com/RRZE-Webteam/FAU-Studium-Embed\n"
"POT-Creation-Date: 2024-05-20T16:55:19+00:00\n"
"PO-Revision-Date: 2024-05-29 14:51+0200\n"
"POT-Creation-Date: 2024-07-18T12:59:56+00:00\n"
"PO-Revision-Date: 2024-07-18 16:07+0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: de_DE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.3.2\n"
"X-Generator: Poedit 3.4.2\n"
"X-Domain: fau-degree-program-output\n"

#. Plugin Name of the plugin
#: fau-degree-program-output.php
msgid "FAU Degree Program Output"
msgstr "FAU Studiengangsanzeige"

#. Plugin URI of the plugin
#: fau-degree-program-output.php
msgid "https://github.com/RRZE-Webteam/FAU-Studium-Embed"
msgstr "https://github.com/RRZE-Webteam/FAU-Studium-Embed"

#. Description of the plugin
#: fau-degree-program-output.php
msgid "Fetch degree programs via the REST API and display them."
msgstr "Abrufen von Studiengängen über die REST-API und deren Anzeige."

#. Author of the plugin
#: fau-degree-program-output.php
msgid "Syde GmbH"
msgstr "Syde GmbH"

#. Author URI of the plugin
#: fau-degree-program-output.php
msgid "https://syde.com/"
msgstr "https://syde.com/"

Expand Down Expand Up @@ -301,12 +296,18 @@ msgid "Language skills"
msgstr "Sprachkenntnisse"

#: src/Infrastructure/Component/SingleDegreeProgram.php:268
msgid "Language skills for Faculty of Humanities, Social Sciences, and Theology only"
msgstr "Sprachkenntnisse nur für die Philosophische Fakultät und Fachbereich Theologie"
msgid ""
"Language skills for Faculty of Humanities, Social Sciences, and Theology only"
msgstr ""
"Sprachkenntnisse nur für die Philosophische Fakultät und Fachbereich "
"Theologie"

#: src/Infrastructure/Component/SingleDegreeProgram.php:272
msgid "Language certificates/German language skills for international applicants"
msgstr "Sprachnachweise/Deutschkenntnisse für internationale Bewerberinnen und Bewerber"
msgid ""
"Language certificates/German language skills for international applicants"
msgstr ""
"Sprachnachweise/Deutschkenntnisse für internationale Bewerberinnen und "
"Bewerber"

#: src/Infrastructure/Component/SingleDegreeProgram.php:276
msgid "Degree Program Fees"
Expand Down Expand Up @@ -416,24 +417,14 @@ msgstr "Zugangsvoraussetzung"

#: src/Infrastructure/Filter/FilterViewFactory.php:223
msgctxt "backoffice: Filter label"
msgid "Restricted (NC)"
msgstr "Eingeschränkt (NC)"
msgid "Restricted (NC and others)"
msgstr "Eingeschränkt (NC und weiteres)"

#: src/Infrastructure/Filter/FilterViewFactory.php:232
msgctxt "backoffice: Filter label"
msgid "Admission free"
msgstr "Zulassungsfrei"

#: src/Infrastructure/Filter/FilterViewFactory.php:241
msgctxt "backoffice: Filter label"
msgid "Admission free with restriction"
msgstr "Zulassungsfrei mit Einschränkung"

#: templates/search/search.php:47
msgctxt "frontoffice: degree programs search form"
msgid "Degree programs"
msgstr "Studiengänge"

#: templates/search/collection-table-header.php:69
#: templates/search/collection-table-header.php:103
#: templates/search/collection-table-header.php:135
Expand Down Expand Up @@ -477,31 +468,6 @@ msgctxt "frontoffice: degree programs search result list"
msgid "Language certificates"
msgstr "Sprachnachweise"

#: templates/search/item-preview.php:67
msgctxt "frontoffice: degree programs search result list"
msgid "Type"
msgstr "Typ"

#: templates/search/filter/search-filters.php:99
msgctxt "frontoffice: degree programs search form"
msgid "Switch to grid view"
msgstr "Zur Gitteransicht wechseln"

#: templates/search/filter/search-filters.php:110
msgctxt "frontoffice: degree programs search form"
msgid "Switch to list view"
msgstr "Zur Listenansicht wechseln"

#: templates/search/text-input-search.php:39
msgctxt "frontoffice: degree programs search form"
msgid "Please enter search term..."
msgstr "Bitte Suchbegriff eingeben…"

#: templates/search/text-input-search.php:47
msgctxt "frontoffice: degree programs search form"
msgid "Search"
msgstr "Suchen"

#: templates/search/filter/active-filters.php:57
msgctxt "backoffice: Degree program search filters"
msgid "Clear all filters"
Expand All @@ -522,6 +488,21 @@ msgctxt "frontoffice: degree programs search form"
msgid "Display mode"
msgstr "Anzeigemodus"

#: templates/search/filter/search-filters.php:99
msgctxt "frontoffice: degree programs search form"
msgid "Switch to grid view"
msgstr "Zur Gitteransicht wechseln"

#: templates/search/filter/search-filters.php:110
msgctxt "frontoffice: degree programs search form"
msgid "Switch to list view"
msgstr "Zur Listenansicht wechseln"

#: templates/search/item-preview.php:67
msgctxt "frontoffice: degree programs search result list"
msgid "Type"
msgstr "Typ"

#: templates/search/item-preview.php:111
msgctxt "frontoffice: degree programs search result list"
msgid "German language skills for international students"
Expand All @@ -532,10 +513,29 @@ msgctxt "backoffice: Search results"
msgid "No degree programs found"
msgstr "Keine Studiengänge gefunden."

#: templates/search/search.php:47
msgctxt "frontoffice: degree programs search form"
msgid "Degree programs"
msgstr "Studiengänge"

#: templates/search/search.php:101
msgctxt "frontoffice: degree programs search form"
msgid "The degree program data is being processed. Please try again in a few minutes."
msgstr "Die Studiengangsdaten werden gerade verarbeitet. Bitte versuche es in ein paar Minuten erneut."
msgid ""
"The degree program data is being processed. Please try again in a few "
"minutes."
msgstr ""
"Die Studiengangsdaten werden gerade verarbeitet. Bitte versuche es in ein "
"paar Minuten erneut."

#: templates/search/text-input-search.php:39
msgctxt "frontoffice: degree programs search form"
msgid "Please enter search term..."
msgstr "Bitte Suchbegriff eingeben…"

#: templates/search/text-input-search.php:47
msgctxt "frontoffice: degree programs search form"
msgid "Search"
msgstr "Suchen"

#: templates/single-degree-program-short.php:37
#: templates/single-degree-program/details.php:25
Expand All @@ -557,7 +557,9 @@ msgstr "Mehr lesen"
#: templates/single-degree-program/accordion.php:75
msgctxt "frontoffice: single view"
msgid "Degree program combinations & limited degree program combinations"
msgstr "Mögliche Studiengangskombinationen und eingeschränkt mögliche Studiengangskombinationen"
msgstr ""
"Mögliche Studiengangskombinationen und eingeschränkt mögliche "
"Studiengangskombinationen"

#: templates/single-degree-program/accordion.php:85
msgctxt "frontoffice: single view"
Expand Down Expand Up @@ -707,34 +709,21 @@ msgstr "Benötigst du Hilfe oder weitere Informationen?"

#: templates/single-degree-program/more-information.php:34
msgctxt "frontoffice: single view"
msgid "Our Student Advice and Career Service (IBZ) is the central point of contact for all questions about studying and starting a degree programme. Our Student Service Centres and subject advisors support you in planning your studies."
msgstr "Unsere Studienberatung ist die zentrale Anlaufstelle für alle Fragen rund ums Studium und den Studieneinstieg. Unsere Studien-Service-Center und Studienfachberaterinnen unterstützen dich bei der Planung deines Studiums."
msgid ""
"Our Student Advice and Career Service (IBZ) is the central point of contact "
"for all questions about studying and starting a degree programme. Our "
"Student Service Centres and subject advisors support you in planning your "
"studies."
msgstr ""
"Unsere Studienberatung ist die zentrale Anlaufstelle für alle Fragen rund "
"ums Studium und den Studieneinstieg. Unsere Studien-Service-Center und "
"Studienfachberaterinnen unterstützen dich bei der Planung deines Studiums."

#: templates/single-degree-program/more-information.php:53
msgctxt "frontoffice: single view"
msgid "Specific Student Advice"
msgstr "Spezifische Studienberatung"

#: resources/ts/blocks/degree-program/block.json
msgctxt "block title"
msgid "Degree program"
msgstr "Studiengang"

#: resources/ts/blocks/degree-program/block.json
msgctxt "block keyword"
msgid "degree program"
msgstr "studiengang"

#: resources/ts/blocks/degree-program/block.json
msgctxt "block keyword"
msgid "course of studies"
msgstr "Studiengang"

#: resources/ts/blocks/degree-program/block.json
msgctxt "block keyword"
msgid "study"
msgstr "Studium"

#: assets/ts/frontend.js:1
msgctxt "frontoffice: degree-programs-overview"
msgid "Type"
Expand Down Expand Up @@ -779,3 +768,27 @@ msgstr "Studiengang wählen"
msgctxt "backend: block editor"
msgid "Could not load suggestion list"
msgstr "Vorschlagsliste konnte nicht geladen werden"

#: resources/ts/blocks/degree-program/block.json
msgctxt "block title"
msgid "Degree program"
msgstr "Studiengang"

#: resources/ts/blocks/degree-program/block.json
msgctxt "block keyword"
msgid "degree program"
msgstr "studiengang"

#: resources/ts/blocks/degree-program/block.json
msgctxt "block keyword"
msgid "course of studies"
msgstr "Studiengang"

#: resources/ts/blocks/degree-program/block.json
msgctxt "block keyword"
msgid "study"
msgstr "Studium"

#~ msgctxt "backoffice: Filter label"
#~ msgid "Admission free with restriction"
#~ msgstr "Zulassungsfrei mit Einschränkung"
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"translation-revision-date":"2024-05-29 14:32+0200","generator":"WP-CLI\/2.10.0","source":"assets\/ts\/gutenberg.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de_DE","plural-forms":"nplurals=2; plural=(n != 1);"},"backoffice: block editor\u0004Select degree program":["Studiengang w\u00e4hlen"],"backend: block editor\u0004Could not load suggestion list":["Vorschlagsliste konnte nicht geladen werden"]}}}
{"translation-revision-date":"2024-07-18 16:06+0300","generator":"WP-CLI\/2.9.0","source":"assets\/ts\/gutenberg.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de_DE","plural-forms":"nplurals=2; plural=(n != 1);"},"backoffice: block editor\u0004Select degree program":["Studiengang w\u00e4hlen"],"backend: block editor\u0004Could not load suggestion list":["Vorschlagsliste konnte nicht geladen werden"]}}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"translation-revision-date":"2024-05-29 14:32+0200","generator":"WP-CLI\/2.10.0","source":"assets\/ts\/frontend.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de_DE","plural-forms":"nplurals=2; plural=(n != 1);"},"frontoffice: degree-programs-overview\u0004Type":["Typ"],"frontoffice: degree-programs-overview\u0004Start":["Studienbeginn"],"frontoffice: degree-programs-overview\u0004Location":["Studienort"],"frontoffice: degree-programs-overview\u0004NC":["NC"],"frontoffice: degree-programs-overview\u0004Language certificates":["Sprachnachweise"],"frontoffice: Search results\u0004No degree programs found":["Keine Studieng\u00e4nge gefunden"],"frontoffice: degree-programs-overview\u0004Keyword":["Schlagwort"]}}}
{"translation-revision-date":"2024-07-18 16:06+0300","generator":"WP-CLI\/2.9.0","source":"assets\/ts\/frontend.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de_DE","plural-forms":"nplurals=2; plural=(n != 1);"},"frontoffice: degree-programs-overview\u0004Type":["Typ"],"frontoffice: degree-programs-overview\u0004Start":["Studienbeginn"],"frontoffice: degree-programs-overview\u0004Location":["Studienort"],"frontoffice: degree-programs-overview\u0004NC":["NC"],"frontoffice: degree-programs-overview\u0004Language certificates":["Sprachnachweise"],"frontoffice: Search results\u0004No degree programs found":["Keine Studieng\u00e4nge gefunden"],"frontoffice: degree-programs-overview\u0004Keyword":["Schlagwort"]}}}
Binary file modified languages/fau-degree-program-output-de_DE_formal.mo
Binary file not shown.
Loading

0 comments on commit 00ca233

Please sign in to comment.