|
Lines 836-890
Link Here
|
| 836 |
|
836 |
|
| 837 |
[% UNLESS ( number ) %] |
837 |
[% UNLESS ( number ) %] |
| 838 |
<!-- show duplicate warning on tab 0 only --> |
838 |
<!-- show duplicate warning on tab 0 only --> |
| 839 |
[% IF ( duplicatebiblionumber ) %] |
839 |
[% IF ( duplicate ) %] |
| 840 |
<div class="alert alert-warning"> |
840 |
<div class="alert alert-warning"> |
| 841 |
<h3>Duplicate record suspected</h3> |
841 |
[% IF duplicate.forbid_duplicate_creation %] |
| 842 |
<p |
842 |
<h3>Duplicate record detected</h3> |
| 843 |
>Is this a duplicate of |
843 |
<p |
| 844 |
<a |
844 |
>This is a duplicate of |
| 845 |
href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% duplicatebiblionumber | uri %]" |
845 |
<a |
| 846 |
onclick="openWindow('/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% duplicatebiblionumber | uri %]&popup=1', 'DuplicateBiblio','800','600'); return false;" |
846 |
href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% duplicate.biblionumber | uri %]" |
| 847 |
>[% duplicatetitle | html %] <i class="fa-solid fa-window-restore"></i |
847 |
onclick="openWindow('/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% duplicate.biblionumber | uri %]&popup=1', 'DuplicateBiblio','800','600'); return false;" |
| 848 |
></a> |
848 |
>[% duplicate.title | html %] <i class="fa-solid fa-window-restore"></i |
| 849 |
?</p |
849 |
></a> |
| 850 |
> |
850 |
</p> |
| 851 |
[% IF ( CAN_user_editcatalogue_edit_items ) %] |
851 |
[% IF ( CAN_user_editcatalogue_edit_items ) %] |
| 852 |
<form action="/cgi-bin/koha/cataloguing/additem.pl" method="get"> |
852 |
<form action="/cgi-bin/koha/cataloguing/additem.pl" method="get"> |
| 853 |
[% IF ( circborrowernumber ) # It is possible we have come from fast cataloging - include the fields %] |
853 |
[% IF ( circborrowernumber ) # It is possible we have come from fast cataloging - include the fields %] |
| 854 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
854 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
| 855 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
855 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
| 856 |
<input type="hidden" name="circborrowernumber" value="[% circborrowernumber | html %]" /> |
856 |
<input type="hidden" name="circborrowernumber" value="[% circborrowernumber | html %]" /> |
| 857 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
857 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 858 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
858 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 859 |
[% END %] |
859 |
[% END %] |
| 860 |
<input type="hidden" name="biblionumber" value="[% duplicatebiblionumber | html %]" /> |
860 |
<input type="hidden" name="biblionumber" value="[% duplicate.biblionumber | html %]" /> |
| 861 |
<button type="submit" class="new"><i class="fa-fw fa-solid fa-pencil" aria-hidden="true"></i> Yes, edit existing items</button> |
861 |
<button type="submit" class="new"><i class="fa-fw fa-solid fa-pencil" aria-hidden="true"></i> Edit existing items</button> |
| 862 |
</form> |
862 |
</form> |
| 863 |
[% ELSIF ( circborrowernumber ) # Coming from fast cataloging %] |
863 |
[% ELSIF ( circborrowernumber ) # Coming from fast cataloging %] |
| 864 |
<form action="/cgi-bin/koha/catalogue/detail.pl" method="get"> |
864 |
<form action="/cgi-bin/koha/catalogue/detail.pl" method="get"> |
| 865 |
<input type="hidden" name="biblionumber" value="[% duplicatebiblionumber | html %]" /> |
865 |
<input type="hidden" name="biblionumber" value="[% duplicate.biblionumber | html %]" /> |
| 866 |
<input type="submit" value="Yes: View existing items (you may not add items to existing records)" /> |
866 |
<input type="submit" value="View existing items (you may not add items to existing records)" /> |
| 867 |
</form> |
867 |
</form> |
|
|
868 |
[% ELSE %] |
| 869 |
<form action="/cgi-bin/koha/catalogue/detail.pl" method="get"> |
| 870 |
<input type="hidden" name="biblionumber" value="[% duplicate.biblionumber | html %]" /> |
| 871 |
<input type="submit" value="View existing items" /> |
| 872 |
</form> |
| 873 |
[% END %] |
| 868 |
[% ELSE %] |
874 |
[% ELSE %] |
| 869 |
<form action="/cgi-bin/koha/catalogue/detail.pl" method="get"> |
875 |
<h3>Duplicate record suspected</h3> |
| 870 |
<input type="hidden" name="biblionumber" value="[% duplicatebiblionumber | html %]" /> |
876 |
<p |
| 871 |
<input type="submit" value="Yes: View existing items" /> |
877 |
>Is this a duplicate of |
|
|
878 |
<a |
| 879 |
href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% duplicate.biblionumber | uri %]" |
| 880 |
onclick="openWindow('/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% duplicate.biblionumber | uri %]&popup=1', 'DuplicateBiblio','800','600'); return false;" |
| 881 |
>[% duplicate.title | html %] <i class="fa-solid fa-window-restore"></i |
| 882 |
></a> |
| 883 |
?</p |
| 884 |
> |
| 885 |
[% IF ( CAN_user_editcatalogue_edit_items ) %] |
| 886 |
<form action="/cgi-bin/koha/cataloguing/additem.pl" method="get"> |
| 887 |
[% IF ( circborrowernumber ) # It is possible we have come from fast cataloging - include the fields %] |
| 888 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
| 889 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
| 890 |
<input type="hidden" name="circborrowernumber" value="[% circborrowernumber | html %]" /> |
| 891 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 892 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 893 |
[% END %] |
| 894 |
<input type="hidden" name="biblionumber" value="[% duplicate.biblionumber | html %]" /> |
| 895 |
<button type="submit" class="new"><i class="fa-fw fa-solid fa-pencil" aria-hidden="true"></i> Yes, edit existing items</button> |
| 896 |
</form> |
| 897 |
[% ELSIF ( circborrowernumber ) # Coming from fast cataloging %] |
| 898 |
<form action="/cgi-bin/koha/catalogue/detail.pl" method="get"> |
| 899 |
<input type="hidden" name="biblionumber" value="[% duplicate.biblionumber | html %]" /> |
| 900 |
<input type="submit" value="Yes: View existing items (you may not add items to existing records)" /> |
| 901 |
</form> |
| 902 |
[% ELSE %] |
| 903 |
<form action="/cgi-bin/koha/catalogue/detail.pl" method="get"> |
| 904 |
<input type="hidden" name="biblionumber" value="[% duplicate.biblionumber | html %]" /> |
| 905 |
<input type="submit" value="Yes: View existing items" /> |
| 906 |
</form> |
| 907 |
[% END %] |
| 908 |
<form action="/cgi-bin/koha/cataloguing/addbiblio.pl" method="get"> |
| 909 |
[% IF ( CAN_user_editcatalogue_edit_items || CAN_user_editcatalogue_fast_cataloging ) %] |
| 910 |
[% IF ( circborrowernumber ) # It is possible we have come from fast cataloging - include the fields %] |
| 911 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
| 912 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
| 913 |
<input type="hidden" name="circborrowernumber" value="[% circborrowernumber | html %]" /> |
| 914 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 915 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 916 |
[% END %] |
| 917 |
<button type="submit" class="new" onclick="confirmnotdup('items'); return false;"><i class="fa fa-fw fa-save"></i> No, save as new record</button> |
| 918 |
[% ELSE %] |
| 919 |
<button type="submit" class="new" onclick="confirmnotdup('view'); return false;"><i class="fa fa-fw fa-save"></i> No, save as new record</button> |
| 920 |
[% END %] |
| 872 |
</form> |
921 |
</form> |
| 873 |
[% END %] |
922 |
[% END %] |
| 874 |
<form action="/cgi-bin/koha/cataloguing/addbiblio.pl" method="get"> |
|
|
| 875 |
[% IF ( CAN_user_editcatalogue_edit_items || CAN_user_editcatalogue_fast_cataloging ) %] |
| 876 |
[% IF ( circborrowernumber ) # It is possible we have come from fast cataloging - include the fields %] |
| 877 |
<input type="hidden" name="barcode" value="[% barcode | html %]" /> |
| 878 |
<input type="hidden" name="branch" value="[% branch | html %]" /> |
| 879 |
<input type="hidden" name="circborrowernumber" value="[% circborrowernumber | html %]" /> |
| 880 |
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> |
| 881 |
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> |
| 882 |
[% END %] |
| 883 |
<button type="submit" class="new" onclick="confirmnotdup('items'); return false;"><i class="fa fa-fw fa-save"></i> No, save as new record</button> |
| 884 |
[% ELSE %] |
| 885 |
<button type="submit" class="new" onclick="confirmnotdup('view'); return false;"><i class="fa fa-fw fa-save"></i> No, save as new record</button> |
| 886 |
[% END %] |
| 887 |
</form> |
| 888 |
</div> |
923 |
</div> |
| 889 |
<!-- /.dialog.alert --> |
924 |
<!-- /.dialog.alert --> |
| 890 |
[% END # /IF duplicatebiblionumber %] |
925 |
[% END # /IF duplicatebiblionumber %] |