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.
add uniform title and language notes via TAMU module
- Loading branch information
Showing
7 changed files
with
91 additions
and
25 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