- capitalize dataset tite types
- oai: added dc creator
This commit is contained in:
parent
3a67bba19a
commit
8f040c2770
|
@ -23,12 +23,12 @@ trait DatasetExtension
|
|||
protected $externalFields = array(
|
||||
'TitleMain' => array(
|
||||
'model' => Title::class,
|
||||
'options' => array('type' => ['main', 'alternative', 'sub', 'translated', 'other']),
|
||||
'options' => array('type' => ['Main', 'Alternative', 'Sub', 'Translated', 'Other']),
|
||||
'fetch' => 'eager'
|
||||
),
|
||||
'TitleAbstract' => array(
|
||||
'model' => Description::class,
|
||||
'options' => array('type' => ['abstract', 'methods', 'technical_info', 'series_information', 'other']),
|
||||
'options' => array('type' => ['Abstract', 'Methods', 'Technical_info', 'Series_information', 'Other']),
|
||||
'fetch' => 'eager'
|
||||
),
|
||||
'Licence' => array(
|
||||
|
|
|
@ -15,8 +15,9 @@ class CreateDocumentsTable extends Migration
|
|||
{
|
||||
Schema::create('documents', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('contributing_corporation', 50)->nullable();
|
||||
$table->string('creating_corporation', 50);
|
||||
$table->string('contributing_corporation', 255)->nullable();
|
||||
$table->string('creating_corporation', 255);
|
||||
$table->string('publisher_name', 255)->nullable();
|
||||
$table->dateTime('embargo_date')->nullable();
|
||||
$table->integer('project_id')->unsigned()->nullable();
|
||||
$table->foreign('project_id')->references('id')->on('projects');
|
||||
|
|
|
@ -418,7 +418,7 @@
|
|||
</dc:subject>
|
||||
</xsl:template>
|
||||
|
||||
<!-- <xsl:template match="PersonAuthor|PersonEditor" mode="oai_dc">
|
||||
<xsl:template match="PersonAuthor|PersonEditor" mode="oai_dc">
|
||||
<dc:creator>
|
||||
<xsl:value-of select="@LastName" />
|
||||
<xsl:if test="@FirstName != ''">
|
||||
|
@ -431,7 +431,7 @@
|
|||
<xsl:text>)</xsl:text>
|
||||
</xsl:if>
|
||||
</dc:creator>
|
||||
</xsl:template> -->
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="PersonContributor" mode="oai_dc">
|
||||
<dc:contributor>
|
||||
|
@ -503,6 +503,12 @@
|
|||
</dc:identifier>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="@CreatingCorporation" mode="oai_dc">
|
||||
<dc:language>
|
||||
<xsl:value-of select="." />
|
||||
</dc:language>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="@Language" mode="oai_dc">
|
||||
<dc:language>
|
||||
<xsl:value-of select="." />
|
||||
|
|
|
@ -236,9 +236,9 @@
|
|||
</fieldset>
|
||||
|
||||
<fieldset id="fieldset-publisher">
|
||||
<legend>Publisher</legend>
|
||||
<legend>Creating Corporation</legend>
|
||||
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
||||
{!! Form::label('CreatingCorporation', 'Creating Corporation') !!}
|
||||
{!! Form::label('CreatingCorporation', 'Corporation Name') !!}
|
||||
{!! Form::text('CreatingCorporation', null, ['readonly', 'class' =>
|
||||
'pure-u-23-24', 'v-model' => 'dataset.creating_corporation', "v-validate" => "'required'", 'data-vv-scope' => 'step-1']) !!}
|
||||
</div>
|
||||
|
|
|
@ -272,14 +272,14 @@ Route::group(['middleware' => ['permission:settings']], function () {
|
|||
Route::patch('settings/document/update/{id}', [
|
||||
'as' => 'settings.document.update', 'uses' => 'Settings\DatasetController@update',
|
||||
]);
|
||||
Route::get('settings/file/download/{id}', [
|
||||
'as' => 'settings.file.download', 'uses' => 'Settings\DatasetController@download',
|
||||
]);
|
||||
// Route::get('settings/file/download/{id}', [
|
||||
// 'as' => 'settings.file.download', 'uses' => 'Settings\DatasetController@download',
|
||||
// ]);
|
||||
// //=============================================================================================================
|
||||
// //=================================================setting file=============================================
|
||||
// Route::get('settings/file/download/{id}', [
|
||||
// 'as' => 'file.download', 'uses' => 'Settings\FileController@download',
|
||||
// ]);
|
||||
Route::get('settings/file/download/{id}', [
|
||||
'as' => 'settings.file.download', 'uses' => 'Settings\FileController@download',
|
||||
]);
|
||||
|
||||
//=================================================setting mimetype=============================================
|
||||
Route::get('/settings/mimetype', [
|
||||
|
|
Loading…
Reference in New Issue
Block a user