Lines 40-56
function openAuth(tagsubfieldid,authtype,source) {
Link Here
|
40 |
var tagsubfield=getTagInputnameFilter(tagsubfieldid); |
40 |
var tagsubfield=getTagInputnameFilter(tagsubfieldid); |
41 |
var elementsubfcode=getSubfieldCode(element.name); |
41 |
var elementsubfcode=getSubfieldCode(element.name); |
42 |
var mainmainstring=element.value; |
42 |
var mainmainstring=element.value; |
43 |
var mainstring=""; |
43 |
var mainstring = new Array(); |
44 |
var inputs = element.parentNode.parentNode.getElementsByTagName("input"); |
44 |
var inputs = element.parentNode.parentNode.getElementsByTagName("input"); |
45 |
|
45 |
|
46 |
for (var myindex =0; myindex<inputs.length;myindex++){ |
46 |
for (var myindex =0; myindex<inputs.length;myindex++){ |
47 |
if (inputs[myindex].name && inputs[myindex].name.match(tagsubfield)){ |
47 |
if (inputs[myindex].name && inputs[myindex].name.match(tagsubfield)){ |
48 |
var subfieldcode=getSubfieldCode(inputs[myindex].name); |
48 |
var subfieldcode=getSubfieldCode(inputs[myindex].name); |
49 |
if (isNaN(parseInt(subfieldcode)) && inputs[myindex].value != "" && subfieldcode!=elementsubfcode){ |
49 |
if (isNaN(parseInt(subfieldcode)) && inputs[myindex].value != "" && subfieldcode!=elementsubfcode){ |
50 |
mainstring=inputs[myindex].value+" "+mainstring; |
50 |
mainstring.push(inputs[myindex].value); |
51 |
} |
51 |
} |
52 |
} |
52 |
} |
53 |
} |
53 |
} |
|
|
54 |
mainstring = mainstring.join(' '); |
54 |
newin=window.open("../authorities/auth_finder.pl?source="+source+"&authtypecode="+authtype+"&index="+tagsubfieldid+"&value_mainstr="+encodeURI(mainmainstring)+"&value_main="+encodeURI(mainstring), "_blank",'width=700,height=550,toolbar=false,scrollbars=yes'); |
55 |
newin=window.open("../authorities/auth_finder.pl?source="+source+"&authtypecode="+authtype+"&index="+tagsubfieldid+"&value_mainstr="+encodeURI(mainmainstring)+"&value_main="+encodeURI(mainstring), "_blank",'width=700,height=550,toolbar=false,scrollbars=yes'); |
55 |
} |
56 |
} |
56 |
|
57 |
|
57 |
- |
|
|