forked from vufind-org/vufind
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/tamu-development-9.0.3' into tam…
…u-vufind-9.0.3
- Loading branch information
Showing
13 changed files
with
197 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,39 @@ | ||
<?php | ||
namespace TAMU\Module\Config; | ||
|
||
return [ | ||
'vufind' => [ | ||
'plugin_managers' => [ | ||
'ils_driver' => [ | ||
'factories' => [ | ||
'TAMU\\ILS\\Driver\\Folio' => 'VuFind\\ILS\\Driver\\FolioFactory', | ||
], | ||
'aliases' => [ | ||
'VuFind\\ILS\\Driver\\Folio' => 'TAMU\\ILS\\Driver\\Folio', | ||
] | ||
], | ||
], | ||
], | ||
]; | ||
return array ( | ||
'vufind' => | ||
array ( | ||
'plugin_managers' => | ||
array ( | ||
'ils_driver' => | ||
array ( | ||
'factories' => | ||
array ( | ||
'TAMU\\ILS\\Driver\\Folio' => 'VuFind\\ILS\\Driver\\FolioFactory', | ||
), | ||
'aliases' => | ||
array ( | ||
'VuFind\\ILS\\Driver\\Folio' => 'TAMU\\ILS\\Driver\\Folio', | ||
), | ||
), | ||
'recorddriver' => | ||
array ( | ||
'factories' => | ||
array ( | ||
'TAMU\\RecordDriver\\SolrMarc' => 'TAMU\\RecordDriver\\SolrDefaultFactory', | ||
), | ||
'aliases' => | ||
array ( | ||
'VuFind\\RecordDriver\\SolrMarc' => 'TAMU\\RecordDriver\\SolrMarc', | ||
), | ||
'delegators' => | ||
array ( | ||
'TAMU\\RecordDriver\\SolrMarc' => | ||
array ( | ||
0 => 'TAMU\\RecordDriver\\IlsAwareDelegatorFactory', | ||
), | ||
), | ||
), | ||
), | ||
), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
module/TAMU/src/TAMU/RecordDriver/IlsAwareDelegatorFactory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace TAMU\RecordDriver; | ||
|
||
class IlsAwareDelegatorFactory extends \VuFind\RecordDriver\IlsAwareDelegatorFactory | ||
{ | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace TAMU\RecordDriver; | ||
|
||
class SolrDefaultFactory extends \VuFind\RecordDriver\SolrDefaultFactory | ||
{ | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace TAMU\RecordDriver; | ||
|
||
class SolrMarc extends \VuFind\RecordDriver\SolrMarc | ||
{ | ||
/** | ||
* Get the uniform title from the 130a field | ||
*/ | ||
public function getUniformTitle() | ||
{ | ||
return $this->fields['uniform_title_str_mv'] ?? []; | ||
} | ||
|
||
/** | ||
* Get an array of all the language notes associated with the record. | ||
* | ||
* @return array | ||
*/ | ||
public function getLanguageNotes() | ||
{ | ||
return (array)($this->fields['language-notes'] ?? []); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
// Set page title. | ||
$this->headTitle($this->translate('An error has occurred')); | ||
|
||
$this->layout()->breadcrumbs = '<li class="active">Error</li>'; | ||
?> | ||
<div class="alert alert-danger"> | ||
<p><?=$this->transEsc('An error has occurred')?></p> | ||
<p><?=$this->transEsc($this->message)?></p> | ||
<p> | ||
<?=$this->transEsc('Please contact AskUs for assistance')?> | ||
<br> | ||
<?php $supportEmail = $this->escapeHtmlAttr($this->systemEmail()); ?> | ||
<a href="mailto:<?=$supportEmail?>"><?=$supportEmail?></a> | ||
</p> | ||
</div> | ||
|
||
<?php if ($this->showInstallLink): ?> | ||
<h2><a href="<?=$this->url('install-home')?>"><?=$this->transEsc('auto_configure_title', [], 'Auto Configure')?></a></h2> | ||
<?=$this->transEsc('auto_configure_description', [], 'If this is a new installation, you may be able to fix the error using VuFind\'s Auto Configure tool.')?> | ||
<h2><a href="<?=$this->url('upgrade-home')?>"><?=$this->transEsc('Upgrade VuFind')?></a></h2> | ||
<?=$this->transEsc('upgrade_description', [], 'If you are upgrading a previous VuFind version, you can load your old settings with this tool.')?> | ||
<?php endif; ?> | ||
|
||
<?php if (isset($this->display_exceptions) && $this->display_exceptions): ?> | ||
<h2><?=$this->transEsc('Exception')?>:</h2> | ||
<p> | ||
<b><?=$this->transEsc('Message')?>:</b> <?=$this->escapeHtml($this->exception->getMessage())?> | ||
</p> | ||
|
||
<h2><?=$this->transEsc('Backtrace')?>:</h2> | ||
<pre><?=$this->exception->getTraceAsString()?> | ||
</pre> | ||
|
||
<?php if ($e = $this->exception->getPrevious()): ?> | ||
<h3>Previous exceptions:</h3> | ||
<?php while($e): ?> | ||
<h4><?=get_class($e)?></h4> | ||
<p><?=$e->getMessage()?></p> | ||
<pre><?=$e->getTraceAsString()?></pre> | ||
<?php $e = $e->getPrevious(); ?> | ||
<?php endwhile; ?> | ||
<?php endif; ?> | ||
|
||
<?php if (isset($this->request)): ?> | ||
<h2><?=$this->transEsc('error_page_parameter_list_heading')?>:</h2> | ||
<pre><?=$this->escapeHtml(var_export($this->request->getParams(), true))?></pre> | ||
<?php endif; ?> | ||
<?php endif ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php // This can be used as a permission denied behavior; see example in permissionBehavior.ini... ?> | ||
<a class="login" href="<?=$this->url('myresearch-home')?>" rel="nofollow"> | ||
<strong><?=$this->transEsc('Login for full access')?></strong> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
// Set page title. | ||
$this->headTitle($this->translate('permission_denied_title')); | ||
|
||
// Disable top search box -- this page has a special layout. | ||
$this->layout()->searchbox = false; | ||
|
||
$this->layout()->breadcrumbs = '<li class="active">Error</li>'; | ||
?> | ||
<div> | ||
<h2><?=$this->transEsc('permission_denied_title')?></h2> | ||
<p><?=$this->flashmessages()?></p> | ||
<p> | ||
<?=$this->transEsc('permission_denied')?> | ||
<?php if (!empty($msg)): ?> | ||
<div class="alert alert-danger"><?=$this->transEsc($msg)?></div> | ||
<?php endif; ?> | ||
</p> | ||
<p> | ||
<?=$this->transEsc('Please contact AskUs for assistance')?> | ||
<br> | ||
<?php $supportEmail = $this->escapeHtmlAttr($this->systemEmail()); ?> | ||
<a href="mailto:<?=$supportEmail?>"><?=$supportEmail?></a> | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
// Set page title. | ||
$this->headTitle($this->translate('System Unavailable')); | ||
|
||
// Disable top search box -- this page has a special layout. | ||
$this->layout()->searchbox = false; | ||
|
||
$this->layout()->breadcrumbs = '<li class="active">Error</li>'; | ||
?> | ||
<div class="alert alert-warning"> | ||
<h2><?=$this->transEsc('System Unavailable')?></h2> | ||
<p> | ||
<?=$this->transEsc('The system is currently unavailable due to system maintenance')?>. | ||
<?=$this->transEsc('Please check back soon')?>. | ||
</p> | ||
<p> | ||
<?=$this->transEsc('Please contact AskUs for assistance')?> | ||
<br> | ||
<?php $supportEmail = $this->escapeHtmlAttr($this->systemEmail()); ?> | ||
<a href="mailto:<?=$supportEmail?>"><?=$supportEmail?></a> | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters