diff --git a/biblio.info b/biblio.info index e61d906c..64a7570b 100644 --- a/biblio.info +++ b/biblio.info @@ -32,7 +32,7 @@ files[] = views/biblio_handler_sort_contributor_lastname.inc files[] = views/biblio_handler_argument_many_to_one.inc files[] = views/biblio_handler_field_export_link.inc ; Information added by drupal.org packaging script on 2013-05-31 -version = "7.x-1.0-rc5+37-dev" +version = "7.x-1.0-rc7" core = "7.x" project = "biblio" datestamp = "1370023530" diff --git a/biblio.module b/biblio.module index ce7610bf..0c84ae3c 100644 --- a/biblio.module +++ b/biblio.module @@ -1896,7 +1896,7 @@ function _biblio_citekey_print($citekey) { $style = biblio_get_style(); $base = variable_get('biblio_base', 'biblio'); $node = node_load($nid->nid); - return theme('biblio_style', array('node' => $node, 'base' => $base, 'style' => $style)); + return theme('biblio_style', array('node' => $node, 'base' => $base, 'style_name' => $style)); } else { return t("Citekey @cite not found", array('@cite' => $citekey)); @@ -2254,4 +2254,4 @@ function biblio_ctools_plugin_api() { if ($module == "feeds" && $api == "feeds_importer_default") { return array("version" => 1); } -} \ No newline at end of file +} diff --git a/modules/CiteProc/biblio_citeproc.admin.inc b/modules/CiteProc/biblio_citeproc.admin.inc index 277592bd..237de19b 100644 --- a/modules/CiteProc/biblio_citeproc.admin.inc +++ b/modules/CiteProc/biblio_citeproc.admin.inc @@ -344,7 +344,7 @@ function _install_csl($name = NULL, $csl = NULL, $sha = NULL, $all = FALSE, $upd } } else { - drupal_set_message(t('I could not parse the CSL provided as valid XML', 'error')); + drupal_set_message(t('I could not parse the CSL provided as valid XML'), 'error'); } } @@ -352,6 +352,10 @@ function _get_zip_from_github() { $zip_url = 'https://github.com/citation-style-language/styles/zipball/master'; $destination = file_build_uri('Biblio-CiteProc-Styles.zip'); $zip_file = system_retrieve_file($zip_url, $destination, TRUE, FILE_EXISTS_REPLACE); + if ($zip_file === FALSE){ + drupal_set_message(t('Failed to fetch zipfile at @zipfile',array('@zipfile' => $zip_url)), 'error'); + return; + } $usage = file_usage_list($zip_file); if (empty($usage)) { file_usage_add($zip_file, 'biblio_citeproc', 'csl', 0); diff --git a/modules/crossref/biblio.crossref.client.php b/modules/crossref/biblio.crossref.client.php index e53072f6..ed1506c7 100644 --- a/modules/crossref/biblio.crossref.client.php +++ b/modules/crossref/biblio.crossref.client.php @@ -55,7 +55,7 @@ public function getQuery() { public function fetch() { $this->query = $this->url . '?pid=' . $this->pid . '&noredirect=true&format=unixref&id=doi%3A' . $this->doi; - $request_options = array('method' => 'POST'); + $request_options = array('method' => 'GET'); $result = drupal_http_request($this->query, $request_options); if ($result->code != 200) { @@ -323,4 +323,4 @@ function _unixref_get_contributor_category($role) { if ($role == 'translator') return 4; return NULL; } -} \ No newline at end of file +}