- change solr mapping of attribut 'id' do database attribute 'publish_id'

- composer updates
- PagesController.php: query publish_id
This commit is contained in:
Arno Kaimbacher 2020-05-25 13:36:13 +02:00
parent 3214ea91b0
commit 1dbec01782
5 changed files with 33 additions and 22 deletions

View File

@ -28,7 +28,8 @@ class PagesController extends Controller
*/ */
public function show($id): View public function show($id): View
{ {
$dataset = Dataset::findOrFail($id); //$dataset = Dataset::findOrFail($id);
$dataset = Dataset::where('publish_id', '=', $id)->firstOrFail();
$dataset->load('titles'); $dataset->load('titles');
$dataset->load('abstracts'); $dataset->load('abstracts');

46
composer.lock generated
View File

@ -1351,20 +1351,20 @@
}, },
{ {
"name": "monolog/monolog", "name": "monolog/monolog",
"version": "2.0.2", "version": "2.1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Seldaek/monolog.git", "url": "https://github.com/Seldaek/monolog.git",
"reference": "c861fcba2ca29404dc9e617eedd9eff4616986b8" "reference": "38914429aac460e8e4616c8cb486ecb40ec90bb1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/c861fcba2ca29404dc9e617eedd9eff4616986b8", "url": "https://api.github.com/repos/Seldaek/monolog/zipball/38914429aac460e8e4616c8cb486ecb40ec90bb1",
"reference": "c861fcba2ca29404dc9e617eedd9eff4616986b8", "reference": "38914429aac460e8e4616c8cb486ecb40ec90bb1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.2", "php": ">=7.2",
"psr/log": "^1.0.1" "psr/log": "^1.0.1"
}, },
"provide": { "provide": {
@ -1375,11 +1375,11 @@
"doctrine/couchdb": "~1.0@dev", "doctrine/couchdb": "~1.0@dev",
"elasticsearch/elasticsearch": "^6.0", "elasticsearch/elasticsearch": "^6.0",
"graylog2/gelf-php": "^1.4.2", "graylog2/gelf-php": "^1.4.2",
"jakub-onderka/php-parallel-lint": "^0.9",
"php-amqplib/php-amqplib": "~2.4", "php-amqplib/php-amqplib": "~2.4",
"php-console/php-console": "^3.1.3", "php-console/php-console": "^3.1.3",
"php-parallel-lint/php-parallel-lint": "^1.0",
"phpspec/prophecy": "^1.6.1", "phpspec/prophecy": "^1.6.1",
"phpunit/phpunit": "^8.3", "phpunit/phpunit": "^8.5",
"predis/predis": "^1.1", "predis/predis": "^1.1",
"rollbar/rollbar": "^1.3", "rollbar/rollbar": "^1.3",
"ruflin/elastica": ">=0.90 <3.0", "ruflin/elastica": ">=0.90 <3.0",
@ -1428,7 +1428,17 @@
"logging", "logging",
"psr-3" "psr-3"
], ],
"time": "2019-12-20T14:22:59+00:00" "funding": [
{
"url": "https://github.com/Seldaek",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/monolog/monolog",
"type": "tidelift"
}
],
"time": "2020-05-22T08:12:19+00:00"
}, },
{ {
"name": "nesbot/carbon", "name": "nesbot/carbon",
@ -1567,16 +1577,16 @@
}, },
{ {
"name": "opis/closure", "name": "opis/closure",
"version": "3.5.1", "version": "3.5.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/opis/closure.git", "url": "https://github.com/opis/closure.git",
"reference": "93ebc5712cdad8d5f489b500c59d122df2e53969" "reference": "2e3299cea6f485ca64d19c540f46d7896c512ace"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/opis/closure/zipball/93ebc5712cdad8d5f489b500c59d122df2e53969", "url": "https://api.github.com/repos/opis/closure/zipball/2e3299cea6f485ca64d19c540f46d7896c512ace",
"reference": "93ebc5712cdad8d5f489b500c59d122df2e53969", "reference": "2e3299cea6f485ca64d19c540f46d7896c512ace",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1624,7 +1634,7 @@
"serialization", "serialization",
"serialize" "serialize"
], ],
"time": "2019-11-29T22:36:02+00:00" "time": "2020-05-21T20:09:36+00:00"
}, },
{ {
"name": "paragonie/random_compat", "name": "paragonie/random_compat",
@ -3836,16 +3846,16 @@
}, },
{ {
"name": "vlucas/phpdotenv", "name": "vlucas/phpdotenv",
"version": "v3.6.4", "version": "v3.6.5",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/vlucas/phpdotenv.git", "url": "https://github.com/vlucas/phpdotenv.git",
"reference": "10d3f853fdf1f3a6b3c7ea0c4620d2f699713db5" "reference": "8b64814b356b96a90d2bc942b152c80d8888b8d4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/10d3f853fdf1f3a6b3c7ea0c4620d2f699713db5", "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/8b64814b356b96a90d2bc942b152c80d8888b8d4",
"reference": "10d3f853fdf1f3a6b3c7ea0c4620d2f699713db5", "reference": "8b64814b356b96a90d2bc942b152c80d8888b8d4",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3905,7 +3915,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-05-02T13:46:13+00:00" "time": "2020-05-23T09:42:03+00:00"
}, },
{ {
"name": "yajra/laravel-datatables-oracle", "name": "yajra/laravel-datatables-oracle",

View File

@ -53,7 +53,7 @@
<!-- id --> <!-- id -->
<xsl:element name="field"> <xsl:element name="field">
<xsl:attribute name="name">id</xsl:attribute> <xsl:attribute name="name">id</xsl:attribute>
<xsl:value-of select="/Opus/Rdr_Dataset/@Id" /> <xsl:value-of select="/Opus/Rdr_Dataset/@PublishId" />
</xsl:element> </xsl:element>
<!-- year --> <!-- year -->

View File

@ -14,7 +14,7 @@
</div> </div>
<h1 class="dataset__title">{{ $dataset->mainTitle()->value }}</h1> <h1 class="dataset__title">{{ $dataset->mainTitle()->value }}</h1>
<p class="dataset__id">{{ $dataset->id }}</p> <p class="dataset__id">{{ $dataset->publish_id }}</p>
</div> </div>
<div class="dataset"> <div class="dataset">

View File

@ -53,7 +53,7 @@
<!-- id --> <!-- id -->
<xsl:element name="field"> <xsl:element name="field">
<xsl:attribute name="name">id</xsl:attribute> <xsl:attribute name="name">id</xsl:attribute>
<xsl:value-of select="/Opus/Rdr_Dataset/@Id" /> <xsl:value-of select="/Opus/Rdr_Dataset/@PublishId" />
</xsl:element> </xsl:element>
<!-- year --> <!-- year -->