Skip to content
Snippets Groups Projects
Commit 705f259f authored by srosse's avatar srosse
Browse files

Merge remote-tracking branch 'origin/OpenOLAT_14.2'

parents ddbb6088 c1c2654e
No related branches found
No related tags found
No related merge requests found
...@@ -580,7 +580,9 @@ public class LectureBlockDAO { ...@@ -580,7 +580,9 @@ public class LectureBlockDAO {
if(StringHelper.containsNonWhitespace(searchParams.getSearchString())) { if(StringHelper.containsNonWhitespace(searchParams.getSearchString())) {
sb.and() sb.and()
.append(" (entry.externalRef=:searchString or ") .append("(")
.likeFuzzy("entry.externalRef", "fuzzySearchString", dbInstance.getDbVendor())
.append(" or ")
.likeFuzzy("entry.displayname", "fuzzySearchString", dbInstance.getDbVendor()) .likeFuzzy("entry.displayname", "fuzzySearchString", dbInstance.getDbVendor())
.append(" or ") .append(" or ")
.likeFuzzy("block.title", "fuzzySearchString", dbInstance.getDbVendor()) .likeFuzzy("block.title", "fuzzySearchString", dbInstance.getDbVendor())
...@@ -648,9 +650,7 @@ public class LectureBlockDAO { ...@@ -648,9 +650,7 @@ public class LectureBlockDAO {
} }
if(StringHelper.containsNonWhitespace(searchParams.getSearchString())) { if(StringHelper.containsNonWhitespace(searchParams.getSearchString())) {
String searchString = searchParams.getSearchString(); String fuzzySearchString = PersistenceHelper.makeFuzzyQueryString(searchParams.getSearchString());
query.setParameter("searchString", searchString);
String fuzzySearchString = PersistenceHelper.makeFuzzyQueryString(searchString);
query.setParameter("fuzzySearchString", fuzzySearchString); query.setParameter("fuzzySearchString", fuzzySearchString);
} }
if(searchParams.getStartDate() != null) { if(searchParams.getStartDate() != null) {
......
...@@ -63,7 +63,8 @@ public class LecturesMainController extends MainLayoutBasicController implements ...@@ -63,7 +63,8 @@ public class LecturesMainController extends MainLayoutBasicController implements
listenTo(columnLayoutCtr); // auto dispose later listenTo(columnLayoutCtr); // auto dispose later
putInitialPanel(columnLayoutCtr.getInitialComponent()); putInitialPanel(columnLayoutCtr.getInitialComponent());
content.rootController("[ROOT]", lectureCoachingCtrl); String title = translate("coach.lectures");
content.rootController(title, lectureCoachingCtrl);
} }
@Override @Override
......
...@@ -52,7 +52,7 @@ public class TeacherToolOverviewController extends AbstractTeacherOverviewContro ...@@ -52,7 +52,7 @@ public class TeacherToolOverviewController extends AbstractTeacherOverviewContro
private LectureService lectureService; private LectureService lectureService;
public TeacherToolOverviewController(UserRequest ureq, WindowControl wControl, LecturesSecurityCallback secCallback) { public TeacherToolOverviewController(UserRequest ureq, WindowControl wControl, LecturesSecurityCallback secCallback) {
super(ureq, wControl, false, "Lectures::UserTools", true, false); super(ureq, wControl, secCallback.viewAs() == LectureRoles.lecturemanager, "Lectures::UserTools", true, false);
this.secCallback = secCallback; this.secCallback = secCallback;
initTables(ureq, false, false); initTables(ureq, false, false);
......
...@@ -380,7 +380,7 @@ search.form.status.closed=$\:closed ...@@ -380,7 +380,7 @@ search.form.status.closed=$\:closed
search.form.status.open=$\:open search.form.status.open=$\:open
search.form.status.reopen=$\:reopen search.form.status.reopen=$\:reopen
search.form.string=Suche search.form.string=Suche
search.form.string.hint=In der Suche k\u00F6nnen Sie nach Titeln eines Lektionenblockes oder nach der Externen Referenz suchen. Bei der Suche mit der Externen Referenz werden nur exakte Treffer angezeigt. search.form.string.hint=In der Suche k\u00F6nnen Sie nach Titeln eines Lektionenblockes oder nach dem Kennzeichen suchen. Bei der Suche mit dem Kennzeichen werden nur exakte Treffer angezeigt.
search.form.till=bis search.form.till=bis
search.form.type=Art search.form.type=Art
search.participants=Suche nach Teilnehmern search.participants=Suche nach Teilnehmern
......
...@@ -93,4 +93,8 @@ ...@@ -93,4 +93,8 @@
.o_rollcall_portrait>div { .o_rollcall_portrait>div {
margin: 0 auto 10px auto; margin: 0 auto 10px auto;
width: 100px; width: 100px;
} }
\ No newline at end of file
.o_lectures div#o_main_toolbar.o_toolbar {
margin-top: 0px;
}
source diff could not be displayed: it is too large. Options to address this: view the blob.
source diff could not be displayed: it is too large. Options to address this: view the blob.
source diff could not be displayed: it is too large. Options to address this: view the blob.
source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment