Eliminating popup windows for subject and other searches
- Article Type: General
- Product: Aleph
- Product Version: 18.01
Description:
How do some OPACs bypass the Services popup box and go directly into the designated search when you click on a subject within an individual bib record?
Resolution:
Here are the steps:
1. Edit tab_service so that there is just one service per tag, as in the following example:
1#### www_f_service_scan_acc
!*
7#### www_f_service_scan_acc
!*
240## www_f_service_scan_acc
!*
245## www_f_service_scan_acc
!*
020## www_f_service_scan_ind
2. Edit the javascript in service_head_tag so that the "services" open in the original window, instead of in a new window:
Change this line:
window.opener.location.href = loc;
to this:
window.location.replace (loc) ;
3. Edit service-scan-acc so that the services screen is blank, and so it will immediately forward the user to the new search. Add new javascript and comment out the html text:
<script type="text/javascript">
<!--
service_go("scan","scan_start=$0300&scan_code=$0200&scan_op=DIRECT");
//-->
</script>
<!--
<tr>
<td class=td1 width=10% valign=top>
<a href='javascript:service_go("scan","scan_start=$0300&scan_code=$0200&scan_op=DIRECT");'>
<img src="&icon_path/f-go.gif"
border=0
alt="Go"></a>
</td>
<td class=td1 width=12% valign=top nowrap>
$1000 :
</td>
<td class=td1 valign=top>
$1100
</td>
</tr>
-->
4. Comment out the html text in service-scan-acc-head:
<!--
<br>
<table width=100% border=0 cellpadding=0 cellspacing=2>
<tr>
<td colspan=3 class=tr1 id=bold>
Browse a headings list in the database
</td>
</tr>
-->
5. Comment out the html text in service-scan-acc-tail:
<!--
</table>
-->
6. Modify service-no-service as desired to provide an appropriate message in case one of the tags doesn't work, as in the following example:
<p width=100% class=td3 id=bold>
Error: The link for this field is not working.
<p>
The result is that the user (very) briefly sees a blank screen, and then the results of the new search. Note: If you opt to use any services other than scan in step 1, you would have to make similar changes to the corresponding files.
Thanks to Aaron Bales of Notre Dame, Christine Moulin of MIT for this information (posted on the ALEPH-NA listserv).
- Article last edited: 10/8/2013