use C4::Search;
use MARC::Record;
use C4::Koha;
+
###TODO To rewrite in order to use SearchAuthorities
=head1
} else {
$to = (($startfrom+1)*$resultsperpage);
}
+ my $link="plugin_launcher.pl?plugin_name=unimarc_field_210c.pl&authtypecode=EDITORS&and_or=and&operator=contains&".join("&",map {"value=".$_} @value)."&op=do_search&type=intranet&index=$index";
+ warn "$link ,".getnbpages($total, $resultsperpage);
$template->param(result => $results) if $results;
$template->param('index' => $query->param('index'));
$template->param(startfrom=> $startfrom,
numbers=>\@numbers,
authtypecode =>$authtypecode,
resultstring =>$value[0],
+ pagination_bar => pagination_bar(
+ $link,
+ getnbpages($total, $resultsperpage),
+ $startfrom,
+ 'startfrom'
+ ),
);
} else {
($template, $loggedinuser, $cookie)
</div>
<div id="bloc25">
<div id="resultnumber">
- <p>
- <!-- TMPL_IF name="displayprev" -->
- <a href="cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_210c.pl&startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&&authtypecode=EDITORS&and_or=and&operator=contains&value=<!-- TMPL_VAR NAME="resultstring" -->&op=do_search&type=intranet&index=<!-- TMPL_VAR name="index" -->">
- <img src="/intranet-tmpl/default/images/numbers/prev.gif" border="0">
- </a>
- <!-- /TMPL_IF -->
- <!-- TMPL_LOOP NAME="numbers" -->
- <!-- TMPL_IF name="highlight" -->
- <img src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->-highlight.gif">
- <!-- TMPL_ELSE -->
- <a href="cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_210c.pl&startfrom=<!-- TMPL_VAR NAME="startfrom" -->&authtypecode=EDITORS&and_or=and&operator=contains&value=<!-- TMPL_VAR NAME="resultstring" -->&op=do_search&type=intranet&index=<!-- TMPL_VAR name="index" -->">
- <img src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->.gif" border="0"></a>
- <!-- /TMPL_IF -->
- <!-- /TMPL_LOOP -->
- <!-- TMPL_IF name="displaynext" -->
- <a href="cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_210c.pl&startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&authtypecode=EDITORS&and_or=and&operator=contains&value=<!-- TMPL_VAR NAME="resultstring" -->&op=do_search&type=intranet&index=<!-- TMPL_VAR name="index" -->">
- <img src="/intranet-tmpl/default/images/numbers/next.gif" border="0"></a>
- <!-- /TMPL_IF -->
- </p>
+ <div class="paginationBar">
+ <!--TMPL_VAR Name="pagination_bar"-->
+ </div>
<p>
<!-- TMPL_IF name="total" -->
<b>Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --></b><br><br>
</div>
<div id="resultnumber">
- <p>
- <!-- TMPL_IF name="displayprev" -->
- <a href="auth_finder.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&&authtypecode=EDITORS&and_or=and&operator=contains&value=<!-- TMPL_VAR NAME="resultstring" -->&op=do_search&type=intranet">
- <img src="/intranet-tmpl/default/images/numbers/prev.gif" border="0">
- </a>
- <!-- /TMPL_IF -->
- <!-- TMPL_LOOP NAME="numbers" -->
- <!-- TMPL_IF name="highlight" -->
- <img src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->-highlight.gif">
- <!-- TMPL_ELSE -->
- <a href="auth_finder.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&authtypecode=EDITORS&and_or=and&operator=contains&value=<!-- TMPL_VAR NAME="resultstring" -->&op=do_search&type=intranet">
- <img src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->.gif" border="0"></a>
- <!-- /TMPL_IF -->
- <!-- /TMPL_LOOP -->
- <!-- TMPL_IF name="displaynext" -->
- <a href="auth_finder.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&&authtypecode=EDITORS&and_or=and&operator=contains&value=<!-- TMPL_VAR NAME="resultstring" -->&op=do_search&type=intranet">
- <img src="/intranet-tmpl/default/images/numbers/next.gif" border="0"></a>
- <!-- /TMPL_IF -->
- </p>
+ <div class="paginationBar">
+ <!--TMPL_VAR Name="pagination_bar"-->
+ </div>
</div>
</div>
</div>