Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials/member-search.tmpl
Garry Collum d2d2acd4a6 Bug 4200: Fixes adding a member to a routing list after filtering results.
Adds a hidden field for subscriptionid to the filter form.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-03 07:35:40 -04:00

84 lines
3.8 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Member Search &rsaquo; <!-- TMPL_VAR name="bookselname" --></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript">
<!--
function add_member(subscriptionid,borrowernumber){
var myurl = "routing.pl?subscriptionid="+subscriptionid+"&borrowernumber="+borrowernumber+"&op=add";
window.opener.location.href = myurl;
}
//-->
</script>
<style type="text/css">
#custom-doc { width:36.46em;*width:35.53em;min-width:430px; margin:auto; text-align:left; padding: 1em; }
</style>
</head>
<body>
<div id="custom-doc" class="yui-t7">
<div id="bd">
<div id="yui-main">
<div id="search" class="yui-g">
<form action="<!--TMPL_VAR Name="actionname"-->" method="get">
<input type="hidden" name="subscriptionid" id="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid"-->" />
<fieldset class="rows">
<legend> Filter :</legend>
<ol>
<li><label for="member">Name:</label> <input type="hidden" name="surname" value="<!-- TMPL_VAR name="surname"-->" />
<input type="text" name="member" id="member" value="<!-- TMPL_VAR name="member"-->" /></li>
<li><label for="branchcode"> Library :</label><select name="branchcode" id="branchcode">
<option value="">Any</option><!-- TMPL_LOOP name="branchloop" -->
<!-- TMPL_IF NAME="selected" -->
<option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="branchname" --></option><!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="branchname" --></option><!-- /TMPL_IF -->
<!-- /TMPL_LOOP --></select></li>
<li><label for="categorycode">Category:</label><select name="categorycode" id="categorycode">
<option value="">Any</option><!-- TMPL_LOOP name="categoryloop" -->
<!-- TMPL_IF NAME="selected" -->
<option value="<!-- TMPL_VAR name="categorycode" -->" selected="selected"><!-- TMPL_VAR name="description" --></option><!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR name="categorycode" -->"><!-- TMPL_VAR name="description" --></option><!-- /TMPL_IF -->
<!-- /TMPL_LOOP --></select></li>
</ol>
<fieldset class="action"><input type="submit" value="Search" /></fieldset>
</fieldset>
</form>
</div>
<!-- TMPL_IF NAME="resultsloop" -->
<div id="searchheader" style="margin-top:.7em;"> <h3>Results <!-- TMPL_VAR Name ="from" --> to <!-- TMPL_VAR Name ="to" --> of <!-- TMPL_VAR Name ="numresults" --> found for <!--TMPL_IF Name="member"-->'<span class="ex"><!-- TMPL_VAR NAME="member" --></span>'<!--/TMPL_IF--><!--TMPL_IF Name="surname"-->'<span class="ex"><!-- TMPL_VAR NAME="surname" --></span>'<!--/TMPL_IF--></h3></div>
<div class="searchresults">
<table id="memberresultst">
<thead>
<tr>
<th>Card</th>
<th>Name</th>
<th>Library</th>
<th>Add</th>
</tr>
</thead>
<tbody>
<!-- TMPL_LOOP NAME="resultsloop" -->
<!--TMPL_IF Name="__odd__"--><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
<td><!-- TMPL_VAR NAME="cardnumber" --> </td>
<td><!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" --> </td>
<td><!-- TMPL_VAR NAME="branchcode" --> </td>
<td><a onclick="add_member(<!-- TMPL_VAR
NAME="subscriptionid" -->,<!-- TMPL_VAR NAME="borrowernumber" -->); return false" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;op=add">Add</a></td></tr>
<!-- /TMPL_LOOP -->
</tbody>
</table>
<div class="pages"><!--TMPL_IF Name="multipage"--><!--TMPL_VAR Name="paginationbar" --><!--/TMPL_IF--></div>
</div>
<!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="searching" -->
<p>No results found</p>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<fieldset class="action"><a href="#" class="button close">Close</a></fieldset>
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->