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.
- Loading branch information
1 parent
9926c7d
commit c2aaf3c
Showing
21 changed files
with
90 additions
and
89 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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* DOI view helper | ||
* IdentifierLinker view helper | ||
* | ||
* PHP version 8 | ||
* | ||
|
@@ -29,19 +29,20 @@ | |
|
||
namespace VuFind\View\Helper\Root; | ||
|
||
use VuFind\Config\Config; | ||
use VuFind\RecordDriver\AbstractBase as RecordDriver; | ||
|
||
use function in_array; | ||
|
||
/** | ||
* DOI view helper | ||
* IdentifierLinker view helper | ||
* | ||
* @category VuFind | ||
* @package View_Helpers | ||
* @author Demian Katz <[email protected]> | ||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License | ||
* @link https://vufind.org/wiki/development Wiki | ||
*/ | ||
class Doi extends \Laminas\View\Helper\AbstractHelper | ||
class IdentifierLinker extends \Laminas\View\Helper\AbstractHelper | ||
{ | ||
/** | ||
* Current RecordDriver | ||
|
@@ -88,7 +89,7 @@ public function __construct(protected Context $context, protected array $config | |
* Set up context for helper | ||
* | ||
* @param RecordDriver $driver The current record driver | ||
* @param string $area DOI context ('results', 'record' or 'holdings') | ||
* @param string $area Display context ('results', 'record' or 'holdings') | ||
* | ||
* @return static | ||
*/ | ||
|
@@ -136,7 +137,7 @@ public function renderTemplate() | |
} | ||
|
||
/** | ||
* Does the configuration indicate that we should display DOI links in | ||
* Does the configuration indicate that we should display identifier links in | ||
* the specified context? | ||
* | ||
* @return bool | ||
|
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,7 +1,7 @@ | ||
<?php | ||
|
||
/** | ||
* DOI helper factory. | ||
* IdentifierLinker helper factory. | ||
* | ||
* PHP version 8 | ||
* | ||
|
@@ -36,15 +36,15 @@ | |
use Psr\Container\ContainerInterface; | ||
|
||
/** | ||
* DOI helper factory. | ||
* IdentifierLinker helper factory. | ||
* | ||
* @category VuFind | ||
* @package View_Helpers | ||
* @author Demian Katz <[email protected]> | ||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License | ||
* @link https://vufind.org/wiki/development Wiki | ||
*/ | ||
class DoiFactory implements FactoryInterface | ||
class IdentifierLinkerFactory implements FactoryInterface | ||
{ | ||
/** | ||
* Create an object | ||
|
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
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
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
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
Oops, something went wrong.