Synching with rel_2_2.
[koha.git] / koha-tmpl / intranet-tmpl / npl / en / authorities / detail-biblio-search.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Authorities
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
4 <!-- TMPL_INCLUDE NAME="authorities-topmenu.inc" -->
5 <!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
6
7 <div id="main">
8 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/includes/marc-editor.css">
9 <div class="tabbed">
10         <h1>Authority number : <!-- TMPL_VAR NAME="authid" --></h1>
11         <a href="authorities.pl?authid=<!-- TMPL_VAR NAME="authid" -->">
12                 <img border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/fileopen.png">
13         </a>
14         <a href="javascript:confirm_deletion()">
15                 <img border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/edittrash.png">
16         </a>
17         <a href="javascript:Dopop('detailprint.pl?authid=<!-- TMPL_VAR NAME="authid" -->&index=<!-- TMPL_VAR NAME="index" -->')" class="button authority">
18                 Print
19         </a>
20         <a href="javascript:CopyValues()">      <img border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/arrow.gif" height="45" width="45" ">
21
22         </a>
23 </div>
24 <br><br><br>
25 <div name="0XX" id="0XX" class="tab" style="visibility:visible">
26         <!-- TMPL_LOOP NAME="0XX" -->
27                         <p class="MARCtag">
28                                 <!-- TMPL_VAR NAME="tag" -->
29                         </p>
30                 <!-- TMPL_LOOP NAME="subfield" -->
31                         <p>
32                                 <label class="labelsubfield">
33                                 <a href="search.marc/search.pl?op=do_search&amp;marclist=<!-- TMPL_VAR NAME="marc_tag" --><!-- TMPL_VAR NAME="marc_subfield" -->&amp;operator=&#x003D&amp;type=intranet&amp;value=<!-- TMPL_VAR NAME="marc_value" ESCAPE=URL -->">
34                                         <img border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/filefind.png" height="15">
35                                 </a>
36                                 <!-- TMPL_VAR NAME="marc_subfield" -->
37                                 <!-- TMPL_VAR NAME="marc_lib" --></label>
38                                 <!-- TMPL_VAR NAME="marc_value" -->
39                         </p>
40                 <!-- /TMPL_LOOP -->
41         <!-- /TMPL_LOOP -->
42 </div>
43         
44 <script language="JavaScript" type="text/javascript">
45
46 function confirm_deletion() {
47         var is_confirmed = confirm('Are you sure you want to delete this biblio?');
48         if (is_confirmed) {
49                 window.location="acqui.simple/addbiblio.pl?op=delete&amp;bibid=<!-- TMPL_VAR NAME="bibid" -->";
50         }
51 }
52 function Dopop(link) {
53         newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
54 }
55
56 function CopyValues()
57 {
58 var index_start = <!-- TMPL_VAR NAME="index" -->;
59 opener.opener.document.f.field_value[index_start].value = '<!-- TMPL_VAR NAME="authid">';
60 var whichfield = opener.opener.document.f.tag[index_start].value;
61 for (i=index_start ; i<opener.opener.document.f.field_value.length ; i++) {
62
63 if (opener.opener.document.f.tag[i].value == whichfield && opener.opener.document.f.subfield[i].value == '9') 
64         {
65                 opener.opener.document.f.field_value[i].value = '<!-- TMPL_VAR NAME="authid">';
66         }
67
68 }
69
70
71 <!-- TMPL_LOOP NAME="0XX" -->
72    <!-- TMPL_LOOP NAME="subfield" -->
73 for (i=index_start ; i<opener.opener.document.f.field_value.length ; i++) {
74
75 if (opener.opener.document.f.tag[i].value == whichfield && opener.opener.document.f.subfield[i].value == '<!-- TMPL_VAR NAME="marc_subfield" -->') 
76         {
77                 opener.opener.document.f.field_value[i].value = '<!-- TMPL_VAR NAME="marc_value" -->';
78         }
79
80 }
81         
82    <!-- /TMPL_LOOP -->
83 <!-- /TMPL_LOOP -->
84         opener.close();
85         self.close();
86         return false;
87         
88 }
89
90 </script>
91 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->