feat(profile,publications): integrate working Google Scholar import flow and unified faculty profile system
This commit is contained in:
@@ -73,8 +73,14 @@ class FacultyController extends Controller
|
||||
|
||||
public function viewPublicationsResponses()
|
||||
{
|
||||
$departments = Department::all();
|
||||
return view('pages.publications.index', compact('departments'));
|
||||
$user = auth()->user();
|
||||
|
||||
\Log::info('FacultyController: scholar_url = ' . ($user->scholar_url ?? 'NULL'));
|
||||
|
||||
return view('pages.publications.index', [
|
||||
'scholarUrl' => $user->scholar_url,
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
public function BooksPublishedForm()
|
||||
@@ -536,7 +542,7 @@ class FacultyController extends Controller
|
||||
'offered_by' => 'required|string',
|
||||
'start_date' => 'required|date',
|
||||
'end_date' => 'required|date',
|
||||
'num_days' => 'required|integer',
|
||||
'num_days' => 'required|integer',
|
||||
'proof' => 'nullable|mimes:jpg,jpeg,png,pdf,doc,docx,zip',
|
||||
]);
|
||||
|
||||
@@ -615,7 +621,7 @@ class FacultyController extends Controller
|
||||
}
|
||||
// dd($proofFilePath);
|
||||
|
||||
|
||||
|
||||
// Save the response to the database
|
||||
Patent::create([
|
||||
'department_id' => auth()->user()->department->id,
|
||||
|
||||
Reference in New Issue
Block a user