First draft of programmer's templates: a stripped-down version of the templates for use by programmers in adding and testing new functionality. Template-authors can use these templates to track changes that need to be incorporated into their custom templates.
This commit is contained in:
parent
66cbdb6309
commit
5ca2c6fa93
5 changed files with 561 additions and 0 deletions
114
koha-tmpl/intranet-tmpl/prog/en/acqui/acqui-home.tmpl
Normal file
114
koha-tmpl/intranet-tmpl/prog/en/acqui/acqui-home.tmpl
Normal file
|
@ -0,0 +1,114 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Acquisitions<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
|
||||
|
||||
|
||||
<h1>Acquisitions</h1>
|
||||
<!-- TMPL_IF name="nobudget" -->
|
||||
You must define a budget in parameters
|
||||
<!-- TMPL_ELSE -->
|
||||
|
||||
<form action="/cgi-bin/koha/acqui/order.pl" method="post"><table>
|
||||
<caption>Start, Recieve, or Modify Any Order</caption>
|
||||
<tr>
|
||||
<th><label for="supplier">Supplier ID or Name</label></th>
|
||||
<td><input type="text" size="25" name="supplier" id="supplier" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" value="Search" /></form>
|
||||
<p> <form action="histsearch.pl" method="get"><input type="submit" value="Search Order History" /></form></p>
|
||||
|
||||
<!-- /TMPL_IF -->
|
||||
|
||||
|
||||
<form action="/cgi-bin/koha/acqui/acquire.pl" method="post"><table>
|
||||
<caption>Receive or Modify a Periodical Order</caption>
|
||||
<tr>
|
||||
<th><label for="recieve">Title Search</label></th>
|
||||
<td>
|
||||
|
||||
<input type="text" size="25" name="recieve" id="recieve" />
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" value="Search" /></form>
|
||||
|
||||
|
||||
<!-- currencies-->
|
||||
|
||||
<!-- TMPL_IF NAME="loop_currency" -->
|
||||
<table>
|
||||
<caption>Exchange Rates</caption>
|
||||
|
||||
<!-- TMPL_LOOP name="loop_currency" -->
|
||||
<tr>
|
||||
<th>
|
||||
<label for="<!-- TMPL_VAR name="currency" -->"><!-- TMPL_VAR name="currency" --></label>
|
||||
</th>
|
||||
<td> <form action="/cgi-bin/koha/currency.pl">
|
||||
<input type="hidden" name="type" value="change" />
|
||||
<input type="text" size="10" id="<!-- TMPL_VAR name="currency" -->" name="<!-- TMPL_VAR name="currency" -->" value="<!-- TMPL_VAR name="rate" -->" /> </form>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- /TMPL_LOOP -->
|
||||
</table><input type="submit" value="Save Exchange Rate" />
|
||||
<!-- TMPL_ELSE --><form action="/cgi-bin/koha/admin/currency.pl" method="post">
|
||||
<input type="hidden" name="op" value="add_form" /><input type="submit" value="Add Currency" />
|
||||
|
||||
</form><!-- /TMPL_IF -->
|
||||
|
||||
|
||||
<!-- suggestions -->
|
||||
|
||||
<h3>Pending Suggestions</h3>
|
||||
<!-- TMPL_IF name="suggestion" -->
|
||||
<!--TMPL_VAR NAME="suggestion" --> suggestions waiting <a href="/cgi-bin/koha/suggestion/acceptorreject.pl">Manage Suggestions</a>
|
||||
<!-- TMPL_ELSE -->
|
||||
No suggestions waiting
|
||||
<!-- /TMPL_IF -->
|
||||
|
||||
|
||||
<!-- showbudget-->
|
||||
|
||||
<!-- TMPL_IF name="nobudget" -->
|
||||
You must define a budget in parameters
|
||||
<!-- TMPL_ELSE -->
|
||||
<table>
|
||||
<caption>Budgets and Bookfunds</caption>
|
||||
<tr>
|
||||
<th>Budgets</th>
|
||||
<th>Total</th>
|
||||
<th>Spent</th>
|
||||
<th>Comtd</th>
|
||||
<th>Avail</th>
|
||||
</tr>
|
||||
<!-- TMPL_LOOP name="loop_budget" -->
|
||||
<tr>
|
||||
<td><!-- TMPL_VAR name="bookfundname" --></td>
|
||||
<td><!-- TMPL_VAR name="budgetamount" --></td>
|
||||
<td><!-- TMPL_VAR name="spent" --></td>
|
||||
<td><!-- TMPL_VAR name="comtd" --></td>
|
||||
<td><!-- TMPL_VAR name="avail" --></td>
|
||||
</tr>
|
||||
<!-- /TMPL_LOOP -->
|
||||
<tr>
|
||||
<tfoot>
|
||||
<td>Total</td>
|
||||
<td><!-- TMPL_VAR name="total" --></td>
|
||||
<td><!-- TMPL_VAR name="totspent" --></td>
|
||||
<td><!-- TMPL_VAR name="totcomtd" --></td>
|
||||
<td><!-- TMPL_VAR name="totavail" --></td>
|
||||
</tfoot>
|
||||
</tr>
|
||||
</table><!-- /TMPL_IF -->
|
||||
<p> Use your reload button [ctrl + r] to get the most recent figures.
|
||||
Committed figures are approximate only, as exchange rates will affect the amount actually paid.</p>
|
||||
|
||||
|
||||
<h4>Help</h4> <p>To start an acquisition, whether an order, local purchase or donation first search on the supplier, you will be asked to check their details, and enter your name which will set up a "shopping basket" for you. (Why is this you might ask... well because we want to know that it's really you ordering things - not just your computer).</p>
|
||||
<p>To order an item you need to establish whether a biblio already exists for it, and either add an item, or set up a new biblio then add the item. </p>
|
||||
<p>To start a new shopping basket with a new supplier return to this page and just start a new supplier search.</p>
|
||||
<p>To close off a shopping basket click on "view shopping baskets" or search above, and the click on "confirm basket".</p>
|
||||
|
||||
|
||||
<!-- TMPL_INCLUDE name="intranet-bottom.inc" -->
|
155
koha-tmpl/intranet-tmpl/prog/en/acqui/acquire.tmpl
Normal file
155
koha-tmpl/intranet-tmpl/prog/en/acqui/acquire.tmpl
Normal file
|
@ -0,0 +1,155 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Receipt Summary for : <!-- TMPL_VAR NAME="name" --> <!-- TMPL_IF NAME="invoice" -->Invoice, <!-- TMPL_VAR NAME="invoice" --><!-- /TMPL_IF --><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
|
||||
|
||||
|
||||
<h1>Receipt Summary for : <!-- TMPL_VAR NAME="name" --> <!-- TMPL_IF NAME="invoice" -->Invoice, <!-- TMPL_VAR NAME="invoice" --><!-- /TMPL_IF --></h1>
|
||||
|
||||
<ul><li>Invoice: <!-- TMPL_VAR NAME="invoice" --></li>
|
||||
<li>Received By: <!-- TMPL_VAR NAME="user" --></li>
|
||||
<li>Date: <!-- TMPL_VAR NAME="date" --></li>
|
||||
</ul>
|
||||
|
||||
<!-- TMPL_IF name="count" -->
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
function messenger(X,Y,etc){
|
||||
win=window.open("","mess","height="+X+",width="+Y+",screenX=150,screenY=0");
|
||||
win.focus();
|
||||
win.document.close();
|
||||
win.document.write("<body link='#333333' bgcolor='#ffffff' text='#000000'><font size=2><p><br>");
|
||||
win.document.write(etc);
|
||||
win.document.write("<center><form><input type=button onclick='self.close()' value=Close></form></center>");
|
||||
win.document.write("</font></body></html>");
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<form action="/cgi-bin/koha/acqui/finishreceive.pl" method="post">
|
||||
<h1><!-- TMPL_VAR NAME="ordernumber" --> - Receive Order</h1>
|
||||
<ul><li>Shopping Basket For: <!-- TMPL_VAR NAME="name" --></li>
|
||||
<li>Order placed: <!-- TMPL_VAR NAME="date" --></li>
|
||||
</ul>
|
||||
|
||||
<table>
|
||||
<caption>Catalogue Details</caption>
|
||||
<tr>
|
||||
<td>Title *</td>
|
||||
<td><input type="text" size="20" name="title" value="<!-- TMPL_VAR NAME="title" -->" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Author</td>
|
||||
<td><input type="text" size="20" name="author" value="<!-- TMPL_VAR NAME="author" -->" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Copyright Date</td>
|
||||
<td><input type="text" size="20" name="copyright" value="<!-- TMPL_VAR NAME="copyrightdate" -->" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Format</td>
|
||||
<td><!-- TMPL_VAR NAME="CGIitemtype" --></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ISBN</td>
|
||||
<td><input type="text" size="20" name="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Series</td>
|
||||
<td><input type="text" size="20" name="Series" value="<!-- TMPL_VAR NAME="seriestitle" -->" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Branch</td>
|
||||
<td><!-- TMPL_VAR NAME="CGIbranch" --></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Item Barcode *</td>
|
||||
<td><input type="text" size="20" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Volume Info (for serials) *</td>
|
||||
<td><input type="text" size="20" name="volinf" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="hidden" name="biblio" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
|
||||
<input type="hidden" name="ordnum" value="<!-- TMPL_VAR NAME="ordernumber" -->" />
|
||||
<input type="hidden" name="biblioitemnum" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->" />
|
||||
<input type="hidden" name="id" value="<!-- TMPL_VAR NAME="booksellerid" -->" />
|
||||
<input type="hidden" name="freight" value="<!-- TMPL_VAR NAME="freight" -->" />
|
||||
<input type="hidden" name="gst" "value"="<!-- TMPL_VAR NAME="gst" -->" />
|
||||
<!-- TMPL_IF name="catview" -->
|
||||
<input type="submit" name="submit" value="Save" />
|
||||
<!-- TMPL_ELSE -->
|
||||
<a href="/cgi-bin/koha/acqui/newbiblio.pl?ordnum=<!-- TMPL_VAR NAME="ordernumber" -->&id=<!-- TMPL_VAR NAME="booksellerid" -->">Edit</a>
|
||||
<!-- /TMPL_IF -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<caption>Accounting Details</caption>
|
||||
<tr>
|
||||
<td>Bookfund *</td>
|
||||
<td><!-- TMPL_VAR NAME="CGIbookfund" -->
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Quantity Ordered</td>
|
||||
<td><input type="text" size="20" name="quantity" value="<!-- TMPL_VAR NAME="quantity" -->" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Quantity Received *</td>
|
||||
<td><input type="text" size="20" name="quantityrec" value="<!-- TMPL_VAR NAME="quantityreceived" -->" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Replacement Cost</td>
|
||||
<td><input type="text" size="20" name="rrp" value="<!-- TMPL_VAR NAME="rrp" -->" />
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Budgeted Cost </td>
|
||||
<td><input type="text" size="20" name="ecost" value="<!-- TMPL_VAR NAME="ecost" -->" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Actual Cost *</td>
|
||||
<td><input type="text" size="20" name="cost" value="<!-- TMPL_IF name="unitprice"--><!-- TMPL_VAR NAME="unitprice" --><!-- TMPL_ELSE --><!-- TMPL_VAR name="rrp" --><!-- /TMPL_IF -->" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Invoice Number</td>
|
||||
<td>
|
||||
<!-- TMPL_VAR NAME="invoice" -->
|
||||
<input type="hidden" name="invoice" value="<!-- TMPL_VAR NAME="invoice" -->" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Notes</td>
|
||||
<td><input type="text" size="20" name="notes" value="<!-- TMPL_VAR NAME="notes" -->" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<!-- TMPL_ELSE -->
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Basket</th>
|
||||
<th>ISBN</th>
|
||||
<th>Title</th>
|
||||
<th>Author</th>
|
||||
<th>Qty</th>
|
||||
<th>Received</th>
|
||||
</tr>
|
||||
<!-- TMPL_LOOP name="loop" -->
|
||||
<tr>
|
||||
<td><!-- TMPL_VAR NAME="basketno" --></td>
|
||||
<td><!-- TMPL_VAR NAME="isbn" --></td>
|
||||
<td><a href="acquire.pl?recieve=<!-- TMPL_VAR NAME="ordernumber" -->&biblio=<!-- TMPL_VAR NAME="biblionumber" -->&invoice=<!-- TMPL_VAR NAME="invoice" -->&freight=<!-- TMPL_VAR NAME="freight" -->&gst=<!-- TMPL_VAR NAME="gst" -->&id=<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="title" --></a></td>
|
||||
<td><!-- TMPL_VAR NAME="author" --></td>
|
||||
<td><!-- TMPL_VAR NAME="quantity" --></td>
|
||||
<td><!-- TMPL_VAR NAME="quantityrecieved" --></td>
|
||||
</tr>
|
||||
<!-- /TMPL_LOOP -->
|
||||
</table>
|
||||
<!-- /TMPL_IF -->
|
||||
|
||||
<!-- TMPL_INCLUDE name="intranet-bottom.inc" -->
|
120
koha-tmpl/intranet-tmpl/prog/en/acqui/basket.tmpl
Normal file
120
koha-tmpl/intranet-tmpl/prog/en/acqui/basket.tmpl
Normal file
|
@ -0,0 +1,120 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- <!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS -->Shopping Basket (<!-- TMPL_VAR NAME="basketno" -->) for <!-- TMPL_VAR NAME="name" --><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
|
||||
|
||||
<h1><!-- TMPL_UNLESS name="basketno" -->New <!-- /TMPL_UNLESS -->Shopping Basket <!-- TMPL_VAR NAME="basketno" --> for <a href="supplier.pl?id=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="name" --></a></h1><br />
|
||||
<!-- TMPL_UNLESS name="closedate" -->
|
||||
|
||||
<table>
|
||||
<caption>Basket Details</caption>
|
||||
<tr><th>Basket Number:</th><td><!-- TMPL_VAR NAME="basketno" --></td></tr>
|
||||
<tr><th>Managed By:</th><td><!-- TMPL_VAR NAME="authorisedbyname" --></td></tr>
|
||||
<tr><th>Open On:</th><td><!-- TMPL_VAR NAME="creationdate" --></td></tr>
|
||||
<tr><th>For:</th><td>Supplier Id <!-- TMPL_VAR NAME="booksellerid" --></td></tr>
|
||||
<tr><th>Invoice Number:</th><td><!-- TMPL_VAR NAME="booksellerinvoicenumber" --></td></tr>
|
||||
<!-- TMPL_IF name="closedate" --><tr><th>Closed On:</th><td> <!-- TMPL_VAR name="closedate" --></td></tr><!-- /TMPL_IF -->
|
||||
</table><!-- TMPL_UNLESS name="closedate" --><form action="/cgi-bin/koha/acqui/order.pl" method="get"><input type="hidden" name="op" value="close" /><input type="hidden" name="basket" value="<!-- TMPL_VAR NAME="basketno" -->" /><input type="hidden" name="supplier" value="<!-- TMPL_VAR name="booksellerid" -->" /><input type="submit" value="Close this Basket" /></form><!-- /TMPL_UNLESS -->
|
||||
|
||||
<!-- /TMPL_UNLESS -->
|
||||
|
||||
|
||||
<!-- TMPL_IF name="books_loop" -->
|
||||
<table>
|
||||
<caption>Order Details</caption>
|
||||
<tr>
|
||||
<th scope="col">Order</th>
|
||||
<th scope="col"><a href="basket.pl?basket=<!-- TMPL_VAR name="basketno" -->&order=biblioitems.publishercode">Publisher</a></th>
|
||||
<th scope="col">Title</th>
|
||||
<th scope="col">RRP</th>
|
||||
<th scope="col">Est.</th>
|
||||
<th scope="col">Qty.</th>
|
||||
<th scope="col">Total</th>
|
||||
<th scope="col"><a href="basket.pl?basket=<!-- TMPL_VAR name="basketno" -->&order=aqorderbreakdown.bookfundid,biblioitems.publishercode">Fund</a></th>
|
||||
<!-- TMPL_IF name="active" -->
|
||||
<!-- TMPL_UNLESS name="closedate" -->
|
||||
<th scope="col">Remove</th>
|
||||
<!-- /TMPL_UNLESS -->
|
||||
<!-- /TMPL_IF -->
|
||||
</tr>
|
||||
<!-- TMPL_LOOP NAME="books_loop" -->
|
||||
<!-- TMPL_IF NAME="highlight" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
|
||||
<td><!-- TMPL_VAR NAME="ordernumber" --></td>
|
||||
<td><!-- TMPL_VAR NAME="publishercode" --></td>
|
||||
<!-- TMPL_IF name="closedate" -->
|
||||
<td><p>
|
||||
<!-- TMPL_VAR NAME="title" --><br/>
|
||||
<!-- TMPL_VAR NAME="author" -->
|
||||
<!-- TMPL_IF name="isbn"-->- <!-- TMPL_VAR name="isbn" --><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF name="notes" --></p><p><!--TMPL_VAR name="notes" --><!-- /TMPL_IF -->
|
||||
</p>
|
||||
</td>
|
||||
<!-- TMPL_ELSE -->
|
||||
<td>
|
||||
<p>
|
||||
<a href="newbiblio.pl?ordnum=<!-- TMPL_VAR NAME="ordernumber" -->&booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->"><!-- TMPL_VAR NAME="title" --></a><br/>
|
||||
<!-- TMPL_VAR NAME="author" -->
|
||||
<!-- TMPL_IF name="isbn"-->- <!-- TMPL_VAR name="isbn" --><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF name="notes" --></p><p><!--TMPL_VAR name="notes" --><!-- /TMPL_IF -->
|
||||
</p>
|
||||
</td>
|
||||
<!-- /TMPL_IF -->
|
||||
<td><!-- TMPL_VAR NAME="rrp" --></td>
|
||||
<td><!-- TMPL_VAR NAME="ecost" --></td>
|
||||
<td><!-- TMPL_VAR NAME="quantity" --></td>
|
||||
<td><!-- TMPL_VAR NAME="line_total" --></td>
|
||||
<td><!-- TMPL_VAR NAME="bookfundid" --></td>
|
||||
<!-- TMPL_IF name="active" -->
|
||||
<!-- TMPL_UNLESS name="closedate" -->
|
||||
<td>
|
||||
<form action="addorder.pl" method="get"><input type="hidden" name="ordnum" value="<!-- TMPL_VAR NAME="ordernumber" -->" /><input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" /><input type="hidden" name="quantity" value="0" /><input type="hidden" name="biblio" value="<!-- TMPL_VAR NAME="biblionumber" -->" /><input type="submit" class="delete" value="Delete" /></form>
|
||||
</td>
|
||||
<!-- /TMPL_UNLESS -->
|
||||
<!-- /TMPL_IF -->
|
||||
</tr>
|
||||
<!-- /TMPL_LOOP -->
|
||||
|
||||
<tr>
|
||||
<td colspan="2" rowspan="3">
|
||||
<input type="hidden" name="number" value="<!-- TMPL_VAR NAME="count" -->" /><input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->" /> </td>
|
||||
<th>SubTotal</th>
|
||||
<th><!-- TMPL_VAR NAME="sub_total_est" --></th>
|
||||
<th><!-- TMPL_VAR NAME="sub_total" --></td>
|
||||
<th><!-- TMPL_VAR name="qty_total" --></th>
|
||||
<td colspan="2" rowspan="3"> </td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th>GST</th>
|
||||
<th><!-- TMPL_VAR NAME="gist_est" --></th>
|
||||
<th><!-- TMPL_VAR NAME="gist" --></th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>TOTAL (<!-- TMPL_VAR NAME="currency" -->)</th>
|
||||
<th><!-- TMPL_VAR NAME="grand_total_est" --></th>
|
||||
<th><!-- TMPL_VAR NAME="grand_total" --></th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- TMPL_ELSE -->
|
||||
<table>
|
||||
<caption>Order Details</caption>
|
||||
<tr><td>Basket empty</td></tr>
|
||||
</table>
|
||||
<!-- /TMPL_IF -->
|
||||
|
||||
<!-- TMPL_UNLESS name="closedate" -->
|
||||
|
||||
<h2>Add To Order</h2>
|
||||
<form action="/cgi-bin/koha/acqui/newbasket2.pl" method="post">
|
||||
<input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->">
|
||||
<input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->">
|
||||
<ul><li>From an existing record: <input type="text" size="25" name="search"><input type="submit" value="Search"></li>
|
||||
<li><a href="/cgi-bin/koha/acqui/suggestion-select.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->">From a Suggestion</a></li>
|
||||
<li><a href="/cgi-bin/koha/acqui/newbiblio.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->">New Record</a></li>
|
||||
</ul>
|
||||
</form>
|
||||
|
||||
<!-- /TMPL_UNLESS -->
|
||||
|
||||
|
||||
<!-- TMPL_INCLUDE name="intranet-bottom.inc" -->
|
100
koha-tmpl/intranet-tmpl/prog/en/acqui/histsearch.tmpl
Normal file
100
koha-tmpl/intranet-tmpl/prog/en/acqui/histsearch.tmpl
Normal file
|
@ -0,0 +1,100 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Acquisitions: Order Search<!-- TMPL_INCLUDE NAME="doc-head-close-calendar.inc" -->
|
||||
|
||||
|
||||
<h1>Order search</h3>
|
||||
<form action="/cgi-bin/koha/acqui/histsearch.pl" method="post"><table>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th>Title</th>
|
||||
<th>Author</th>
|
||||
<th>Supplier</th>
|
||||
<th>Placed on</th>
|
||||
<th>Recieved on</th>
|
||||
<th>Quantity ordered</th>
|
||||
<th>Unit cost</th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th>Filter By:</th>
|
||||
<th><input type="text" name="title" value="<!-- TMPL_VAR name="title"-->" /></th>
|
||||
<th><input type="text" name="author" value="<!-- TMPL_VAR name="author" -->" /></th>
|
||||
<th><input type="text" name="name" value="<!-- TMPL_VAR name="name" -->" /></th>
|
||||
<th> From <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" border="0" hspace="0" vspace="0" id="openCalendarFrom" style="cursor: pointer;" valign="top">
|
||||
<input type="text" readonly="readonly" size="10" id="from" name="fromplacedon" value="<!-- TMPL_VAR name="from_placed_on" -->">
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function validate1(date) {
|
||||
var day = date.getDate();
|
||||
var month = date.getMonth() + 1;
|
||||
var year = date.getFullYear();
|
||||
var weekDay = date.getDay();
|
||||
var dayMonth = month + '-' + day;
|
||||
var dateString = year + '-' + month + '-' + day;
|
||||
var dateTo = document.getElementById('to').value.split("-");
|
||||
var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
|
||||
if (date > limitDate) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Calendar.setup(
|
||||
{
|
||||
inputField : "from",
|
||||
ifFormat : "%Y-%m-%d",
|
||||
button : "openCalendarFrom",
|
||||
disableFunc : validate1,
|
||||
dateStatusFunc : validate1
|
||||
}
|
||||
);
|
||||
</script>
|
||||
To <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" border="0" />
|
||||
<input readonly="readonly" size="10" id="to" name="toplacedon" value="<!-- TMPL_VAR name="to_placed_on" -->" type="text" />
|
||||
<script type="text/javascript">
|
||||
function validate2(date) {
|
||||
var day = date.getDate();
|
||||
var month = date.getMonth() + 1;
|
||||
var year = date.getFullYear();
|
||||
var weekDay = date.getDay();
|
||||
var dayMonth = month + '-' + day;
|
||||
var dateString = year + '-' + month + '-' + day;
|
||||
var dateFrom = document.getElementById('from').value.split("-");
|
||||
var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
|
||||
if (limitDate > date) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Calendar.setup(
|
||||
{
|
||||
inputField : "to",
|
||||
ifFormat : "%Y-%m-%d",
|
||||
button : "openCalendarTo",
|
||||
disableFunc : validate2,
|
||||
dateStatusFunc : validate2
|
||||
}
|
||||
);
|
||||
</script></th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th><input type="submit" value="Set Filter" /></th>
|
||||
</tr>
|
||||
<!-- TMPL_LOOP NAME="suggestions_loop" -->
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><a href="basket.pl?basket=<!-- TMPL_VAR name="basketno" -->"><!-- TMPL_VAR NAME="title" --></a></td>
|
||||
<td><!-- TMPL_VAR NAME="author" --></td>
|
||||
<td><!-- TMPL_VAR NAME="name" --></td>
|
||||
<td><!-- TMPL_VAR name="creationdate" --></td>
|
||||
<td><!-- TMPL_VAR name="datereceived" --></td>
|
||||
<td><!-- TMPL_VAR name="quantity" --></td>
|
||||
<td><!-- TMPL_VAR name="ecost" --></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<!-- /TMPL_LOOP -->
|
||||
</table></form>
|
||||
|
||||
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|
72
koha-tmpl/intranet-tmpl/prog/en/acqui/newbasket2.tmpl
Normal file
72
koha-tmpl/intranet-tmpl/prog/en/acqui/newbasket2.tmpl
Normal file
|
@ -0,0 +1,72 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Shopping Basket For: <!-- TMPL_VAR name="bookselname" --><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
|
||||
|
||||
<h1>Shopping Basket For: <!-- TMPL_VAR name="bookselname" --></h1>
|
||||
|
||||
<!-- TMPL_IF name ="testdonation" -->
|
||||
<a href="newbiblio.pl?id=<!-- TMPL_VAR name="id" -->&basket=<!-- TMPL_VAR name="basket" -->&sub=<!-- TMPL_VAR name="parsub" -->">Add New Biblio</a>
|
||||
<!-- TMPL_ELSE -->
|
||||
<a href="newdonation.pl?id=<!-- TMPL_VAR name="id" -->&basket=<!-- TMPL_VAR name="basket" -->&sub=<!-- TMPL_VAR name="parsub" -->">Add New Biblio</a>
|
||||
<!-- /TMPL_IF --> | <a href="basket.pl?basket=<!-- TMPL_VAR name="basket" -->">View Basket</a> |
|
||||
<form class="inline" action="/cgi-bin/koha/acqui/newbasket2.pl">
|
||||
<input type="hidden" name="id" value="<!-- TMPL_VAR name="id" -->" />
|
||||
<input type="hidden" name="basket" value="<!-- TMPL_VAR name="basket" -->" />
|
||||
New Search: <input type="text" size="25" name="search" /></form>
|
||||
|
||||
|
||||
<h3>You searched for
|
||||
<!-- TMPL_LOOP name="loopsearch" -->
|
||||
<!-- TMPL_VAR name="key" --> <!-- TMPL_VAR name="value" -->
|
||||
<!-- /TMPL_LOOP -->
|
||||
|
||||
</h3>
|
||||
Results <!-- TMPL_VAR name="dispnum" --> to <!-- TMPL_VAR name="offset2" --> of <!-- TMPL_VAR name="count" --> results displayed.
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Author</th>
|
||||
<th>©</th>
|
||||
<th>Count</th>
|
||||
<th>Location</th>
|
||||
</tr>
|
||||
|
||||
<!-- TMPL_LOOP name="loopresult" -->
|
||||
<tr>
|
||||
<td>
|
||||
<!-- TMPL_IF name="testdonation" -->
|
||||
<a href="/cgi-bin/koha/acqui/newbiblio.pl?sub=<!-- TMPL_VAR name="sub" -->&author=<!-- TMPL_VAR name="author2" -->&copyright=<!-- TMPL_VAR name="copyright" -->&id=<!-- TMPL_VAR name="id" -->&basket=<!-- TMPL_VAR name="basket" -->&biblio=<!-- TMPL_VAR name="biblionumber" -->&title=<!-- TMPL_VAR name="title2" -->">
|
||||
<!-- TMPL_VAR name="title" -->
|
||||
</a>
|
||||
<!-- TMPL_ELSE -->
|
||||
<a href="/cgi-bin/koha/acqui/newdonation.pl?author=<!-- TMPL_VAR name="author2" -->&copyright=<!-- TMPL_VAR name="copyright" -->&id=<!-- TMPL_VAR name="id" -->&basket=<!-- TMPL_VAR name="basket" -->&biblio=<!-- TMPL_VAR name="biblionumber" -->&title=<!-- TMPL_VAR name="title2" -->">
|
||||
<!-- TMPL_VAR name="title" -->
|
||||
</a>
|
||||
<!-- /TMPL_IF -->
|
||||
</td>
|
||||
<td>
|
||||
<a href="/cgi-bin/koha/search.pl?author=<!-- TMPL_VAR name="word" -->&type=<!-- TMPL_VAR name="type" -->">
|
||||
<!-- TMPL_VAR name="author" -->
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<!-- TMPL_VAR name="copyright" -->
|
||||
</td>
|
||||
<td>
|
||||
<!-- TMPL_VAR name="itemcount" -->
|
||||
</td>
|
||||
<td>
|
||||
<!-- TMPL_VAR name="location" -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- /TMPL_LOOP -->
|
||||
|
||||
</table>
|
||||
|
||||
<!-- TMPL_IF name="offsetover" -->
|
||||
<a href="/cgi-bin/koha/acqui/newbasket2.pl?num=<!-- TMPL_VAR name="num" -->&offset=<!-- TMPL_VAR name="offset" -->&type=<!-- TMPL_VAR name="type" -->&id=<!-- TMPL_VAR name="id" -->&basket=<!-- TMPL_VAR name="basket" -->&search=<!-- TMPL_VAR name="title" -->&author=<!-- TMPL_VAR name="author" -->">Next</a>
|
||||
<!-- /TMPL_IF -->
|
||||
|
||||
|
||||
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|
Loading…
Reference in a new issue