Skip to content

Commit

Permalink
Merge pull request #9 from gbv/testing
Browse files Browse the repository at this point in the history
Editor forms modification
  • Loading branch information
xaher authored Apr 17, 2024
2 parents a8a289d + 5980c72 commit 3f6087b
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 11 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/META-INF/resources/config/navigation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
<label xml:lang="de">In Forschungsbereichen</label>
<label xml:lang="en">in research areas</label>
</item>
<item href="/content/browse/research_projects.xml" type="intern" replaceMenu="false" constrainPopUp="false">
<label xml:lang="de">In Forschungsprojekten</label>
<label xml:lang="en">in research projects</label>
</item>
<item href="/content/browse/rvk.xml" type="intern" replaceMenu="false" constrainPopUp="false">
<label xml:lang="de">Nach Sachgebiet</label>
<label xml:lang="en">by subject area</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MyCoReWebPage>

<MyCoReWebPage>

<section xml:lang="de">
<head>
<meta name="title" content="Suche in den Forschungsprojekten"/>
<meta name="description" content="Suche nach Dokumenten in den einzelen Forschungsprojekten"/>
</head>
</section>
<section xml:lang="en">
<head>
<meta name="title" content="Search in research projects"/>
<meta name="description" content="Search for document in single research projects"/>
</head>
</section>

<section i18n="browse.research_projects.title" xml:lang="all">

<div class="row">
<div class="col-md-8" lang="de">
<h3><i18n key="browse.research_projects.title" /></h3>
<classificationbrowser classification="research_projects"
objecttype="mods"
restriction="+category.top:&quot;state:published&quot;"
field="category.top"
countresults="true"
addclassid="true"
emptyleaves="true"
style="bootstrap"
parameters="sort=mods.dateIssued+desc"
addParameter="XSL.template=template_mir"
/>
</div>
</div>

</section>

</MyCoReWebPage>
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<xed:remove ref="institutes.repeat" />
<xed:include ref="project.research_areas" after="project.ddc" />
<xed:include ref="project.courses" after="project.research_areas" />
<xed:include ref="project.research_areas" after="project.research_project" />
<xed:include ref="project.peerReviewed" after="project.courses" />
<xed:include ref="project.oa_status" after="rights" />
</xed:modify>
Expand All @@ -18,6 +19,7 @@
<xed:include ref="title.original" />
<xed:include ref="project.author.repeated.required" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:if test="$host='standalone'">
<xed:include ref="year.issued" />
<xed:include ref="extent" />
Expand All @@ -39,6 +41,7 @@
<xed:include ref="title.original" />
<xed:include ref="project.author.repeated.required" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:if test="$host='standalone'">
<xed:include ref="year.issued" />
<xed:include ref="extent" />
Expand All @@ -60,6 +63,7 @@
<xed:include ref="title.original" />
<xed:include ref="project.author.repeated.required" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:if test="$host='standalone'">
<xed:include ref="year.issued" />
<xed:include ref="extent" />
Expand Down Expand Up @@ -88,6 +92,7 @@
</xed:if>
<xed:include ref="project.author.repeated.required" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:if test="$host='standalone'">
<xed:include ref="year.issued" />
</xed:if>
Expand Down Expand Up @@ -131,6 +136,7 @@
<xed:include ref="year.issued" />
</xed:if>
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:include ref="language" />
<xed:include ref="project.rvk" />
<xed:include ref="subject.simple" />
Expand All @@ -143,6 +149,7 @@
<xed:include ref="title.original" />
<xed:include ref="project.author.repeated.required" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:include ref="year.issued" />
<xed:include ref="language" />
<xed:include ref="identifier.managed" />
Expand All @@ -159,6 +166,7 @@
<xed:include ref="title.original" />
<xed:include ref="project.author.repeated.required" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:if test="$host='standalone'">
<xed:include ref="year.issued" />
<xed:include ref="extent" />
Expand Down Expand Up @@ -215,6 +223,7 @@
<xed:include ref="embargo.datetimepicker" />
<xed:include ref="rights" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:include ref="comment.complex" />
</xed:template>

Expand All @@ -239,6 +248,7 @@
<xed:include ref="embargo.datetimepicker" />
<xed:include ref="rights" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:include ref="comment.complex" />
</xed:template>

Expand Down Expand Up @@ -332,6 +342,7 @@
<xed:include ref="project.peerReviewed" />
<xed:include ref="rights" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:include ref="comment.complex" />
</xed:template>

Expand All @@ -352,6 +363,7 @@
<xed:include ref="title.original" />
<xed:include ref="project.author.repeated.required" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:include ref="year.issued" />
<xed:include ref="place" />
<xed:include ref="publisher" />
Expand All @@ -376,6 +388,7 @@
<xed:include ref="title.original" />
<xed:include ref="project.author.repeated.required" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:include ref="editor.repeated" />
<xed:include ref="host.volume" />
<xed:include ref="year.issued" />
Expand All @@ -395,6 +408,7 @@
<xed:include ref="title.original" />
<xed:include ref="project.author.repeated.required" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:include ref="editor.repeated" />
<xed:include ref="host.volume" />
<xed:include ref="year.issued" />
Expand All @@ -412,6 +426,7 @@
<xed:include ref="title.original" />
<xed:include ref="project.author.repeated.required" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:include ref="editor.repeated" />
<xed:include ref="host.volume" />
<xed:include ref="year.issued" />
Expand Down Expand Up @@ -447,6 +462,7 @@
<xed:include ref="rights" />
<xed:include ref="embargo.datetimepicker" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:include ref="comment.complex" />
</xed:template>

Expand All @@ -473,22 +489,11 @@
<xed:include ref="coreferent.repeated" />
<xed:include ref="year.issued" />
<xed:include ref="project.courses" />
<xed:include ref="date.submitted.datetimepicker" />
<xed:include ref="date.accepted.datetimepicker" />
<xed:include ref="shelfmark" />
<xed:include ref="creator.place.college" />
<xed:include ref="creator.college" />
<xed:include ref="publisher" />
<xed:include ref="extent" />
<xed:include ref="type.of.resource.repeated" />
<xed:include ref="language" />
<xed:include ref="identifier.isbn" />
<xed:include ref="project.rvk" />
<xed:include ref="subject.simple" />
<xed:include ref="abstract.repeated" />
<xed:include ref="rights.reserved" />
<xed:include ref="embargo.datetimepicker" />
<xed:include ref="project.research_areas" />
<xed:include ref="comment.complex" />
</xed:template>

Expand All @@ -515,6 +520,7 @@
<xed:include ref="rights.reserved" />
<xed:include ref="embargo.datetimepicker" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:include ref="comment.complex" />
</xed:template>

Expand Down Expand Up @@ -568,6 +574,7 @@
<xed:include ref="cartographics" />
<xed:include ref="related.item.link" />
<xed:include ref="project.research_areas" />
<xed:include ref="project.research_projects" />
<xed:include ref="openAIRE" />
<xed:include ref="comment.complex" />
</xed:template>
Expand Down Expand Up @@ -882,6 +889,25 @@
</xed:bind>
</xed:template>

<xed:template id="project.research_projects">
<xed:bind xpath="mods:classification[@authorityURI='https://publikationsserver.phtg.ch/classifications/research_projects'][@displayLabel='research_projects']/@valueURIxEditor">
<div class="form-group row {$xed-validation-marker}">
<label class="col-md-3 col-form-label text-right">
<xed:output i18n="project.form.label.research_projects" />
</label>
<div class="col-md-6">
<select class="form-control form-control-inline">
<option value="">
<xed:output i18n="mir.select.optional" />
</option>
<xed:include uri="xslStyle:items2options:classification:editor:-1:children:research_projects" />
</select>
</div>
<mir:help-pmud help-text="{i18n:project.help.research_projects}" pmud="false" />
</div>
</xed:bind>
</xed:template>

