|
Lines 1-6
Link Here
|
| 1 |
[% USE KohaDates %] |
1 |
[% USE KohaDates %] |
| 2 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
| 3 |
<title>Koha › Acquisitions › Duplicate Search</title> |
3 |
<title>Koha › Acquisitions › Duplicate finder</title> |
| 4 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
| 5 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> |
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> |
6 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script> |
|
Lines 21-34
$(function(){
Link Here
|
| 21 |
<body id="acq_duplicatesearch" class="acq"> |
21 |
<body id="acq_duplicatesearch" class="acq"> |
| 22 |
[% INCLUDE 'header.inc' %] |
22 |
[% INCLUDE 'header.inc' %] |
| 23 |
[% INCLUDE 'acquisitions-search.inc' %] |
23 |
[% INCLUDE 'acquisitions-search.inc' %] |
| 24 |
|
24 |
<script type="text/javascript"> |
| 25 |
<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 Search</a></div> |
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> |
| 26 |
<div id="doc3" class="yui-t2"> |
40 |
<div id="doc3" class="yui-t2"> |
| 27 |
<div id="bd"> |
41 |
<div id="bd"> |
| 28 |
<div id="yui-main"> |
42 |
<div id="yui-main"> |
| 29 |
<div class="yui-b"> |
43 |
<div class="yui-b"> |
| 30 |
|
44 |
|
| 31 |
<h1>Duplicate Search</h1> |
45 |
<h1>Duplicate finder</h1> |
|
|
46 |
<p>Please note that search can be slow on a large database.</p> |
| 32 |
<div id="acq_duplicatesearch"> |
47 |
<div id="acq_duplicatesearch"> |
| 33 |
[% IF ( result ) %] |
48 |
[% IF ( result ) %] |
| 34 |
<div id="alerttabs" class="toptabs"> |
49 |
<div id="alerttabs" class="toptabs"> |
|
Lines 46-53
$(function(){
Link Here
|
| 46 |
[% END %] |
61 |
[% END %] |
| 47 |
<thead> |
62 |
<thead> |
| 48 |
<tr> |
63 |
<tr> |
| 49 |
<th>Basket Name</th> |
64 |
<th>Basket name</th> |
| 50 |
<th>Order Number</th> |
65 |
<th>Order number</th> |
| 51 |
<th>Summary</th> |
66 |
<th>Summary</th> |
| 52 |
<th>Vendor</th> |
67 |
<th>Vendor</th> |
| 53 |
</tr> |
68 |
</tr> |
|
Lines 63-69
$(function(){
Link Here
|
| 63 |
</table> |
78 |
</table> |
| 64 |
</div> |
79 |
</div> |
| 65 |
<div id="pagersuggestiontable"> |
80 |
<div id="pagersuggestiontable"> |
| 66 |
<h1>Suggestion Search Results</h1> |
81 |
<h1>Suggestion search results</h1> |
| 67 |
[% IF (numresults_sugg) %] |
82 |
[% IF (numresults_sugg) %] |
| 68 |
[% INCLUDE 'table-pager.inc' perpage='10' %] |
83 |
[% INCLUDE 'table-pager.inc' perpage='10' %] |
| 69 |
<table id="suggestiontable" class="sorted"> |
84 |
<table id="suggestiontable" class="sorted"> |
|
Lines 89-95
$(function(){
Link Here
|
| 89 |
</table> |
104 |
</table> |
| 90 |
</div> |
105 |
</div> |
| 91 |
<div id="pagercatalogtable"> |
106 |
<div id="pagercatalogtable"> |
| 92 |
<h1>Catalog Search Results</h1> |
107 |
<h1>Catalog search results</h1> |
| 93 |
[% IF (numresults_bib) %] |
108 |
[% IF (numresults_bib) %] |
| 94 |
[% INCLUDE 'table-pager.inc' perpage='10' %] |
109 |
[% INCLUDE 'table-pager.inc' perpage='10' %] |
| 95 |
<table id="catalogtable" class="sorted"> |
110 |
<table id="catalogtable" class="sorted"> |
|
Lines 114-140
$(function(){
Link Here
|
| 114 |
</div> |
129 |
</div> |
| 115 |
</div> |
130 |
</div> |
| 116 |
[% ELSE %] |
131 |
[% ELSE %] |
| 117 |
<p>No Result</p> |
132 |
<p>Please enter search terms.</p> |
| 118 |
[% END %] |
133 |
[% END %] |
| 119 |
|
134 |
|
| 120 |
</div> |
135 |
</div> |
| 121 |
</div> |
136 |
</div> |
| 122 |
</div> |
137 |
</div> |
| 123 |
<div class="yui-b"> |
138 |
<div class="yui-b"> |
| 124 |
<form name="form" action="/cgi-bin/koha/acqui/duplicatesearch.pl" method="post"> |
139 |
<form name="duplicateFinderForm" onsubmit="return checkDuplicateFinderForm(this);" action="/cgi-bin/koha/acqui/duplicatesearch.pl" method="post"> |
| 125 |
<input type="hidden" name="op" value="result" /> |
140 |
<input type="hidden" name="op" value="result" /> |
| 126 |
<fieldset class="brief"> |
141 |
<fieldset class="brief"> |
| 127 |
<h4>Filter Results:</h4> |
142 |
<h4>Find duplicates:</h4> |
| 128 |
<ol> |
143 |
<ol> |
| 129 |
<li><label for="title">Title: </label> <input type="text" name="title" id="title" value="[% title %]" size="20" /></li> |
144 |
<li><label for="title">Title: </label> <input type="text" name="title" id="title" value="[% title %]" size="20" /></li> |
| 130 |
<li><label for="author">Author: </label> <input type="text" name="author" id="author" value="[% author %]" size="20" /></li> |
145 |
<li><label for="author">Author: </label> <input type="text" name="author" id="author" value="[% author %]" size="20" /></li> |
| 131 |
<li><label for="isbn">ISBN: </label> <input type="text" name="isbn" id="isbn" value="[% isbn %]" size="20" /></li> |
146 |
<li><label for="isbn">ISBN: </label> <input type="text" name="isbn" id="isbn" value="[% isbn %]" size="20" /></li> |
| 132 |
<li><label for="title"></label><input type="hidden" name="idx" id="title" value="ti" /></li> |
|
|
| 133 |
<li><input type="hidden" name="q" id="title1" value="[% title %]" /></li> |
| 134 |
<li><label for="author"></label><input type="hidden" name="idx" id="author" value="au" /></li> |
| 135 |
<li><input type="hidden" name="q" id="author1" value="[% author %]" /></li> |
| 136 |
<li><label for="isbn"></label><input type="hidden" name="idx" id="isbn" value="nb" /></li> |
| 137 |
<input type="hidden" name="q" id="isbn1" value="[% isbn %]" /> |
| 138 |
</ol> |
147 |
</ol> |
| 139 |
<input type="submit" value="Search" /> <a href="/cgi-bin/koha/acqui/duplicatesearch.pl">Clear All</a> |
148 |
<input type="submit" value="Search" /> <a href="/cgi-bin/koha/acqui/duplicatesearch.pl">Clear All</a> |
| 140 |
</fieldset> |
149 |
</fieldset> |
| 141 |
- |
|
|