Now I see what you mean - it's not the Scripture reference but the passage itself that is missing. So the key will be in the /views/studydetails/view.pdf.html.
Here is the code in question:
//code added to provide Scripture reference at bottom
if ($params->get('show_passage_view') > 0) {
if (isset($scripture1)) {
$key = "IP";
$passage = urlencode($scripture1);
$options = "include-passage-references=false";
$url = "http://www.esvapi.org/v2/rest/passageQuery?key=$key&passage=$passage&$options";
$p = (get_extension_funcs("curl")); // This tests to see if the curl functions are there. It will return false if curl not installed
if ($p) { // If curl is installed then we go on
$ch = curl_init($url); // This will return false if curl is not enabled
if ($ch) { //This will return false if curl is not enabled
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
echo '<br /><hr /><br />';
echo "".$scripture1." (ESV)";
print $response;
} // End of if ($ch)
} // End if ($p)
}
} // end of if
The weird thing is that if it works in the regular view then it should work in the pdf - but perhaps not. Maybe this really is a bug.
Now that I'm looking at the code, it is handled differently in the view. HEre is the same passage view from the /tmpl/default_main.php:
switch ($this->params->get('show_passage_view', '0'))
{
case 0:
break;
case 1:
?>
<strong><a class="heading" href="javascript:ReverseDisplay('scripture')">>>
<?php echo JText::_('Show/Hide Scripture Passage');?><<</a>
<div id="scripture" style="display:none;"></strong>
<?php
$passage_call = JView::loadHelper('passage');
$response = getPassage($params, $row);
echo $response;
echo '</div>';
break;
case 2:
echo '<div id="scripture">';
$passage_call = JView::loadHelper('passage');
$response = getPassage($params, $row);
echo $response;
echo '</div>';
break;
}
For grins you could try to substitute that code for the code in the pdf view and see what happens. By the way - Joomla 1.6 doesn't support pdf creation natively so we've dropped this view in version 7.0.0 until we can find a better solution.
Tom