Lines 7-16
Link Here
|
7 |
<!-- TMPL_INCLUDE NAME="greybox.inc" --> |
7 |
<!-- TMPL_INCLUDE NAME="greybox.inc" --> |
8 |
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" --> |
8 |
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" --> |
9 |
<!-- TMPL_INCLUDE NAME="background-job.inc" --> |
9 |
<!-- TMPL_INCLUDE NAME="background-job.inc" --> |
|
|
10 |
<script type="text/JavaScript" language="JavaScript"> |
11 |
//<![CDATA[ |
12 |
$(document).ready(function(){ |
13 |
$("#staged-record-matching-rules select").change(function(){ |
14 |
var str = $(this).attr("id"); |
15 |
$("#reset_"+str).parent().show(); |
16 |
}); |
17 |
$("a.reset").click(function(){ |
18 |
var str = $(this).attr("id"); |
19 |
str = str.replace("reset_","") |
20 |
$("#"+str+" option[selected='selected']").attr("selected","selected"); |
21 |
$(this).parent().hide(); |
22 |
}); |
23 |
}); |
24 |
//]]> |
25 |
</script> |
10 |
<style type="text/css"> |
26 |
<style type="text/css"> |
11 |
#jobpanel,#jobstatus,#jobfailed { display : none; } |
27 |
#jobpanel,#jobstatus,#jobfailed { display : none; } |
12 |
#jobstatus { margin:.4em; } |
28 |
#jobstatus { margin:.4em; } |
13 |
#jobprogress{ width:200px;height:10px;border:1px solid #666;background:url('/intranet-tmpl/prog/img/progress.png') -300px 0px no-repeat; }</style> |
29 |
#jobprogress{ width:200px;height:10px;border:1px solid #666;background:url('/intranet-tmpl/prog/img/progress.png') -300px 0px no-repeat; } span.change-status { font-style:italic; color:#666; display:none; }</style> |
14 |
</head> |
30 |
</head> |
15 |
<body> |
31 |
<body> |
16 |
<!-- TMPL_INCLUDE NAME="header.inc" --> |
32 |
<!-- TMPL_INCLUDE NAME="header.inc" --> |
Lines 59-120
Link Here
|
59 |
<!-- /TMPL_UNLESS --> |
75 |
<!-- /TMPL_UNLESS --> |
60 |
|
76 |
|
61 |
<!-- TMPL_IF name="batch_info" --> |
77 |
<!-- TMPL_IF name="batch_info" --> |
62 |
<fieldset class="rows"> |
|
|
63 |
<ol> |
64 |
<li><span class="label">File name</span> <!-- TMPL_VAR name="file_name" --></li> |
65 |
<li><span class="label">Comments</span> <!-- TMPL_IF NAME="comments" --><!-- TMPL_VAR name="comments" -->(none)<!-- /TMPL_IF --></li> |
66 |
<li><span class="label">Staged</span> <!-- TMPL_VAR name="upload_timestamp" --></li> |
67 |
<li><span class="label">Status</span> <!-- TMPL_VAR name="import_status" --></li> |
68 |
<li><span class="label">Matching rule applied</span> |
69 |
<!-- TMPL_IF name="current_matcher_id" --> |
70 |
<!-- TMPL_VAR name="current_matcher_code" --> (<!-- TMPL_VAR name="current_matcher_description" -->) |
71 |
<!-- TMPL_ELSE --> |
72 |
No matching rule in effect |
73 |
<!-- /TMPL_IF --> |
74 |
</li> |
75 |
<li><span class="label">Action if matching record found</span> <!-- TMPL_VAR NAME="overlay_action" --></li> |
76 |
<li><span class="label">Action if no match found</span> <!-- TMPL_VAR NAME="nomatch_action" --></li> |
77 |
<li><span class="label">Item processing</span> <!-- TMPL_VAR NAME="item_action" --></li> |
78 |
</ol> |
79 |
</fieldset> |
80 |
|
78 |
|
81 |
<!-- TMPL_IF name="can_commit" --> |
79 |
<!-- TMPL_IF name="can_commit" --> |
82 |
<div id="matchingrules"> |
80 |
<form action="<!-- TMPL_VAR name="script_name" -->" method="post"> |
83 |
<form action="<!-- TMPL_VAR name="script_name" -->" method="post"> |
81 |
<input type="hidden" name="op" value="redo-matching" /> |
84 |
<fieldset class="rows"> |
82 |
<input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" /> |
85 |
<input type="hidden" name="op" value="redo-matching" /> |
83 |
<input type="hidden" name="current_matcher_id" value="<!-- TMPL_VAR name="current_matcher_id" -->" /> |
86 |
<input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" /> |
84 |
<!-- /TMPL_IF --> |
87 |
<input type="hidden" name="current_matcher_id" value="<!-- TMPL_VAR name="current_matcher_id" -->" /> |
85 |
|
88 |
<ol> |
|
|
89 |
<li><label for="new_matcher_id">New matching rule</label> |
90 |
<select name="new_matcher_id" id="new_matcher_id"> |
91 |
<option value="">Do not look for matching records</option> |
92 |
<!-- TMPL_LOOP name="available_matchers" --> |
93 |
<!-- TMPL_IF name="selected" --> |
94 |
<option value="<!-- TMPL_VAR name="matcher_id" -->" selected="selected"> |
95 |
<!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->) |
96 |
</option> |
97 |
<!-- TMPL_ELSE --> |
98 |
<option value="<!-- TMPL_VAR name="matcher_id" -->"> |
99 |
<!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->) |
100 |
</option> |
101 |
<!-- /TMPL_IF --> |
102 |
<!-- /TMPL_LOOP --> |
103 |
</select> |
104 |
</li> |
105 |
<li><label for="overlay_action">Action if matching record found</label> |
106 |
<!-- TMPL_INCLUDE NAME="tools-overlay-action.inc" --> |
107 |
</li> |
108 |
<li><label for="overlay_action">Action if no match found</label> |
109 |
<!-- TMPL_INCLUDE NAME="tools-nomatch-action.inc" --> |
110 |
</li> |
111 |
<li><label for="overlay_action">Item processing</label> |
112 |
<!-- TMPL_INCLUDE NAME="tools-item-action.inc" --> |
113 |
</li> |
114 |
</ol> |
115 |
<fieldset class="action"><input type="submit" class="button" value="Apply different matching rule" /></fieldset> |
116 |
</fieldset> |
117 |
</form> |
118 |
<!-- TMPL_IF name="rematch_attempted" --> |
86 |
<!-- TMPL_IF name="rematch_attempted" --> |
119 |
<!-- TMPL_IF name="rematch_failed" --> |
87 |
<!-- TMPL_IF name="rematch_failed" --> |
120 |
<div class="dialog alert">Failed to apply different matching rule</div> |
88 |
<div class="dialog alert">Failed to apply different matching rule</div> |
Lines 133-140
Link Here
|
133 |
<!-- TMPL_IF name="changed_item_action" --> |
101 |
<!-- TMPL_IF name="changed_item_action" --> |
134 |
<div class="dialog message">Changed item processing option</div> |
102 |
<div class="dialog message">Changed item processing option</div> |
135 |
<!-- /TMPL_IF --> |
103 |
<!-- /TMPL_IF --> |
136 |
</div> |
104 |
|
137 |
<!-- /TMPL_IF --> |
105 |
<fieldset class="rows" id="staged-record-matching-rules"> |
|
|
106 |
<ol> |
107 |
<li><span class="label">File name:</span> <!-- TMPL_VAR name="file_name" --></li> |
108 |
<li><span class="label">Comments:</span> <!-- TMPL_IF NAME="comments" --><!-- TMPL_VAR name="comments" -->(none)<!-- /TMPL_IF --></li> |
109 |
<li><span class="label">Staged:</span> <!-- TMPL_VAR name="upload_timestamp" --></li> |
110 |
<li><span class="label">Status:</span> <!-- TMPL_VAR name="import_status" --></li> |
111 |
<li> |
112 |
<!-- TMPL_IF NAME="can_commit" --><label for="new_matcher_id">Matching rule applied:</label><select name="new_matcher_id" id="new_matcher_id"> |
113 |
<option value="">Do not look for matching records</option> |
114 |
<!-- TMPL_LOOP name="available_matchers" --> |
115 |
<!-- TMPL_IF name="selected" --> |
116 |
<option value="<!-- TMPL_VAR name="matcher_id" -->" selected="selected"> |
117 |
<!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->) |
118 |
</option> |
119 |
<!-- TMPL_ELSE --> |
120 |
<option value="<!-- TMPL_VAR name="matcher_id" -->"> |
121 |
<!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->) |
122 |
</option> |
123 |
<!-- /TMPL_IF --> |
124 |
<!-- /TMPL_LOOP --> |
125 |
</select> <span class="change-status">Changed. <a href="#" class="reset" id="reset_new_matcher_id">Reset</a></span><!-- TMPL_ELSE --><span class="label">Matching rule applied</span><!-- TMPL_IF name="current_matcher_id" --> |
126 |
<!-- TMPL_VAR name="current_matcher_code" --> (<!-- TMPL_VAR name="current_matcher_description" -->) |
127 |
<!-- TMPL_ELSE --> |
128 |
No matching rule in effect |
129 |
<!-- /TMPL_IF --><!-- /TMPL_IF --> |
130 |
</li> |
131 |
<li><!-- TMPL_IF NAME="can_commit" --> <label for="overlay_action">Action if matching record found:</label> |
132 |
<!-- TMPL_INCLUDE NAME="tools-overlay-action.inc" --> <span class="change-status">Changed. <a href="#" class="reset" id="reset_overlay_action">Reset</a></span><!-- TMPL_ELSE --><span class="label">Action if matching record found:</span><!-- TMPL_VAR NAME="overlay_action" --><!-- /TMPL_IF --></li> |
133 |
|
134 |
<li><!-- TMPL_IF NAME="can_commit" --><label for="nomatch_action">Action if no match found:</label> |
135 |
<!-- TMPL_INCLUDE NAME="tools-nomatch-action.inc" --> <span class="change-status">Changed. <a href="#" class="reset" id="reset_nomatch_action">Reset</a></span><!-- TMPL_ELSE --><span class="label">Action if no match found:</span><!-- TMPL_VAR NAME="nomatch_action" --><!-- /TMPL_IF --></li> |
136 |
|
137 |
<li><!-- TMPL_IF NAME="can_commit" --><label for="item_action">Item processing:</label> |
138 |
<!-- TMPL_INCLUDE NAME="tools-item-action.inc" --> <span class="change-status">Changed. <a href="#" class="reset" id="reset_item_action">Reset</a></span><!-- TMPL_ELSE --><span class="label">Item processing:</span><!-- TMPL_VAR NAME="item_action" --><!-- /TMPL_IF --></li> |
139 |
</ol> |
140 |
<!-- TMPL_IF NAME="can_commit" --><fieldset class="action"><input type="submit" value="Apply different matching rules" class="button" /></fieldset></form><!-- /TMPL_IF --> |
141 |
</fieldset> |
142 |
|
143 |
|
138 |
<div> |
144 |
<div> |
139 |
<!-- TMPL_IF name="can_commit" --> |
145 |
<!-- TMPL_IF name="can_commit" --> |
140 |
<form action="<!-- TMPL_VAR name="script_name" -->" method="post"> |
146 |
<form action="<!-- TMPL_VAR name="script_name" -->" method="post"> |
Lines 142-148
Link Here
|
142 |
<input type="hidden" name="runinbackground" value="" /> |
148 |
<input type="hidden" name="runinbackground" value="" /> |
143 |
<input type="hidden" name="completedJobID" value="" /> |
149 |
<input type="hidden" name="completedJobID" value="" /> |
144 |
<input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" /> |
150 |
<input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" /> |
145 |
<fieldset class="action"><input type="submit" class="button" name="mainformsubmit" value="Import into catalog" onclick="return submitBackgroundJob(this.form);" /></fieldset> |
151 |
<fieldset class="action"><input type="submit" class="button" name="mainformsubmit" value="Import this batch into the catalog" onclick="return submitBackgroundJob(this.form);" /></fieldset> |
146 |
</form> |
152 |
</form> |
147 |
<div id="jobpanel"><div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div> |
153 |
<div id="jobpanel"><div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div> |
148 |
<div id="jobfailed"></div></div> |
154 |
<div id="jobfailed"></div></div> |
Lines 263-269
Page
Link Here
|
263 |
|
269 |
|
264 |
</tr> |
270 |
</tr> |
265 |
<!-- TMPL_LOOP name="biblio_list" --> |
271 |
<!-- TMPL_LOOP name="biblio_list" --> |
266 |
<tr> |
272 |
<!-- TMPL_UNLESS NAME="__odd__" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_UNLESS --> |
267 |
<td><!-- TMPL_VAR name="record_sequence"--></td> |
273 |
<td><!-- TMPL_VAR name="record_sequence"--></td> |
268 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=<!-- TMPL_VAR name='import_record_id' -->" rel="gb_page_center[600,500]"><!-- TMPL_VAR name="citation"--></a></td> |
274 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=<!-- TMPL_VAR name='import_record_id' -->" rel="gb_page_center[600,500]"><!-- TMPL_VAR name="citation"--></a></td> |
269 |
<td><!-- TMPL_VAR name="status"--></td> |
275 |
<td><!-- TMPL_VAR name="status"--></td> |
270 |
- |
|
|