<xed:template id="sdnb.repeat">
<xed:repeat xpath="mods:classification[@authority='sdnb'][@displayLabel='sdnb']" min="1" max="10" method="build">
<div class="form-group row">
Expand Down
20 changes: 20 additions & 0 deletions src/main/resources/classifications/research_projects.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<mycoreclass xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="MCRClassification.xsd" ID="research_projects">
<label xml:lang="de" text="Forschungsprojekte" description="Liste der Forschungsprojekte" />
<label xml:lang="en" text="research projects" description="List of research projects" />
<label xml:lang="x-uri"
text="https://www.publikationsserver.phtg.ch/classifications/research_projects" />
<categories>
<category ID="DiaMaNt">
<label xml:lang="de" text="Lerngelegenheiten für Lehrstudierende im sozialen Netzwerk: Praxisfeld aus allgemein- und mathematikdidaktischer Perspektive (DiaMaNt)" />
</category>
<category ID="Bildungsgerechtigkeitgeschichte">
<label xml:lang="de" text="Geschichte der Bildungsgerechtigkeit" />
</category>
<category ID="EmTiK">
<label xml:lang="de" text="Erwerbsunterstützung mündlicher Textfähigkeiten im Kindergarten (EmTiK)" />
</category>
</categories>
</mycoreclass>
6 changes: 6 additions & 0 deletions src/main/resources/config/reposis_phtg/messages_de.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
browse.research_areas.title = Forschungsbereiche
browse.research_projects.title = Forschungsprojekte
browse.rvk.title = Regensburger Verbundklassifikation (RVK)
component.mods.metaData.dictionary.courses = Studiengang
component.mods.metaData.dictionary.identifier.intern = Bestand Campus-Bibliothek
component.mods.metaData.dictionary.oa = OA-Status
component.mods.metaData.dictionary.peer_review = Peer-Reviewed
component.mods.metaData.dictionary.publisher.creation = Name der Institution
component.mods.metaData.dictionary.research_areas = Forschungsbereich
component.mods.metaData.dictionary.research_projects = Forschungsprojekte
component.mods.metaData.dictionary.rvk = RVK
editor.search.mir.rvk = RVK
editor.search.mir.rvk.tooltip = Auf der RVK basierende Sachgruppenklassifikation.
editor.search.project.research_areas = Forschungsbereich
editor.search.project.research_projects = Forschungsprojekt
editor.search.project.research_areas.tooltip = Aus welchem Forschungsbereich stammt die Ver\u00F6ffentlichung?
editor.search.project.research_projects.tooltip = Welchem Forschungsprojekt ist die Ver\u00F6ffentlichung zugeordnet?
mir.college = Name der Institution:
mir.collegeplace = Entstehungsort:
mir.derivate.no_access.ipAddressRange = Auf die Datei kann im Campusnetz der PHTG oder f\u00FCr Hochschulangeh\u00F6rige via VPN zugegriffen werden.
Expand Down Expand Up @@ -52,6 +56,7 @@ project.form.label.ddc = DDC:
project.form.label.employee_abbreviation = Mitarbeitenden-K\u00FCrzel:
project.form.label.oa_status = OA-Status
project.form.label.research_areas = Forschungsbereich:
project.form.label.research_projects = Forschungsprojekt:
project.form.label.rvk = RVK
project.form.notSpecified = Keine Angaben
project.form.peerReviewed.label = Peer-Reviewed:
Expand All @@ -63,6 +68,7 @@ project.help.ddc = Die Einordnung des Dokumentes
project.help.employee_abbreviation = Bitte geben Sie Ihre Mitarbeitenden-K\u00FCrzel an.
project.help.oa_status = Bitten geben Sie den OA-Status an.
project.help.research_areas = Die Zuordnung des Dokumentes zu den einzelnen Forschungsbereiche.
project.help.research_projects = Die Zuordnung des Dokumentes zu enem Forschungsprojekt.
project.help.rvk = Die Einordnung des Dokumentes in die Regensburger Verbundklassifikation (RVK).
project.mir.series.title = Titel der Reihe:
project.validation.employee_abbreviation = Bitte geben Sie ein korrektes Mitarbeitenden-K\u00FCrzel an. Das Mitarbeitenden-K\u00FCrzel ist exakt drei Zeichen lang, Umlaute sind zul\u00E4ssig, Sonderzeichen nicht.
Expand Down

0 comments on commit 3f6087b

Please sign in to comment.