Skip to content

Commit 867191c

Browse files
committed
Fixed #78 -- Qualifier search results in VHL
1 parent 5ca7c71 commit 867191c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

template/resource.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,11 +786,12 @@
786786
</tr>
787787

788788
<!-- Documents indexed in the Virtual Health Library (VHL) -->
789+
<?php $vhl_filter = ( $has_qualifier ) ? 'sh' : 'mh'; ?>
789790
<?php $descriptors = wp_list_pluck( $arr_PreferredDescriptors, 'term_string', 'language_code' ); ?>
790791
<tr>
791792
<td class="text-right badge-light align-middle"><?php _e('Documents indexed in the Virtual Health Library (VHL)','ths'); ?>:</td>
792793
<td style="vertical-align: middle;">
793-
<a href='<?php echo $vhl_portal_url; ?>/?q=mh:("<?php echo $descriptors[$lang_ths]; ?>")' target="_blank"><?php _e('Click here to access the VHL documents','ths'); ?></a>
794+
<a href='<?php echo $vhl_portal_url; ?>/?q=<?php echo $vhl_filter; ?>:("<?php echo $descriptors[$lang_ths]; ?>")' target="_blank"><?php _e('Click here to access the VHL documents','ths'); ?></a>
794795
</td>
795796
</tr>
796797

0 commit comments

Comments
 (0)