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