|
Lines 520-525
function searchauthority() {
Link Here
|
| 520 |
opacity: 0.8 |
520 |
opacity: 0.8 |
| 521 |
}); |
521 |
}); |
| 522 |
})(); |
522 |
})(); |
|
|
523 |
$(document).ready(function() { |
| 524 |
yuiToolbar(); |
| 525 |
$("#addauthc,#action").empty(); |
| 526 |
}); |
| 527 |
// YUI Toolbar Functions |
| 528 |
function yuiToolbar() { |
| 529 |
var addauthButton = new YAHOO.widget.Button({ |
| 530 |
id: "addauth", |
| 531 |
type: "button", |
| 532 |
label: "Save", |
| 533 |
container: "addauthc", |
| 534 |
onclick: {fn: Check } |
| 535 |
}); |
| 536 |
var addauthButton2 = new YAHOO.widget.Button({ |
| 537 |
id: "addauth2", |
| 538 |
type: "button", |
| 539 |
label: "Save", |
| 540 |
container: "action", |
| 541 |
onclick: {fn: Check } |
| 542 |
}); |
| 543 |
} |
| 544 |
function confirmnotdup(redirect){ |
| 545 |
$("#confirm_not_duplicate").attr("value","1"); |
| 546 |
Check(); |
| 547 |
} |
| 523 |
//]]> |
548 |
//]]> |
| 524 |
</script> |
549 |
</script> |
| 525 |
[% INCLUDE 'header.inc' %] |
550 |
[% INCLUDE 'header.inc' %] |
|
Lines 536-588
function searchauthority() {
Link Here
|
| 536 |
<h1>Modify authority #[% authid %] [% authtypetext %]</h1> |
561 |
<h1>Modify authority #[% authid %] [% authtypetext %]</h1> |
| 537 |
[% ELSE %] |
562 |
[% ELSE %] |
| 538 |
<h1>Adding authority [% authtypetext %]</h1> |
563 |
<h1>Adding authority [% authtypetext %]</h1> |
| 539 |
[% END %] |
564 |
[% END %] |
|
|
565 |
|
| 566 |
[% IF ( duplicateauthid ) %] |
| 567 |
<div class="dialog alert"> |
| 568 |
<h4>Duplicate record suspected</h4> |
| 569 |
<p>Is this a duplicate of <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% duplicateauthid %]" onclick="openWindow('/cgi-bin/koha/authorities/detail.pl?authid=[% duplicateauthid %]&popup=1', 'Duplicate authority','800','600'); return false;" class="button">[% duplicateauthvalue %]</a>?</p> |
| 570 |
|
| 571 |
<form action="authorities.pl" method="get"> |
| 572 |
<input type="hidden" name="authid" value="[% duplicateauthid %]" /> |
| 573 |
<input type="submit" class="edit" value="Yes: Edit exisiting authority" /> |
| 574 |
</form> |
| 575 |
<form action="authorities.pl" method="get"> |
| 576 |
<input type="button" value="No: Save as new authority" class="save" accesskey="w" onclick="confirmnotdup('items'); return false;" /> |
| 577 |
</form> |
| 578 |
</div> |
| 579 |
[% END %] |
| 580 |
|
| 540 |
<form method="post" name="f" action="/cgi-bin/koha/authorities/authorities.pl"> |
581 |
<form method="post" name="f" action="/cgi-bin/koha/authorities/authorities.pl"> |
| 541 |
<input type="hidden" name="op" value="add" /> |
582 |
<input type="hidden" name="op" value="add" /> |
| 542 |
<input type="hidden" name="addfield_field" value="" /> |
583 |
<input type="hidden" name="addfield_field" value="" /> |
| 543 |
<input type="hidden" name="repeat_field" value="" /> |
584 |
<input type="hidden" name="repeat_field" value="" /> |
| 544 |
<input type="hidden" name="authtypecode" value="[% authtypecode %]" /> |
585 |
<input type="hidden" name="authtypecode" value="[% authtypecode %]" /> |
| 545 |
<input type="hidden" name="authid" value="[% authid %]" /> |
586 |
<input type="hidden" name="authid" value="[% authid %]" /> |
|
|
587 |
<input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" /> |
| 546 |
|
588 |
|
| 547 |
<div id="toolbar"> |
589 |
<div id="toolbar"> |
| 548 |
<script type="text/javascript"> |
|
|
| 549 |
//<![CDATA[ |
| 550 |
// prepare DOM for YUI Toolbar |
| 551 |
$(document).ready(function() { |
| 552 |
yuiToolbar(); |
| 553 |
$("#addauthc,#action").empty(); |
| 554 |
}); |
| 555 |
// YUI Toolbar Functions |
| 556 |
function yuiToolbar() { |
| 557 |
var addauthButton = new YAHOO.widget.Button({ |
| 558 |
id: "addauth", |
| 559 |
type: "button", |
| 560 |
label: "Save", |
| 561 |
container: "addauthc", |
| 562 |
onclick: {fn: Check } |
| 563 |
}); |
| 564 |
var addauthButton2 = new YAHOO.widget.Button({ |
| 565 |
id: "addauth2", |
| 566 |
type: "button", |
| 567 |
label: "Save", |
| 568 |
container: "action", |
| 569 |
onclick: {fn: Check } |
| 570 |
}); |
| 571 |
} //]]> |
| 572 |
</script> |
| 573 |
<ul class="toolbar"><li id="addauthc"><input id="addauth" type="submit" value="Save" accesskey="w" /></li></ul></div> |
590 |
<ul class="toolbar"><li id="addauthc"><input id="addauth" type="submit" value="Save" accesskey="w" /></li></ul></div> |
| 574 |
|
591 |
|
| 575 |
[% IF ( duplicateauthid ) %] |
|
|
| 576 |
<div class="problem"> |
| 577 |
<p>Duplicate suspected with <a href="javascript:openWindow('detail.pl?authid=[% duplicateauthid %]&popup=1', 'Duplicate authority')" class="button">[% duplicateauthvalue %]</a></p> |
| 578 |
<p>You must either :</p> |
| 579 |
<ul> |
| 580 |
<p><input type="checkbox" value="1" name="confirm_not_duplicate" />confirm it's not a duplicate (and click on <input type="button" value="Add authority" onclick="Check(this.form)" accesskey="w" class="button" /> again)</p> |
| 581 |
<p>Go to <a href="authorities.pl?authid=[% duplicateauthid %]" >original authority</a></p> |
| 582 |
</ul> |
| 583 |
</div> |
| 584 |
[% END %] |
| 585 |
|
| 586 |
<div id="authoritytabs" class="toptabs numbered"> |
592 |
<div id="authoritytabs" class="toptabs numbered"> |
| 587 |
<ul> [% FOREACH BIG_LOO IN BIG_LOOP %] |
593 |
<ul> [% FOREACH BIG_LOO IN BIG_LOOP %] |
| 588 |
<li>[% IF ( BIG_LOO.number ) %] |
594 |
<li>[% IF ( BIG_LOO.number ) %] |