Pfingstfrosch
88783ffede
on detail view show stored annotation if available
2020-06-04 21:54:17 +02:00
Pfingstfrosch
37cc1ae72d
add stubs, routes for add_annotation action
2020-06-04 21:53:32 +02:00
Pfingstfrosch
cfcbf5acdb
Ad requirement 4
...
I have no idea how this requirement shall be implemented at the end, but at first step, the tiss_crawler.rb lib checks if the search_term is an empty string and returns an error msg if found
otherwise it returns the result, but appended to 'content' key
2020-05-31 15:48:17 +02:00
Pfingstfrosch
204597b39d
fix rubycop issue:
...
- don't introduce global variable
- don't prefix getter with get_
- single quotes instead of doubles for hash usage
2020-05-31 13:41:50 +02:00
Pfingstfrosch
a3f7066cc1
Merge branches 'projects_search' and 'user_based_+_sortable_favs'
...
# Conflicts:
# app/assets/stylesheets/favorites.scss
2020-05-29 15:48:58 +02:00
a6a866d357
Hotfix: Add params parsing
...
When favoriting from `show_basic` for courses, the parameters `number`
and `semester` are not passed to the underlying function. Instead, the
`detail_url` is passed, which has to be parsed to get the `number` and
`semester`.
2020-05-29 10:57:18 +02:00
cbcc7c3d25
Hotfix: parse oid when only one given
...
The function `show_detail` for courses was expecting an array of
lecturer oids. When it got only one and therefore not an array but an
int, the line `@lecturers_oid.each` would fail to parse the variable
because it is not an array.
2020-05-29 10:43:34 +02:00
ae217a60ea
Fix comment errors
...
Should really look at it before doing copypasta...
2020-05-27 17:48:09 +02:00
bba13f249c
Implement show_basic, show_detail and add_to_fav methods
2020-05-27 17:18:23 +02:00
19eb7a724f
Add search context for projects
2020-05-27 17:09:25 +02:00
d84297bde7
Implement search, show_basic, show_detail and add_to_fav for theses
2020-05-25 16:14:41 +02:00
311e3d9dcb
Finish favorite courses view
2020-05-25 14:57:15 +02:00
dabda63cbc
Remove URL parsing
...
The fields `courseNr` and `semesterCode` are already parsed by the
controller and do not have to be parsed again when calling the
add_to_fav function.
2020-05-23 15:44:39 +02:00
b8cc0d5b61
Implement favoriting of courses
2020-05-21 13:31:54 +02:00
Pfingstfrosch
72be2d07f3
store also the user_id when adding to favorite
2020-05-16 12:22:09 +02:00
Pfingstfrosch
9dcb2994e1
create a hash of favorite details and reuse it;
...
move redirect_back out of conditional scope
2020-05-16 11:58:25 +02:00
Pfingstfrosch
5bb0bae858
fix of inheritance error -> uninitialized constant Crawlers::ApplicationController
2020-05-16 11:45:05 +02:00
Pfingstfrosch
1970a65bf8
fix of inheritance error -> uninitialized constant TissCrawlerController
2020-05-16 11:44:21 +02:00
Pfingstfrosch
d5ec02201d
instead of redirecting just display an success or error message after pressing add button
2020-05-12 20:01:30 +02:00
Pfingstfrosch
d34a3d583c
refactored crawler controllers and bundled them in crawlers namespace
2020-05-12 19:49:18 +02:00
4f45c768ec
Fix mess made by @Pfingstfrosch
2020-04-24 23:02:45 +02:00
Marco Zeisler
670bac90d2
make me work
2020-04-24 17:02:08 +02:00
Marco Zeisler
717abd8796
make me work
2020-04-24 16:56:22 +02:00