- search tsyle: doi url in green color
- datasets without a DOI ar getting the landingpage /dataset/{id}
This commit is contained in:
parent
9138090e14
commit
1a387965c6
|
@ -26,7 +26,40 @@ class PagesController extends Controller
|
||||||
* @param int $id
|
* @param int $id
|
||||||
* @return \Illuminate\Http\Response
|
* @return \Illuminate\Http\Response
|
||||||
*/
|
*/
|
||||||
public function show($dataset_prefix, $id): View
|
public function showDoi($dataset_prefix, $id): View
|
||||||
|
{
|
||||||
|
//$dataset = Dataset::findOrFail($id);
|
||||||
|
$dataset = Dataset::where('publish_id', '=', $id)->firstOrFail();
|
||||||
|
$dataset->load('titles');
|
||||||
|
$dataset->load('abstracts');
|
||||||
|
|
||||||
|
// $authors = $dataset->persons()
|
||||||
|
// ->wherePivot('role', 'author')
|
||||||
|
// ->orderBy('link_documents_persons.sort_order', 'desc')
|
||||||
|
// ->get();
|
||||||
|
|
||||||
|
// $contributors = $dataset->persons()
|
||||||
|
// ->wherePivot('role', 'contributor')
|
||||||
|
// ->orderBy('link_documents_persons.sort_order', 'desc')
|
||||||
|
// ->get();
|
||||||
|
|
||||||
|
// $submitters = $dataset->persons()
|
||||||
|
// ->wherePivot('role', 'submitter')
|
||||||
|
// ->orderBy('link_documents_persons.sort_order', 'desc')
|
||||||
|
// ->get();
|
||||||
|
|
||||||
|
// $authors = $dataset->persons()
|
||||||
|
// ->wherePivot('role', 'author')
|
||||||
|
// ->orderBy('link_documents_persons.sort_order', 'desc')
|
||||||
|
// ->get();
|
||||||
|
|
||||||
|
// return view('frontend.dataset.show', compact('dataset', 'authors', 'contributors', 'submitters'));
|
||||||
|
|
||||||
|
return view('frontend.dataset.show', compact('dataset'));
|
||||||
|
//return view('frontend.dataset.show', compact('id'));//wenn über solr
|
||||||
|
}
|
||||||
|
|
||||||
|
public function show($id): View
|
||||||
{
|
{
|
||||||
//$dataset = Dataset::findOrFail($id);
|
//$dataset = Dataset::findOrFail($id);
|
||||||
$dataset = Dataset::where('publish_id', '=', $id)->firstOrFail();
|
$dataset = Dataset::where('publish_id', '=', $id)->firstOrFail();
|
||||||
|
|
3
public/css/search_style.css
vendored
3
public/css/search_style.css
vendored
|
@ -41,7 +41,8 @@ section.search {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
} */
|
} */
|
||||||
.record-elem p a {
|
.record-elem p a {
|
||||||
color: #000;
|
color: #3ad29f;;
|
||||||
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
/* .record-elem h4 a {
|
/* .record-elem h4 a {
|
||||||
color: #000;
|
color: #000;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -34,7 +34,7 @@
|
||||||
<!-- <span>Author: {{ document.identifier.join(', ') }}</span> -->
|
<!-- <span>Author: {{ document.identifier.join(', ') }}</span> -->
|
||||||
<!-- <span v-for="(author,index) in document.author" :key="index">{{ author }}; </span> -->
|
<!-- <span v-for="(author,index) in document.author" :key="index">{{ author }}; </span> -->
|
||||||
<!-- <span>'https://doi.org/' + {{ document.identifier[0] }}</span> -->
|
<!-- <span>'https://doi.org/' + {{ document.identifier[0] }}</span> -->
|
||||||
<a target="_blank" v-bind:href="'https://doi.org/' + document.identifier[0]" class="ng-binding">
|
<a target="_blank" v-bind:href="'https://doi.org/' + document.identifier[0]">
|
||||||
{{ 'https://doi.org/' + document.identifier[0] }}
|
{{ 'https://doi.org/' + document.identifier[0] }}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -25,7 +25,7 @@ Route::group([
|
||||||
|
|
||||||
|
|
||||||
Route::get('/{dataset_prefix}/tethys.{id}', [
|
Route::get('/{dataset_prefix}/tethys.{id}', [
|
||||||
'as' => 'dataset.show', 'uses' => 'Frontend\PagesController@show',
|
'as' => 'dataset.show', 'uses' => 'Frontend\PagesController@showDoi',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Route::get('/', function () {
|
Route::get('/', function () {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user