|
Lines 1-154
Link Here
|
| 1 |
[% USE KohaDates %] |
|
|
| 2 |
[% INCLUDE 'doc-head-open.inc' %] |
| 3 |
<title>Koha › Acquisitions › Duplicate finder</title> |
| 4 |
[% INCLUDE 'doc-head-close.inc' %] |
| 5 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> |
| 6 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script> |
| 7 |
<script type="text/javascript">//<![CDATA[ |
| 8 |
$(document).ready(function(){ |
| 9 |
$(".sorted").tablesorter({ |
| 10 |
sortList: [[0,0]], |
| 11 |
headers: { 1: { sorter: false}} |
| 12 |
}).tablesorterPager({container: $(".pager"),positionFixed: false,size: 10}); |
| 13 |
});//]]> |
| 14 |
</script> |
| 15 |
<script type="text/javascript">//<![CDATA[ |
| 16 |
$(function(){ |
| 17 |
$('#alerttabs > ul').tabs(); |
| 18 |
}); //]]> |
| 19 |
</script> |
| 20 |
</head> |
| 21 |
<body id="acq_duplicatesearch" class="acq"> |
| 22 |
[% INCLUDE 'header.inc' %] |
| 23 |
[% INCLUDE 'acquisitions-search.inc' %] |
| 24 |
<script type="text/javascript"> |
| 25 |
// <![CDATA[ |
| 26 |
/** |
| 27 |
* checkDuplicateFinderForm(myForm) |
| 28 |
* This function checks the form to be correctly filled (search terms not empty). |
| 29 |
*/ |
| 30 |
function checkDuplicateFinderForm(myForm) { |
| 31 |
if( (myForm.title.value.trim() + myForm.author.value.trim() + myForm.isbn.value.trim()).length == 0 ){ |
| 32 |
alert(_("Please enter a search term for Title, Author and/or ISBN.")); |
| 33 |
return false; |
| 34 |
} |
| 35 |
return true; |
| 36 |
} |
| 37 |
// ]]> |
| 38 |
</script> |
| 39 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="duplicatesearch.pl">Duplicate finder</a></div> |
| 40 |
<div id="doc3" class="yui-t2"> |
| 41 |
<div id="bd"> |
| 42 |
<div id="yui-main"> |
| 43 |
<div class="yui-b"> |
| 44 |
|
| 45 |
<h1>Duplicate finder</h1> |
| 46 |
<p>Please note that search can be slow on a large database.</p> |
| 47 |
<div id="acq_duplicatesearch"> |
| 48 |
[% IF ( result ) %] |
| 49 |
<div id="alerttabs" class="toptabs"> |
| 50 |
<ul> |
| 51 |
<li><a href="#pagerordertable">Order ([% numresults_order %])</a></li> |
| 52 |
<li><a href="#pagersuggestiontable">Suggestion ([% numresults_sugg %])</a></li> |
| 53 |
<li><a href="#pagercatalogtable">Catalog ([% numresults_bib %])</a></li> |
| 54 |
</ul> |
| 55 |
<div id="pagerordertable"> |
| 56 |
[% IF (numresults_order) %] |
| 57 |
[% INCLUDE 'table-pager.inc' perpage='10' %] |
| 58 |
<table id="ordertable" class="sorted"> |
| 59 |
[% ELSE %] |
| 60 |
<table> |
| 61 |
[% END %] |
| 62 |
<thead> |
| 63 |
<tr> |
| 64 |
<th>Basket name</th> |
| 65 |
<th>Order number</th> |
| 66 |
<th>Summary</th> |
| 67 |
<th>Vendor</th> |
| 68 |
</tr> |
| 69 |
</thead> |
| 70 |
[% FOREACH orders_loo IN orders_loop %] |
| 71 |
<tr> |
| 72 |
<td><a href="basket.pl?basketno=[% orders_loo.basketno %]">[% orders_loo.basketname %]</a></td> |
| 73 |
<td><a href="neworderempty.pl?ordernumber=[% orders_loo.ordernumber %]">[% orders_loo.ordernumber %]</a></td> |
| 74 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% orders_loo.biblionumber %]">[% orders_loo.title |html %]</a><br />[% orders_loo.author %]</td> |
| 75 |
<td><a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% orders_loo.id %]">[% orders_loo.name %]</a></td> |
| 76 |
</tr> |
| 77 |
[% END %] |
| 78 |
</table> |
| 79 |
</div> |
| 80 |
<div id="pagersuggestiontable"> |
| 81 |
<h1>Suggestion search results</h1> |
| 82 |
[% IF (numresults_sugg) %] |
| 83 |
[% INCLUDE 'table-pager.inc' perpage='10' %] |
| 84 |
<table id="suggestiontable" class="sorted"> |
| 85 |
[% ELSE %] |
| 86 |
<table> |
| 87 |
[% END %] |
| 88 |
<thead> |
| 89 |
<tr> |
| 90 |
<th>Title</th> |
| 91 |
<th>Author</th> |
| 92 |
<th>ISBN</th> |
| 93 |
<th>Status</th> |
| 94 |
</tr> |
| 95 |
</thead> |
| 96 |
[% FOREACH sugg_loo IN sugg_loop %] |
| 97 |
<tr> |
| 98 |
<td><a href ="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% sugg_loo.suggestionid %]&op=edit"/>[% sugg_loo.title %]</a></td> |
| 99 |
<td>[% sugg_loo.author %]</td> |
| 100 |
<td>[% sugg_loo.isbn %]</td> |
| 101 |
<td>[% sugg_loo.STATUS %]</td> |
| 102 |
</tr> |
| 103 |
[% END %] |
| 104 |
</table> |
| 105 |
</div> |
| 106 |
<div id="pagercatalogtable"> |
| 107 |
<h1>Catalog search results</h1> |
| 108 |
[% IF (numresults_bib) %] |
| 109 |
[% INCLUDE 'table-pager.inc' perpage='10' %] |
| 110 |
<table id="catalogtable" class="sorted"> |
| 111 |
[% ELSE %] |
| 112 |
<table> |
| 113 |
[% END %] |
| 114 |
<thead> |
| 115 |
<tr> |
| 116 |
<th>Title</th> |
| 117 |
<th>Author</th> |
| 118 |
<th>ISBN</th> |
| 119 |
</tr> |
| 120 |
</thead> |
| 121 |
[% FOREACH bib_loo IN bib_loop %] |
| 122 |
<tr> |
| 123 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% bib_loo.biblionumber %]">[% bib_loo.title %]</a></td> |
| 124 |
<td>[% bib_loo.author %]</td> |
| 125 |
<td>[% bib_loo.isbn %]</td> |
| 126 |
</tr> |
| 127 |
[% END %] |
| 128 |
</table> |
| 129 |
</div> |
| 130 |
</div> |
| 131 |
[% ELSE %] |
| 132 |
<p>Please enter search terms.</p> |
| 133 |
[% END %] |
| 134 |
|
| 135 |
</div> |
| 136 |
</div> |
| 137 |
</div> |
| 138 |
<div class="yui-b"> |
| 139 |
<form name="duplicateFinderForm" onsubmit="return checkDuplicateFinderForm(this);" action="/cgi-bin/koha/acqui/duplicatesearch.pl" method="post"> |
| 140 |
<input type="hidden" name="op" value="result" /> |
| 141 |
<fieldset class="brief"> |
| 142 |
<h4>Find duplicates:</h4> |
| 143 |
<ol> |
| 144 |
<li><label for="title">Title: </label> <input type="text" name="title" id="title" value="[% title %]" size="20" /></li> |
| 145 |
<li><label for="author">Author: </label> <input type="text" name="author" id="author" value="[% author %]" size="20" /></li> |
| 146 |
<li><label for="isbn">ISBN: </label> <input type="text" name="isbn" id="isbn" value="[% isbn %]" size="20" /></li> |
| 147 |
</ol> |
| 148 |
<input type="submit" value="Search" /> <a href="/cgi-bin/koha/acqui/duplicatesearch.pl">Clear All</a> |
| 149 |
</fieldset> |
| 150 |
</form> |
| 151 |
[% INCLUDE 'acquisitions-menu.inc' %] |
| 152 |
</div> |
| 153 |
</div> |
| 154 |
[% INCLUDE 'intranet-bottom.inc' %] |
| 155 |
- |