View | Details | Raw Unified | Return to bug 9676
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt (-53 / +21 lines)
Lines 1-17 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Authorities &rsaquo; [% IF ( authid ) %]Modify authority #[% authid %] ([% authtypetext %])[% ELSE %]Adding authority ([% authtypetext %])[% END %]</title>
2
<title>Koha &rsaquo; Authorities &rsaquo; [% IF ( authid ) %]Modify authority #[% authid %] ([% authtypetext %])[% ELSE %]Adding authority ([% authtypetext %])[% END %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'doc-head-close.inc' %]
4
<script type="text/javascript" src="[% themelang %]/lib/yui/plugins/bubbling-min.js"></script>
4
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
5
<script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script>
5
<script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script>
6
6
7
<script type="text/javascript">
7
<script type="text/javascript">
8
//<![CDATA[
8
//<![CDATA[
9
9
    $(window).load(function(){
10
        $("#loading").hide();
11
    });
10
	 $(document).ready(function() {
12
	 $(document).ready(function() {
11
        $('#authoritytabs').tabs();
13
        $('#authoritytabs').tabs();
12
14
        $('#toolbar').fixFloat();
13
		$("#f").submit(function(){
15
        $("#addauth").click(function(){
14
			return $(this).Check();
16
            if(Check()){
17
                $("#f").submit();
18
            }
15
		});
19
		});
16
	 });
20
	 });
17
21
Lines 87-96 function AreMandatoriesNotOk(){ Link Here
87
    return false;
91
    return false;
88
}
92
}
89
93
90
/**
91
 * 
92
 * 
93
 */
94
function Check(){
94
function Check(){
95
    var StrAlert = AreMandatoriesNotOk();
95
    var StrAlert = AreMandatoriesNotOk();
96
    if( ! StrAlert ){
96
    if( ! StrAlert ){
Lines 118-169 function searchauthority() { Link Here
118
    Y = document.forms[0].value.value;
118
    Y = document.forms[0].value.value;
119
    window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains";
119
    window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains";
120
}
120
}
121
function confirmnotdup(redirect){
122
    $("#confirm_not_duplicate").attr("value","1");
123
    Check();
124
}
121
//]]>
125
//]]>
122
</script>
126
</script>
123
<link type="text/css" rel="stylesheet" href="[% themelang %]/css/addbiblio.css" />
127
<link type="text/css" rel="stylesheet" href="[% themelang %]/css/addbiblio.css" />
124
</head>
128
</head>
125
<body id="auth_authorities" class="auth">
129
<body id="auth_authorities" class="auth">
126
<div id="yui-cms-loading">
130
127
      <div id="yui-cms-float">
131
<div id="loading">
128
          Loading, please wait...
132
   <div>Loading, please wait...</div>
129
      </div>
133
</div>
130
  </div>
134
131
<script type="text/javascript" src="[% themelang %]/lib/yui/plugins/loading-min.js"></script>
132
<script type="text/javascript">
133
//<![CDATA[
134
(function() {
135
	// configuring the loading mask
136
	YAHOO.widget.Loading.config({
137
		opacity: 0.8
138
	});
139
})();
140
     $(document).ready(function() {
141
        yuiToolbar();
142
        $("#addauthc,#action").empty();
143
     });
144
    // YUI Toolbar Functions
145
    function yuiToolbar() {
146
    var addauthButton = new YAHOO.widget.Button({
147
                                            id: "addauth",
148
                                            type: "button",
149
                                            label: _("Save"),
150
                                            container: "addauthc",
151
                                            onclick: {fn: Check }
152
                                        });
153
    var addauthButton2 = new YAHOO.widget.Button({
154
                                            id: "addauth2",
155
                                            type: "button",
156
                                            label: _("Save"),
157
                                            container: "action",
158
                                            onclick: {fn: Check }
159
                                        });
160
    }
161
    function confirmnotdup(redirect){
162
        $("#confirm_not_duplicate").attr("value","1");
163
        Check();
164
    }
165
//]]>
166
</script>
167
[% INCLUDE 'header.inc' %]
135
[% INCLUDE 'header.inc' %]
168
136
169
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> &rsaquo; [% IF ( authid ) %]Modify authority #[% authid %] ([% authtypetext %])[% ELSE %]Adding authority [% authtypetext %][% END %]  </div>
137
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> &rsaquo; [% IF ( authid ) %]Modify authority #[% authid %] ([% authtypetext %])[% ELSE %]Adding authority [% authtypetext %][% END %]  </div>
Lines 204-211 function searchauthority() { Link Here
204
    <input type="hidden" name="index" value="[% index %]" />
172
    <input type="hidden" name="index" value="[% index %]" />
205
    <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
173
    <input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" />
206
174
207
	<div id="toolbar">
175
    <div id="toolbar" class="btn-toolbar">
208
	<ul class="toolbar"><li id="addauthc"><input id="addauth" type="submit" value="Save" accesskey="w" /></li></ul></div>
176
        <div class="btn-group"><a href="#" id="addauth" class="btn btn-small" accesskey="w"><i class="icon-hdd"></i> Save</a></div>
177
    </div>
209
178
210
<div id="authoritytabs" class="toptabs numbered">
179
<div id="authoritytabs" class="toptabs numbered">
211
    <ul>
180
    <ul>
212
- 

Return to bug 9676