<?php /* echo bir_show_custom_field_translated(get_the_ID(), 'search_strategy_III_observations', __('Observations','refnet'), $html4label, $html4custom_field); echo bir_show_custom_field_translated(get_the_ID(), 'cochrane_iah_search_expression', __('iAH search strategy','refnet'), $html4label, $html4custom_field); if (bir_has_no_empty_custom_field (get_the_ID(), array("cochrane_iahx_search_expression"))) { echo bir_show_search_rss_buttons(get_the_ID(), "cochrane_iahx_search_expression"); } echo bir_show_custom_field_translated(get_the_ID(), 'cochrane_iahx_search_expression', __('iAHx search strategy','refnet'), $html4label, $html4custom_field); $text2show = bir_show_custom_field_translated(get_the_ID(), 'search_strategy_III_databases', __('Databases','refnet'), $html4label, $html4custom_field); echo preg_replace("/other_to_replace/", bir_show_custom_field_translated(get_the_ID(), 'search_strategy_III_other_databases',"","","",TRUE,",",FALSE,TRUE), $text2show); */ ?> </dl> <?php $custom_field_keys = array("search_details", "vhl_instance"); if (bir_has_no_empty_custom_field(get_the_ID(), $custom_field_keys)) { echo "<h5>"; echo "<i class='subject'></i>"; _e('More information', 'refnet'); echo "</h5>"; } ?> <dl> <?php echo bir_show_custom_field_translated(get_the_ID(), 'vhl_instance', __('VHL instance', 'refnet'), $html4label, $html4custom_field); echo bir_show_custom_field_translated(get_the_ID(), 'search_details', __('Search details', 'refnet'), $html4label, $html4custom_field); ?> </dl> </div> <?php comments_template('');
function bir_show_search_rss_buttons($id, $custom_field_name, $button_type = "") { global $site_lang; $iahx_service = "http://pesquisa.bvsalud.org/portal/"; $iahx_other_params = "&from=0&sort=&format=summary&count=20&page=1"; if (is_page('lista-de-temas')) { $iahx_other_params .= "&source=bir-qsl"; } if (is_single()) { if ($_GET["source"] == 'bir-qsl') { $iahx_other_params .= "&source=bir-ss-qsl"; } else { $iahx_other_params .= "&source=bir-ss"; } } $iahx_lang_param = "?lang=" . substr($site_lang, 0, 2); $iahx_index_param = "&index=tw"; $iahx_query_param = "&q=" . str_replace("&", "%26", trim(bir_show_custom_field_translated(get_the_ID(), $custom_field_name, "", "", "", TRUE, ",", FALSE, FALSE))); $iahx_output_param = "&output=rss"; $iahx_label_param = "&filterLabel=" . get_the_title($id); if (bir_has_no_empty_custom_field($id, array($custom_field_name))) { $iahx_regional_url = $iahx_service . $iahx_lang_param . $iahx_other_params . $iahx_query_param . $iahx_index_param . $iahx_label_param; if (strlen(urlencode($iahx_query_param)) < 7500) { //strlen check because of 8k limit for GET method echo bir_search_rss_html($iahx_regional_url, $iahx_regional_url . $iahx_output_param, $button_type); } else { echo '<form id="vhl_search" action="' . $iahx_service . '" method="POST" target="_blank"> <input type="hidden" name="from" value="0"/> <input type="hidden" name="sort" value=""/> <input type="hidden" name="format" value="summary"/> <input type="hidden" name="count" value="20"/> <input type="hidden" name="page" value="1"/> <input type="hidden" name="lang" value="' . substr($site_lang, 0, 2) . '"/> <input type="hidden" name="index" value="tw"/> <input type="hidden" name="filterLabel" value="' . get_the_title($id) . '"/>' . "<input type='hidden' name='q' value='" . trim(bir_show_custom_field_translated(get_the_ID(), $custom_field_name, "", "", "", TRUE, ",", FALSE, FALSE)) . "'/>"; if (is_page('lista-de-temas')) { echo '<input type="hidden" name="source" value="bir-sql"/>'; } if (is_single()) { if ($_GET["source"] == 'bir-qsl') { echo '<input type="hidden" name="source" value="bir-ss-sql"/>'; } else { echo '<input type="hidden" name="source" value="bir-ss"/>'; } } echo '</form> <script type="text/javascript"> function submitForm(output) { if (output == "rss") { var inputRSS = document.createElement("input"); inputRSS.type = "hidden"; inputRSS.name = "output"; inputRSS.value = "rss"; document.forms["vhl_search"].appendChild(inputRSS); } document.forms["vhl_search"].submit(); } </script>'; echo bir_search_rss_html("#", "#", $button_type, "javascript:submitForm();", "javascript:submitForm('rss');"); } } return $html_button; }
"> <?php the_title(); ?> </a></td> <td> <?php if (bir_has_no_empty_custom_field(get_the_ID(), array("vhl_instance"))) { echo trim(bir_show_custom_field_translated(get_the_ID(), "vhl_instance", "", "", "", TRUE, ",", FALSE, FALSE)); } ?> </td> <td> <?php if (bir_has_no_empty_custom_field(get_the_ID(), array("lilacs_iah_search_expression")) && bir_has_no_empty_custom_field(get_the_ID(), array("url_to_search_result"))) { echo bir_show_search_rss_buttons_iah(get_the_ID(), "url_to_search_result", "link"); } elseif (bir_has_no_empty_custom_field(get_the_ID(), array("lilacs_iahx_search_expression"))) { echo bir_show_search_rss_buttons(get_the_ID(), "lilacs_iahx_search_expression", "link"); } ?> </td> </tr> <?php } ?> </table> </div><!-- #content --> <?php wp_pagenavi(array('query' => $loop)); ?> </div><!-- #primary -->