-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First commit, adds a new block to export metadata to various formats …
…to islandora objects
- Loading branch information
0 parents
commit abb1966
Showing
9 changed files
with
591 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/vendor/ |
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,55 @@ | ||
# Islandora Export Extra | ||
|
||
## Introduction | ||
|
||
Generates a block with metadata export options that can be embedded in any object page. Currently supported export formats include: | ||
|
||
* BibTex | ||
* EndNote | ||
* MARC | ||
* MARCXML | ||
* DublinCore | ||
* RIS | ||
|
||
## Requirements | ||
|
||
This module requires the following modules/libraries: | ||
|
||
* [Islandora](https://github.com/islandora/islandora) | ||
* [Islandora Scholar](https://github.com/islandora/islandora_scholar) | ||
* [Islandora Google Scholar](https://github.com/Born-Digital-US/islandora_scholar/tree/7.x/modules/islandora_google_scholar) | ||
* [Islandora Solr](https://github.com/Islandora/islandora_solr_search) | ||
* [Citeproc](https://github.com/Islandora/islandora_scholar/tree/7.x/modules/citeproc) | ||
* [CSL](https://github.com/Islandora/islandora_scholar/tree/7.x/modules/csl) | ||
* [Bibutils](https://github.com/Islandora/islandora_scholar/tree/7.x/modules/bibutils) | ||
|
||
## Installation | ||
|
||
Run <pre>composer install</pre> at the root of the folder to install the required libraries. | ||
|
||
Install as usual, see [this](https://drupal.org/documentation/install/modules-themes/modules-7) for further information. | ||
|
||
## Configuration | ||
|
||
Enable the module via Administration » Modules (admin/modules). Place the block on the desired pages, and enable the formats that users can export to from the block configuration page. Users need to have permission to view MODs and RDF data streams to download. | ||
|
||
## Troubleshooting/Issues | ||
|
||
Having problems or solved a problem? Check out the Islandora google groups for a solution. | ||
|
||
* [Islandora Group](https://groups.google.com/forum/?hl=en&fromgroups#!forum/islandora) | ||
* [Islandora Dev Group](https://groups.google.com/forum/?hl=en&fromgroups#!forum/islandora-dev) | ||
|
||
## Maintainers/Sponsors | ||
|
||
Current maintainers: | ||
|
||
* Hertzel Armengol <[email protected]> | ||
|
||
## Development | ||
|
||
If you would like to contribute to this module, please check out our helpful [Documentation for Developers](https://github.com/Islandora/islandora/wiki#wiki-documentation-for-developers) info, as well as our [Developers](http://islandora.ca/developers) section on the Islandora.ca site. | ||
|
||
## License | ||
|
||
[GPLv3](http://www.gnu.org/licenses/gpl-3.0.txt) |
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,55 @@ | ||
<?php | ||
/** | ||
* @file | ||
* Hooks provided by the Citation Exporter module. | ||
*/ | ||
|
||
/** | ||
* Implements hook_TYPE_alter | ||
* Returns a list of available formats to download as an array that can be modified by other modules | ||
* return array( | ||
* TYPE => array ( | ||
* url => URL of the resource that will process the download | ||
* title => (optional) title attribute that will be added to the URL | ||
* ) | ||
* ) | ||
* | ||
* | ||
* @param $formats | ||
* | ||
* @return array array of formats, this will be displayed in the block configuration file, this DOES not defines commands for menu item callbacks | ||
*/ | ||
function hook_mods_download_format_alter(&$formats) { | ||
$formats = array_merge($formats, array( | ||
'BibTex' => array( | ||
'url' => 'islandora/object/[fedora:pid]/download_mods_as_bibtext', | ||
'title' => "Compatible with Zotero" | ||
), | ||
'EndNote' => array( | ||
'url' => 'islandora/object/[fedora:pid]/download_mods_as_endnote', | ||
'title' => "Compatible with EndNote" | ||
), | ||
'MARC' => array( | ||
'url' => 'islandora/object/[fedora:pid]/download_mods_as_marc' | ||
), | ||
'MARCXML' => array( | ||
'url' => 'islandora/object/[fedora:pid]/download_mods_as_marcxml', | ||
'title' => 'Compatible with XML viewers' | ||
), | ||
'DublinCore' => array( | ||
'url' => 'islandora/object/[fedora:pid]/datastream/DC/download', | ||
'title' => 'Compatible with XML viewers' | ||
), | ||
'RIS' => array( | ||
'url' => 'islandora/object/[fedora:pid]/download_mods_as_ris', | ||
'title' => "Compatible with EndNote, Refworks, Zotero, and Reference Manager" | ||
), | ||
//'JSON', | ||
'JSON-LD' => array( | ||
'url' => 'islandora/object/[fedora:pid]/download_mods_as_jsond', | ||
'title' => 'Compatible with Zotero' | ||
), | ||
)); | ||
|
||
return $formats; | ||
} |
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,7 @@ | ||
name = Islandora Export Extra | ||
description = Exports a collection of objects to several formats (JSON, EndNote, RIS, BibText, etc) file. | ||
package = Islandora Solution Packs | ||
core = 7.x | ||
php = 5.2 | ||
|
||
dependencies[] = citation_exporter |
Oops, something went wrong.