Initial review in upgrading templates to 2.2
authoroleonard <oleonard>
Mon, 1 Nov 2004 22:52:53 +0000 (22:52 +0000)
committeroleonard <oleonard>
Mon, 1 Nov 2004 22:52:53 +0000 (22:52 +0000)
13 files changed:
koha-tmpl/intranet-tmpl/npl/en/bull/bull-home.tmpl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/bull/order.tmpl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/bull/receipt-search-result.tmpl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/bull/result.tmpl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/bull/search-supply.tmpl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/bull/search.tmpl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/bull/searchresultlist.tmpl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/bull/serial-issues.tmpl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/bull/statecollection.tmpl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/bull/subscription-add.tmpl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/bull/subscription-bib-search.tmpl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/bull/subscription-detail.tmpl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/npl/en/bull/subscription-renew.tmpl [new file with mode: 0644]

diff --git a/koha-tmpl/intranet-tmpl/npl/en/bull/bull-home.tmpl b/koha-tmpl/intranet-tmpl/npl/en/bull/bull-home.tmpl
new file mode 100644 (file)
index 0000000..b2274e5
--- /dev/null
@@ -0,0 +1,50 @@
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Serials Subscriptions<!-- TMPL_INCLUDE NAME="doc-head-circ-close.inc" -->
+<!-- TMPL_INCLUDE NAME="masthead.inc" -->
+<!-- TMPL_INCLUDE NAME="serials-topmenu.inc" -->
+<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
+
+<div id="main">
+<form action="bull-home.pl" method="post">
+       <table>
+               <caption>Serials Subscriptions</caption>
+               <tr>
+                       <th>Title</th>
+                       <th>ISSN</th>
+                       <th colspan="2">&nbsp;</th>
+               </tr>
+               <!-- TMPL_IF NAME="subscriptions" -->
+               <tr>
+                       <td>
+                               <input type="text" size="40" maxlength="40" name="title" value="<!-- TMPL_VAR name="title" -->">
+                       </td>
+                       <td>
+                               <input type="text" size="11" maxlength="11" name="ISSN" value="<!-- TMPL_VAR name="ISSN" -->">
+                       </td>
+                       <td colspan="3">
+                               <input type="submit" value="Filter" class="submit">
+                       </td>
+               </tr><!-- /TMPL_IF -->
+               <!-- TMPL_IF NAME="subscriptions" -->
+               <!-- TMPL_LOOP name="subscriptions" -->
+                       <tr>
+                               <td>
+                                       <!-- TMPL_VAR name="title" -->
+                               </td>
+                               <td>
+                                       <!-- TMPL_VAR name="ISSN" -->
+                               </td>
+                               <td>
+                                       <a href="bull/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">Detail</a>
+                                       <a href="bull/statecollection.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">Recieve</a>
+                               </td>
+                       </tr>
+               <!-- /TMPL_LOOP -->
+               <!-- TMPL_ELSE -->
+               <tr><td colspan="3">There are no subscriptions.</td></tr>
+               <!-- /TMPL_IF -->
+       </table></form>
+       <a href="/cgi-bin/koha/bull/subscription-add.pl">Add subscription</a>
+</div>
+
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
+
diff --git a/koha-tmpl/intranet-tmpl/npl/en/bull/order.tmpl b/koha-tmpl/intranet-tmpl/npl/en/bull/order.tmpl
new file mode 100644 (file)
index 0000000..a1ce4c0
--- /dev/null
@@ -0,0 +1,28 @@
+<!-- TMPL_INCLUDE NAME="main-top.inc" -->
+<div id="main-compact">
+       <h1>Supplier Search Results</h1>
+               <div class="results">You searched for  <span class="ex"><!-- TMPL_VAR name="supplier" --></span>. <!-- TMPL_VAR name="count" --> results found</div>
+       <table>
+                       <tr>
+                               <th>Supplier Name</th>
+                               <th>Select</th>
+                       </tr>
+                       <!-- TMPL_LOOP name="loop_suppliers" -->
+                               <tr>
+                                       <td><!-- TMPL_VAR name="name" --></td>
+                                       <td><form action="#" method="get"><input type="button" class="submit" value="Choose" onclick="GetIt(<!-- TMPL_VAR name="aqbooksellerid" -->,'<!-- TMPL_VAR name="name" -->'); return false;" /></form></td>
+                               </tr>
+                       <!-- /TMPL_LOOP -->
+               </table>
+</div>
+
+<script language="Javascript" type="text/javascript">
+
+function GetIt(aqbooksellerid,name)
+{
+  opener.document.f.aqbooksellerid.value = aqbooksellerid;
+  opener.document.f.aqbooksellername.value = name;
+  self.close();
+}
+</script>
+<!-- TMPL_INCLUDE name="intranet-bottom.inc" -->
diff --git a/koha-tmpl/intranet-tmpl/npl/en/bull/receipt-search-result.tmpl b/koha-tmpl/intranet-tmpl/npl/en/bull/receipt-search-result.tmpl
new file mode 100644 (file)
index 0000000..ca23458
--- /dev/null
@@ -0,0 +1,77 @@
+<!-- TMPL_INCLUDE NAME="main-top-blank.inc" -->
+<div>
+       <h1 class="authority">Serial search results</h1>
+       <div id="resultnumber">
+               <p>
+                       <!-- TMPL_IF NAME=displayprev -->
+                               <a href=search.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search>
+                                       <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=search.pl?startfrom=<!-- TMPL_VAR NAME=startfrom -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search><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=search.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search><img src="/intranet-tmpl/default/images/numbers/next.gif" border=0></a>
+                               <!-- /TMPL_IF -->
+               </p>
+
+       </div>
+       <div id="resultlist">
+               <table>
+                       <tr>
+                               <th class="authority">Serial</th>
+                               <th class="authority">View</th>
+                               <th class="authority">State of collection</th>
+                               <th class="authority">Delete</th>
+                       </tr>
+                       <!-- TMPL_LOOP name="result" -->
+                               <tr>
+                                       <td><!-- TMPL_VAR name="serial" --></td>
+
+                                       <td>
+               <div align="center">                            <a href="subscription-detail.pl?suscr=<!-- TMPL_VAR name="subscriptionid" -->">
+                                                       <img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR name="theme" -->/images/fileopen.png"  width="32" hspace="0" vspace="0" border="0" alt="Authority number <!-- TMPL_VAR name="authid" -->" title="Serial number<!-- TMPL_VAR name="subscriptionid" -->">
+                                               </a> </div>
+                                       </td>
+       <td><div align="center"><a href="statecollection.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&serial=<!-- TMPL_VAR name="serial" -->"> 
+
+                                                       <img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR name="theme" -->/images/Fleche.jpg"  width="32" hspace="0" vspace="0" border="0" alt="Subscribtion serial<!-- TMPL_VAR name="subscriptionid" -->" title="Serial number<!-- TMPL_VAR name="subscriptionid" -->">
+
+
+</a></td></div>
+                               </tr>
+                       <!-- /TMPL_LOOP -->
+               </table>
+       </div>
+       <div id="resultnumber">
+               <p>
+                       <!-- TMPL_IF NAME=displayprev -->
+                       <a href=search.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search><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=search.pl?startfrom=<!-- TMPL_VAR NAME=startfrom -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search><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=search.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search><img src="/intranet-tmpl/default/images/numbers/next.gif" border=0></a>
+                               <!-- /TMPL_IF -->
+               </p>
+       </div>  
+</div>
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
+
+
+<script language="JavaScript" type="text/javascript" >
+function do_delete(page)
+{
+window.location = page;
+}
+</script>
diff --git a/koha-tmpl/intranet-tmpl/npl/en/bull/result.tmpl b/koha-tmpl/intranet-tmpl/npl/en/bull/result.tmpl
new file mode 100644 (file)
index 0000000..377bcbc
--- /dev/null
@@ -0,0 +1,73 @@
+<!-- TMPL_INCLUDE NAME="main-top.inc" -->
+<div id="main-compact">
+       <h1>Search results</h1>
+       <div class="pages">
+                       <!-- TMPL_IF NAME="displayprev" -->
+                               <a class="pages" href="subscription-bib-search.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">&lt;&lt;Previous</a> 
+                       <!-- /TMPL_IF -->
+                       <!-- TMPL_LOOP NAME="numbers" -->
+                               <!-- TMPL_IF NAME=highlight --> <span class="current"> <!-- TMPL_VAR NAME="number" --> </span><!-- TMPL_ELSE -->
+                                        <a class="pages" href="subscription-bib-search.pl?startfrom=<!-- TMPL_VAR NAME=startfrom -->&amp;<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search"><!-- TMPL_VAR NAME=number --></a>
+                               <!-- /TMPL_IF -->
+                       <!-- /TMPL_LOOP -->
+                       <!-- TMPL_IF NAME=displaynext -->
+                               <a class="pages" href="subscription-bib-search.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">Next&gt;&gt;</a>
+                               <!-- /TMPL_IF -->
+               </div>
+               <div class="results">
+                       <!-- TMPL_IF name=total -->
+                       Results <!-- TMPL_VAR name="from" --> to <!-- TMPL_VAR name="to" --> of <!-- TMPL_VAR name="total" -->
+                       <!-- TMPL_ELSE -->
+                       No results found.
+                       <!-- /TMPL_IF -->
+               </div>
+       <div class="table">
+               <table>
+                       <tr>
+                       <th>Summary</th>
+                       <th>&nbsp;</th>
+                       </tr>
+                       <!-- TMPL_LOOP name="result" -->
+                       <tr<!-- TMPL_IF name="even" --> class="highlight"<!-- /TMPL_IF -->>
+                               <td>
+                                       <p><b><!-- TMPL_VAR NAME="title" --></b></p>
+                                               <p><!-- TMPL_VAR NAME="author" -->
+                                               <!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" --><!-- /TMPL_IF -->
+                                               <!-- TMPL_IF name="place" --> ; <!-- TMPL_VAR name="place" --><!-- /TMPL_IF -->
+                                               <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- /TMPL_IF -->
+                                               <!-- TMPL_IF name="notes" --> : <!-- TMPL_VAR name="notes" --><!-- /TMPL_IF -->
+                                               <!-- TMPL_IF name="size" --> ; <!-- TMPL_VAR name="size" --><!-- /TMPL_IF -->
+                                       </p>
+                               </td>
+                               <td><!-- TMPL_UNLESS NAME="norequests" -->
+                               <form action="#" method="post"><input type="submit" class="submit" value="Choose" onclick="GetIt('<!-- TMPL_VAR NAME="biblionumber" -->','<!-- TMPL_VAR name="title" -->'); return false;" /></form><!-- TMPL_ELSE -->Not Reservable<!-- /TMPL_UNLESS -->
+                               </td>
+                       </tr>
+                       <!-- /TMPL_LOOP -->
+               </table>
+       </div>
+<div class="pages">
+                       <!-- TMPL_IF NAME=displayprev -->
+                       <a class="pages" href="subscription-bib-search.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">&lt;&lt;Previous</a>
+                       <!-- /TMPL_IF -->
+                       <!-- TMPL_LOOP NAME=numbers -->
+                               <!-- TMPL_IF NAME=highlight --> <span class="current"><!-- TMPL_VAR NAME=number --></span><!-- TMPL_ELSE -->
+                               <a class="pages" href="subscription-bib-search.pl?startfrom=<!-- TMPL_VAR NAME=startfrom -->&amp;<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search"><!-- TMPL_VAR NAME=number --></a>
+                               <!-- /TMPL_IF -->
+                       <!-- /TMPL_LOOP -->
+                       <!-- TMPL_IF NAME=displaynext -->
+                       <a class="pages" href="subscription-bib-search.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">Next&gt;&gt;</a>
+                               <!-- /TMPL_IF -->
+</div>
+</div>
+
+
+<script language="JavaScript" type="text/javascript">
+
+function GetIt(bibno,title)
+{
+  opener.document.f.biblionumber.value = bibno;
+  opener.document.f.title.value = title;
+  self.close();
+}
+</script>
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/npl/en/bull/search-supply.tmpl b/koha-tmpl/intranet-tmpl/npl/en/bull/search-supply.tmpl
new file mode 100644 (file)
index 0000000..d6ac9c0
--- /dev/null
@@ -0,0 +1,12 @@
+<!-- TMPL_INCLUDE NAME="main-top.inc" -->
+
+<div id="main-compact">
+<h1>Search supplier for serial subscription</h1>
+<div class="details">
+       <form action="/cgi-bin/koha/bull/order.pl" method="post">
+               <label for="supplier">Supplier name : </label><input type="text"  size="25"  name="supplier" id="supplier" />
+               <input type="submit" class="submit" value="Search" />
+       </form>
+</div>
+</div>
+<!-- TMPL_INCLUDE name="intranet-bottom.inc" -->
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/npl/en/bull/search.tmpl b/koha-tmpl/intranet-tmpl/npl/en/bull/search.tmpl
new file mode 100644 (file)
index 0000000..cad3308
--- /dev/null
@@ -0,0 +1,68 @@
+<!-- TMPL_INCLUDE NAME="main-top.inc" -->
+<div id="main-compact">
+
+<form name="f" method="post">
+       <input type="hidden" name="op" value="do_search">
+       <input type="hidden" name="type" value="intranet">
+       <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR NAME="nbstatements" -->">
+       <div class="form">
+       <table>
+               <caption>Catalog search</caption>
+               <tr><th><label for="keyword">Keyword</label></th><td><input type="hidden" name="marclist" value="">
+                       <input type="hidden" name="and_or" value="and">
+                       <input type="hidden" name="excluding" value="">
+                       <input type="hidden" name="operator" value="contains">
+                       <input type="text" id="keyword" name="value" onchange="sql_update()"></td></tr>
+               <tr><th><label for="resultsperpage">Results per page:</label></th><td><select align="right" name="resultsperpage" id="resultsperpage" size="1">
+                               <option value="20">20</option>
+                               <option value="50">50</option>
+                               <option value="100">100</option>
+                       </select></td></tr>
+               <tr><th><label for="orderby">Order by:</label></th><td><select name="orderby" id="orderby" size="1">
+                               <option value="biblio.title">Title</option>
+                               <option value="biblio.author">Author</option>
+                               <option value="biblioitems.dewey">Dewey</option>
+                               <option value="biblioitems.publicationyear">Publication Year</option>
+                               <option value="biblioitems.publishercode">Publisher</option>
+                       </select></td></tr>
+               </table>                
+               <p><input type="submit" value="Start search" class="submit">
+                       <a href="javascript:PopupSuggestion()" class="button catalogue">Suggestions</a></p>
+       </div>
+       <div>
+
+</form>
+
+<script>
+function sql_update() {
+document.f.sql.value="";
+       for (i=0 ; i<document.f.marclist.length ; i++) {
+               if (document.f.value[i].value.length>0) {
+                       document.f.sql.value = document.f.sql.value+
+                                                                               document.f.and_or[i].value + ' (' +
+                                                                               document.f.excluding[i].value + ' ' +
+                                                                               document.f.marclist[i].value + ' ' +
+                                                                               document.f.operator[i].value + ' ' +
+                                                                               '\''+document.f.value[i].value + '\') ';
+               }
+       }
+}
+
+function AddStatement() {
+
+       document.forms[0].op.value="AddStatement";
+       document.f.submit();
+}
+
+function PopupSuggestion() {
+    var strQuery="";
+       for (i=0 ; i<document.f.marclist.length ; i++) {
+               if (document.f.value[i].value.length>0) {
+                   strQuery += " "+document.f.value[i].value;
+               }
+       }
+       newin=window.open("suggest.pl?Q="+strQuery,"Suggestions",'width=500,height=400,toolbar=false,scrollbars=yes');
+}
+
+</script>
+</div>
diff --git a/koha-tmpl/intranet-tmpl/npl/en/bull/searchresultlist.tmpl b/koha-tmpl/intranet-tmpl/npl/en/bull/searchresultlist.tmpl
new file mode 100644 (file)
index 0000000..daf5ca9
--- /dev/null
@@ -0,0 +1,81 @@
+<!-- TMPL_INCLUDE NAME="main-top.inc" -->
+<div>
+       <h1>Authority search results</h1>
+       <div class="results">
+               <p>
+                       <!-- TMPL_IF NAME=displayprev -->
+                               <a href="search.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search">&lt;&lt;Previous
+                               </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="search.pl?startfrom=<!-- TMPL_VAR NAME=startfrom -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search"><!-- TMPL_VAR NAME=number --></a>
+                               <!-- /TMPL_IF -->
+                       <!-- /TMPL_LOOP -->
+                       <!-- TMPL_IF NAME=displaynext -->
+                               <a href="search.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search">Next&gt;&gt;</a>
+                               <!-- /TMPL_IF -->
+               </p>
+               <p>
+                       <!-- TMPL_IF name=total -->
+                       &nbsp<b>Results <!-- TMPL_VAR name="from" --> to <!-- TMPL_VAR name="to" --> of <!-- TMPL_VAR name="total" --></b><br><br>
+                       <!-- TMPL_ELSE -->
+                       &nbsp No results found.<br>
+                       <!-- /TMPL_IF -->
+               </p>
+       </div>
+       <div id="resultlist">
+               <table>
+                       <tr>
+                               <th class="authority">Summary</th>
+                               <th class="authority">Used</th>
+                               <th class="authority">View</th>
+                               <th class="authority">Delete</th>
+                       </tr>
+                       <!-- TMPL_LOOP name="result" -->
+                               <tr>
+                                       <td><!-- TMPL_VAR name="summary" --></td>
+                                       <td><!-- TMPL_VAR name="used" --> <a href="../search.marc/search.pl?type=intranet&op=do_search&marclist=<!-- TMPL_VAR name="biblio_fields" -->&operator==&value=<!-- TMPL_VAR name="authid" -->&and_or=&excluding=">...</a></td>
+                                       <td>
+                                               <a href="detail.pl?authid=<!-- TMPL_VAR name="authid" -->">
+                                                       <img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR name="theme" -->/images/fileopen.png"  width="32" hspace="0" vspace="0" border="0" alt="Authority number <!-- TMPL_VAR name="authid" -->" title="Authority number<!-- TMPL_VAR name="authid" -->">
+                                               </a>
+                                       </td>
+                                       <td>
+                                               <!-- TMPL_UNLESS name="used" -->
+                                               <a href="javascript:do_delete('authorities-home.pl?op=delete&authid=<!-- TMPL_VAR name="authid" -->')">
+                                                       <img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR name="theme" -->/images/edittrash.png" width="32" hspace="0" vspace="0" border="0">
+                                               </a>
+                                               <!-- /TMPL_UNLESS -->
+                                       </td>
+                               </tr>
+                       <!-- /TMPL_LOOP -->
+               </table>
+       </div>
+       <div id="resultnumber">
+               <p>
+                       <!-- TMPL_IF NAME=displayprev -->
+                       <a href="search.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search">&lt;&lt;Previous</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="search.pl?startfrom=<!-- TMPL_VAR NAME=startfrom -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search"><!-- TMPL_VAR NAME=number --></a>
+                               <!-- /TMPL_IF -->
+                       <!-- /TMPL_LOOP -->
+                       <!-- TMPL_IF NAME=displaynext -->
+                       <a href="search.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&<!-- TMPL_LOOP NAME=searchdata --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE=URL -->&<!-- /TMPL_LOOP -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search">Next&gt;&gt;</a>
+                               <!-- /TMPL_IF -->
+               </p>
+       </div>  
+</div>
+<script language="JavaScript" type="text/javascript" >
+function do_delete(page)
+{
+window.location = page;
+}
+</script>
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/npl/en/bull/serial-issues.tmpl b/koha-tmpl/intranet-tmpl/npl/en/bull/serial-issues.tmpl
new file mode 100644 (file)
index 0000000..54ac3ea
--- /dev/null
@@ -0,0 +1,87 @@
+<!-- TMPL_INCLUDE NAME="main-top-blank.inc" -->
+<!--------------------------MAIN BODY OF PAGE-------------------------->
+<div>
+<h1 class="catalogue">Issues for a subscription</h1>
+<a href="/cgi-bin/koha/MARCdetail.pl?bib=<!-- TMPL_VAR name="biblionumber" -->" class="button catalogue">Biblio</a>
+<form method="post" name="f">
+<div>
+       <h2 class="catalogue">Subscription information</h2>
+               <p>For <b><!-- TMPL_VAR name="bibliotitle" --></b> that began on <b><!-- TMPL_VAR name="startdate" --></b> and is issued every
+               <b>
+               <!--TMPL_IF name="periodicity1" -->
+                               day
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity2" -->
+                               week
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity3" -->
+                               2 weeks
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity4" -->
+                               3 weeks
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity5" -->
+                               month
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity6" -->
+                               2 monthes
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity7" -->
+                               3 Monthes
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity8" -->
+                               quarter
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity9" -->
+                               2 quarters
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity10" -->
+                               year
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity11" -->
+                               2 years
+               <!-- /TMPL_IF -->
+               </b>
+               on
+               <b>
+               <!--TMPL_IF name="arrival1" -->
+                       Monday
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="arrival2" -->
+                               Tuesday
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="arrival3" -->
+                               Wednesday
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="arrival4" -->
+                               Thursday
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="arrival5" -->
+                               Friday
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="arrival6" -->
+                               Saturday
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="arrival7" -->
+                               Sunday
+               <!-- /TMPL_IF -->
+               </b>
+               </p>
+               <p>(subscription for 
+                       <!-- TMPL_IF name="numberlength" --><!-- TMPL_VAR name="numberlength" --> issues<!-- /TMPL_IF -->
+                       <!-- TMPL_IF name="weeklength" --><!-- TMPL_VAR name="weeklength" --> weeks<!-- /TMPL_IF -->
+                       <!-- TMPL_IF name="monthlength" --><!-- TMPL_VAR name="monthlength" --> months<!-- /TMPL_IF -->
+                       )
+               </p>
+               <p><!-- TMPL_VAR name="notes" --></p>
+</div>
+<div>
+       <h2 class="catalogue">Issues summary</h2>
+       <p>
+               <!-- TMPL_VAR name="librariannote" -->
+       </p>
+</div>
+
+</div>
+
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/npl/en/bull/statecollection.tmpl b/koha-tmpl/intranet-tmpl/npl/en/bull/statecollection.tmpl
new file mode 100644 (file)
index 0000000..d2ac668
--- /dev/null
@@ -0,0 +1,99 @@
+<!-- TMPL_INCLUDE NAME="main-top-blank.inc" -->
+<!--------------------------MAIN BODY OF PAGE-------------------------->
+<div>
+<h1>Subscription for <!-- TMPL_VAR name="bibliotitle" --></h1>
+<a href="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->" class="submit">Subscription</a>
+
+<div>
+       <h2>Subscription summary</h2>
+       <form method="post" name="f" action="statecollection.pl">
+               <input type="hidden" name="op" value="modsubscriptionhistory">
+               <input type="hidden" name="serial" value="<!-- TMPL_VAR name="serial" -->">
+               <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->">
+               <input type="hidden" name="user" value="<!-- TMPL_VAR name="user" -->">
+               <p><label>Librarian</label><!-- TMPL_VAR name="user" --></p>
+               <p><label>Beginnning date (*)</label><input type="text" name="histstartdate" value="<!-- TMPL_VAR name="histstartdate" -->"></p>
+               <p><label>End date</label><input type="text" name="enddate" value="<!-- TMPL_VAR name="enddate" -->"></p>
+               <p>Arrived Numbers</p>
+               <p>&nbsp;<textarea name="recievedlist" COLS=60 ROWS=5><!-- TMPL_VAR name="recievedlist" --></textarea></p>
+               <p>Gapped Numbers</p>
+               <p>&nbsp;<textarea name="missinglist" COLS=60 ROWS=2><!-- TMPL_VAR name="missinglist" --></textarea></p>
+               <p>Opac's note</p>
+               <p>&nbsp;<textarea name="opacnote" COLS=60 ROWS=5><!-- TMPL_VAR name="opacnote" --></textarea></p>
+               <p>Intra's note</p>
+               <p>&nbsp;<textarea name="librariannote" COLS=60 ROWS=5><!-- TMPL_VAR name="librariannote" --></textarea></p>
+               <input type="submit" value="Save changes" class="submit">
+       </form>
+</div>
+
+<div>
+<h2>waited or late numbers</h2>
+       <form method="post" name="f" action="statecollection.pl">
+               <input type="hidden" name="op" value="serialchangestatus">
+               <input type="hidden" name="serial" value="<!-- TMPL_VAR name="serial" -->">
+               <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->">
+               <input type="hidden" name="user" value="<!-- TMPL_VAR name="user" -->">
+       <table class="small">
+       <tr>
+               <th>
+                       Numbered
+               </th>
+               <th>
+                       planned for
+               </th>
+               <th>
+                       Status
+               </th>
+       </tr>
+       <!-- TMPL_LOOP name="serialslist" -->
+               <tr>
+                       <td>
+                               <input type="text" name="serialseq" value="<!-- TMPL_VAR name="serialseq" -->" size=50 maxlength=100>
+                       </td>
+                       <td>
+                               <input type="text" name="planneddate" value="<!-- TMPL_VAR name="planneddate" -->" size=10 maxlength=15>
+                       </td>
+                       <td>
+                               <input type="hidden" name="serialid" value="<!-- TMPL_VAR name="serialid" -->">
+                               <select name="status" size="1">
+                                       <!--TMPL_IF name="status1" -->
+                                               <option value="1" selected>Waited</option>
+                                       <!-- /TMPL_IF -->
+                                       <!--TMPL_IF name="status2" -->
+                                               <option value="2" selected>Arrived</option>
+                                       <!-- TMPL_ELSE -->
+                                               <option value="2">Arrived</option>
+                                       <!-- /TMPL_IF -->
+                                       <!--TMPL_IF name="status3" -->
+                                               <option value="3" selected>Late</option>
+                                       <!-- TMPL_ELSE -->
+                                               <option value="3">Late</option>
+                                       <!-- /TMPL_IF -->
+                                       <!--TMPL_IF name="status4" -->
+                                               <option value="4" selected>Missing</option>
+                                       <!-- TMPL_ELSE -->
+                                               <option value="4">Missing</option>
+                                       <!-- /TMPL_IF -->
+                               </select>
+                       </td>
+               </tr>
+       <!-- /TMPL_LOOP -->
+       </table>
+       <input type="submit" value="Save changes" accesskey="w" class="submit">
+       <!-- TMPL_IF name="hassubscriptionexpired" -->
+               <p>Subscription has expired. Waited last issue status can't be changed. <a href="#" onClick="popup()" class="submit">Renew</a> your subscription</p>
+       <!-- /TMPL_IF -->
+       </form>
+</div>
+
+</form>
+</table>
+<script language="JavaScript" type="text/javascript">
+
+function popup()
+{
+        window.open("subscription-renew.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid">","subscription renewal",'width=700,height=400,toolbar=false,scrollbars=yes');
+}
+</script>
+
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/npl/en/bull/subscription-add.tmpl b/koha-tmpl/intranet-tmpl/npl/en/bull/subscription-add.tmpl
new file mode 100644 (file)
index 0000000..0d8a705
--- /dev/null
@@ -0,0 +1,246 @@
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- <!-- TMPL_IF name="mod" -->Modify a Subscription<!-- TMPL_ELSE -->Add a New Subscription<!-- /TMPL_IF --><!-- TMPL_INCLUDE NAME="doc-head-circ-close.inc" -->
+<!-- TMPL_INCLUDE NAME="masthead.inc" -->
+<!-- TMPL_INCLUDE NAME="serials-topmenu.inc" -->
+<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
+
+<div id="main">
+<!-- TMPL_IF name="mod" -->
+       <h1>Modify subscription</h1>
+       <form method="post" name="f" action="subscription-detail.pl">
+               <input type="hidden" name="op" value="modsubscription">
+               <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->">
+<!-- TMPL_ELSE -->
+       <h1>Add a subscription</h1>
+       <form method="post" name="f">
+<!-- /TMPL_IF -->
+<div class="details">
+       <table>
+       <caption>Subscription information</caption>
+               <tr><th><input type="hidden" name="op" value="addsubscription">
+               <input type="hidden" name="user" value="<!-- TMPL_VAR name="user" -->">
+               Librarian</th><td><!-- TMPL_VAR name="user" --></td></tr>
+               <tr><th><label>Supplier</label></th><td><input type="text" name="aqbooksellerid" value="<!-- TMPL_VAR name="aqbooksellerid" -->" size="4"> (<input type="text" name="aqbooksellername" value="<!-- TMPL_VAR name="aqbooksellername" -->" disabled readonly>) <input type="button" class="submit" value="Search..." onclick="FindAcqui(f); return false;" /></td></tr>
+               <tr><th><label>Biblio</label></th><td><input type="text" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" size="4"> (<input type="text" name="title" value="<!-- TMPL_VAR name="title" -->" disabled readonly>) <input type="button" class="submit" value="Search..." onclick="Plugin(f); return false;" /></td></tr>
+               <tr><th><label>Notes</label></th><td><textarea name="notes" cols="30" rows="2"><!-- TMPL_VAR name="notes" --></textarea></td></tr>
+</table>
+               Warning!
+               <ul>
+                       <li>remember you <b>must</b> have created a biblio <b>before</b> creating a subscription</li>
+                       <li>You also must have selected a supplier if you want to ask for late issues</li>
+               </ul>
+</div>
+<div class="details">
+       <h2>Planning</h2>
+       <p><label>Beginnning date:</label> <input type="text" name="startdate" value="<!-- TMPL_VAR name="startdate" -->" size="13" maxlength="10"></p>
+       <p><label>Frequency (*)</label>
+                       <select name="periodicity" size="1">
+                               <option value="" selected>Unknown</option>
+                               <!-- TMPL_IF name="periodicity1" -->
+                                       <option value="1" selected>1/day</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="1">1/day</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="periodicity2" -->
+                                       <option value="2" selected>1/week</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="2">1/week</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="periodicity3" -->
+                                       <option value="3" selected>1/2 weeks</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="3">1/2 weeks</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="periodicity4" -->
+                                       <option value="4" selected>1/3 weeks</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="4">1/3 weeks</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="periodicity5" -->
+                                       <option value="5" selected>1/month</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="5">1/month</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="periodicity6" -->
+                                       <option value="6" selected>1/2 months</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="6">1/2 months</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="periodicity7" -->
+                                       <option value="7" selected>1/3 months</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="7">1/3 months</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="periodicity8" -->
+                                       <option value="8" selected>1/quarter</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="8">1/quarter</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="periodicity9" -->
+                                       <option value="9" selected>1/2 quarters</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="9">1/2 quarters</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="periodicity10" -->
+                                       <option value="10" selected>1/year</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="10">1/year</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="periodicity11" -->
+                                       <option value="11" selected>1/2 years</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="11">1/2 years</option>
+                               <!-- /TMPL_IF -->
+                       </select>
+       </p>
+       <p><label>Arrives on</label>
+                       <select name="dow" size="1">
+                               <option value="">None</option>
+                               <!-- TMPL_IF name="dow1" -->
+                                       <option value="1" selected>Monday</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="1">Monday</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="dow2" -->
+                                       <option value="2" selected>Tuesday</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="2">Tuesday</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="dow3" -->
+                                       <option value="3" selected>Wednesday</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="3">Wednesday</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="dow4" -->
+                                       <option value="4" selected>Thursday</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="4">Thursday</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="dow5" -->
+                                       <option value="5" selected>Friday</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="5">Friday</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="dow6" -->
+                                       <option value="6" selected>Saturday</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="6">Saturday</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="dow7" -->
+                                       <option value="7" selected>Sunday</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="7">Sunday</option>
+                               <!-- /TMPL_IF -->
+                       </select>
+</div>
+<div class="details">
+       <h2>Subscription length</h2>
+       <p>* fill 1 from :</p>
+       <ul>
+               <p><label>Number of num</label><input type="text" name="numberlength" value="<!-- TMPL_VAR name="numberlength" -->"></p>
+               <p><label>Number of weeks</label><input type="text" name="weeklength" value="<!-- TMPL_VAR name="weeklength" -->"></p>
+               <p><label>Number of months</label><input type="text" name="monthlength" value="<!-- TMPL_VAR name="monthlength" -->"></p>
+       </ul>
+</div>
+<div>
+       <h2>Numbering calculation</h2>
+       <p>
+               <p>Numbering formula: <input type="text" name="numberingmethod" value="<!-- TMPL_VAR name="numberingmethod" -->"></p>
+               <table class="small">
+                       <tr>
+                               <th>&nbsp;</th>
+                               <th>X</th>
+                               <th>Y</th>
+                               <th>Z</th>
+                       </tr>
+                       <tr>
+                               <td>Add</td>
+                               <td>
+                                       <input type="text" name="add1" value="<!-- TMPL_VAR name="add1" -->">
+                               </td>
+                               <td>
+                                       <input type="text" name="add2" value="<!-- TMPL_VAR name="add2" -->">
+                               </td>
+                               <td>
+                                       <input type="text" name="add3" value="<!-- TMPL_VAR name="add3" -->">
+                               </td>
+                       </tr>
+                       <tr>
+                               <td>once every</td>
+                               <td><input type="text" name="every1" value="<!-- TMPL_VAR name="every1" -->"></td>
+                               <td><input type="text" name="every2" value="<!-- TMPL_VAR name="every2" -->"></td>
+                               <td><input type="text" name="every3" value="<!-- TMPL_VAR name="every3" -->"></td>
+                       </tr>
+                       <tr>
+                               <td>When more than</td>
+                               <td><input type="text" name="whenmorethan1" value="<!-- TMPL_VAR name="whenmorethan1" -->"></td>
+                               <td><input type="text" name="whenmorethan2" value="<!-- TMPL_VAR name="whenmorethan2" -->"></td>
+                               <td><input type="text" name="whenmorethan3" value="<!-- TMPL_VAR name="whenmorethan3" -->"></td>
+                       </tr>
+                       <!-- TMPL_IF name="mod" -->
+                       <tr>
+                               <td>The loop is for instance</td>
+                               <td><input type="text" name="innerloop1" value="<!-- TMPL_VAR name="innerloop1" -->"></td>
+                               <td><input type="text" name="innerloop2" value="<!-- TMPL_VAR name="innerloop2" -->"></td>
+                               <td><input type="text" name="innerloop3" value="<!-- TMPL_VAR name="innerloop3" -->"></td>
+                       </tr>
+                       <!-- /TMPL_IF -->
+                       <tr>
+                               <td>Set back to</td>
+                               <td><input type="text" name="setto1" value="<!-- TMPL_VAR name="setto1" -->"></td>
+                               <td><input type="text" name="setto2" value="<!-- TMPL_VAR name="setto2" -->"></td>
+                               <td><input type="text" name="setto3" value="<!-- TMPL_VAR name="setto3" -->"></td>
+                       </tr>
+                       <tr>
+                               <td>
+                                       <!-- TMPL_IF name="mod" -->
+                                               Last value
+                                       <!-- TMPL_ELSE -->
+                                               Begins with
+                                       <!-- /TMPL_IF -->
+                               </td>
+                               <td><input type="text" name="lastvalue1" value="<!-- TMPL_VAR name="lastvalue1" -->"></td>
+                               <td><input type="text" name="lastvalue2" value="<!-- TMPL_VAR name="lastvalue2" -->"></td>
+                               <td><input type="text" name="lastvalue3" value="<!-- TMPL_VAR name="lastvalue3" -->"></td>
+                       </tr>
+               </table>
+       </p>
+</div>
+<!-- TMPL_IF name="mod" -->
+       <input type="button" value="Save subscription" onclick="Check(this.form)" accesskey="w" class="submit">
+<!-- TMPL_ELSE -->
+       <input type="button" value="Add subscription" onclick="Check(this.form)" accesskey="w" class="submit">
+<!-- /TMPL_IF -->
+</div>
+
+</form>
+
+
+<script language="JavaScript" type="text/javascript">
+
+function Plugin(f)
+{
+        window.open("subscription-bib-search.pl","Find a bib index",'width=500,height=400,toolbar=false,scrollbars=yes');
+}
+
+function FindAcqui(f)
+{
+        window.open("acqui-search.pl","Find a supplier",'width=500,height=400,toolbar=false,scrollbars=yes');
+}
+
+
+function Check(f)
+{
+       if (f.startdate.value.length != 0 && 
+                       f.numberlength.value+f.weeklength.value+f.monthlength.value > 0)
+               {
+                       document.f.submit();
+               }
+else
+{
+       alert('field marked with * are mandatory');
+}
+       return false;
+}
+</script>
+
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/npl/en/bull/subscription-bib-search.tmpl b/koha-tmpl/intranet-tmpl/npl/en/bull/subscription-bib-search.tmpl
new file mode 100644 (file)
index 0000000..e2738c6
--- /dev/null
@@ -0,0 +1,33 @@
+<!-- TMPL_INCLUDE NAME="main-top.inc" -->
+<div>
+
+<h1 class="authority">Bib search</h1>
+
+<form name="f" method="post">
+       <input type="hidden" name="op" value="do_search">
+       <input type="hidden" name="type" value="intranet">
+       <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR NAME="nbstatements" -->">
+       <div>
+               <h2 class="authority">Search on</h2>
+               <p>
+                       <label>Name or ISSN</label>
+                       <!-- TMPL_VAR name="category" -->
+               </p>
+               <p>
+                       <label>Search value</label>
+                       <input type="text" name="value" value="<!-- TMPL_VAR name="value" -->">
+                       <input type="hidden" name="authtypecode" value="<!-- TMPL_VAR name="category" -->">
+                       <input type="hidden" name="marclist" value="">
+                       <input type="hidden" name="and_or" value="and">
+                       <input type="hidden" name="excluding" value="">
+                       <input type="hidden" name="operator" value="contains">
+       <input type="hidden" name="index" value="<!-- TMPL_VAR name="index" -->"
+               </p>
+               <p>
+                       <input type="submit" value="Start search" class="button authority">
+               </p>
+       </div>
+</form>
+</div>
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
+
diff --git a/koha-tmpl/intranet-tmpl/npl/en/bull/subscription-detail.tmpl b/koha-tmpl/intranet-tmpl/npl/en/bull/subscription-detail.tmpl
new file mode 100644 (file)
index 0000000..4219b7d
--- /dev/null
@@ -0,0 +1,176 @@
+<!-- TMPL_INCLUDE NAME="main-top-blank.inc" -->
+<div>
+<h1>Subscription</h1>
+<a href="subscription-add.pl?op=mod&subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->" class="submit">Edit</a>
+<a href="statecollection.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->" class="submit">Issues</a>
+<a href="/cgi-bin/koha/MARCdetail.pl?bib=<!-- TMPL_VAR name="biblionumber" -->" class="submit">Biblio</a>
+<form method="post" name="f">
+<div>
+       <h2>Subscription information</h2>
+               <p>Librarian identity :</td><td> <!-- TMPL_VAR name="librarian" --></p>
+               <p><label>Supplier </label><!-- TMPL_VAR name="aqbooksellername" --></p>
+               <p><label>Cost</label><!-- TMPL_VAR name="cost" --></p>
+               <p><label>Budget </label><!-- TMPL_VAR name="bookfundid" --></p>
+               <p><label>Biblio</label><!-- TMPL_VAR name="bibliotitle" --></p>
+               <p><label>Notes:</label><!-- TMPL_VAR name="notes" --></p>
+</div>
+<div>
+       <h2>Planning</h2>
+       <p><label>Beginnning date:</label> <!-- TMPL_VAR name="startdate" --></p>
+       <p><label>Frequency (*):</label>
+               <!--TMPL_IF name="periodicity1" -->
+                               1/day
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity2" -->
+                               1/week
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity3" -->
+                               1/2 weeks
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity4" -->
+                               1/3 weeks
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity5" -->
+                               1/Month
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity6" -->
+                               1/2 Monthes
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity7" -->
+                               1/3 Monthes
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity8" -->
+                               1/quarter
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity9" -->
+                               1/2 quarters
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity10" -->
+                               1/year
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="periodicity11" -->
+                               1/2 years
+               <!-- /TMPL_IF -->
+       </p>
+       <p><label>Arrives on:</label>
+               <!--TMPL_IF name="arrival1" -->
+                       Monday
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="arrival2" -->
+                               Tuesday
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="arrival3" -->
+                               Wednesday
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="arrival4" -->
+                               Thursday
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="arrival5" -->
+                               Friday
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="arrival6" -->
+                               Saturday
+               <!-- /TMPL_IF -->
+               <!--TMPL_IF name="arrival7" -->
+                               Sunday
+               <!-- /TMPL_IF -->
+</div>
+<div>
+       <h2>Subscription length</h2>
+       <p><label>Number of num</label><!-- TMPL_VAR name="numberlength" --></p>
+       <p><label>Number of weeks</label><!-- TMPL_VAR name="weeklength" --></p>
+       <p><label>Number of months</label><!-- TMPL_VAR name="monthlength" --></p>
+
+</div>
+<div>
+       <h2>Numbering calculation</h2>
+       <p>
+               <p>Numbering formula: <!-- TMPL_VAR name="numberingmethod" --></p>
+               <table class="small" width="20%">
+                       <tr>
+                               <th>&nbsp;</th>
+                               <th>&nbsp;&nbsp;&nbsp;&nbsp;X&nbsp;&nbsp;&nbsp;&nbsp;</th>
+                               <th>&nbsp;&nbsp;&nbsp;&nbsp;Y&nbsp;&nbsp;&nbsp;&nbsp;</th>
+                               <th>&nbsp;&nbsp;&nbsp;&nbsp;Z&nbsp;&nbsp;&nbsp;&nbsp;</th>
+                       </tr>
+                       <tr>
+                               <td>Add</td>
+                               <td>
+                                       <!-- TMPL_VAR name="add1" -->
+                               </td>
+                               <td>
+                                       <!-- TMPL_VAR name="add2" -->
+                               </td>
+                               <td>
+                                       <!-- TMPL_VAR name="add3" -->
+                               </td>
+                       </tr>
+                       <tr>
+                               <td>once every</td>
+                               <td><!-- TMPL_VAR name="every1" --></td>
+                               <td><!-- TMPL_VAR name="every2" --></td>
+                               <td><!-- TMPL_VAR name="every3" --></td>
+                       </tr>
+                       <tr>
+                               <td>When more than</td>
+                               <td><!-- TMPL_VAR name="whenmorethan1" --> <!-- TMPL_IF name="innerloop1" --><br/>
+                                       <i>(is <!-- TMPL_VAR name="innerloop1" -->)</i><!-- /TMPL_IF --></td>
+                               <td><!-- TMPL_VAR name="whenmorethan2" --> <!-- TMPL_IF name="innerloop2" --><br/>
+                                       <i>(is <!-- TMPL_VAR name="innerloop2" -->)</i><!-- /TMPL_IF --></td>
+                               <td><!-- TMPL_VAR name="whenmorethan3" --> <!-- TMPL_IF name="innerloop3" --><br/>
+                                       <i>(is <!-- TMPL_VAR name="innerloop3" -->)</i><!-- /TMPL_IF --></td>
+                       </tr>
+                       <tr>
+                               <td>Set back to</td>
+                               <td><!-- TMPL_VAR name="setto1" --></td>
+                               <td><!-- TMPL_VAR name="setto2" --></td>
+                               <td><!-- TMPL_VAR name="setto3" --></td>
+                       </tr>
+                       <tr>
+                               <td>
+                                               Last value
+                               </td>
+                               <td><!-- TMPL_VAR name="lastvalue1" --></td>
+                               <td><!-- TMPL_VAR name="lastvalue2" --></td>
+                               <td><!-- TMPL_VAR name="lastvalue3" --></td>
+                       </tr>
+               </table>
+</div>
+<div>
+       <h2>Issues</h2>
+       <table class="small">
+       <tr>
+               <th>&nbsp;&nbsp;&nbsp;&nbsp;Issue number&nbsp;&nbsp;&nbsp;&nbsp;</th>
+               <th>&nbsp;&nbsp;&nbsp;&nbsp;Planned date&nbsp;&nbsp;&nbsp;&nbsp;</th>
+               <th>&nbsp;&nbsp;&nbsp;&nbsp;Status&nbsp;&nbsp;&nbsp;&nbsp;</th>
+       </tr>
+       <!-- TMPL_LOOP name="serialslist" -->
+               <tr>
+                       <td>
+                               <!-- TMPL_VAR name="serialseq" -->
+                       </td>
+                       <td>
+                               <!-- TMPL_VAR name="planneddate" -->
+                       </td>
+                       <td>
+                                       <!--TMPL_IF name="status1" -->
+                                               Waited
+                                       <!-- /TMPL_IF -->
+                                       <!--TMPL_IF name="status2" -->
+                                               Arrived
+                                       <!-- /TMPL_IF -->
+                                       <!--TMPL_IF name="status3" -->
+                                               Late
+                                       <!-- /TMPL_IF -->
+                                       <!--TMPL_IF name="status4" -->
+                                               Missing
+                                       <!-- /TMPL_IF -->
+                               </select>
+                       </td>
+               </tr>
+       <!-- /TMPL_LOOP -->
+       </table>
+</div>
+</div>
+
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
\ No newline at end of file
diff --git a/koha-tmpl/intranet-tmpl/npl/en/bull/subscription-renew.tmpl b/koha-tmpl/intranet-tmpl/npl/en/bull/subscription-renew.tmpl
new file mode 100644 (file)
index 0000000..0c53205
--- /dev/null
@@ -0,0 +1,22 @@
+<!-- TMPL_INCLUDE NAME="main-top-blank.inc" -->
+<div>
+
+<h1>subscription renewal for <!-- TMPL_VAR name="bibliotitle" --></h1>
+
+<form name="f" method="post">
+       <div>
+               <input type="hidden" name="op" value="renew">
+               <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->">
+               <p><label>start date</label><input type="text" name="startdate" value="<!-- TMPL_VAR name="startdate" -->"></p>
+               <p>Subscription length :</p>
+               <p><label>Number of num</label><input type="text" name="numberlength" value="<!-- TMPL_VAR name="numberlength" -->"></p>
+               <p><label>Number of weeks</label><input type="text" name="weeklength" value="<!-- TMPL_VAR name="weeklength" -->"></p>
+               <p><label>Number of months</label><input type="text" name="monthlength" value="<!-- TMPL_VAR name="monthlength" -->"></p>
+               <p>Note for the librarian that will manage your renewal request</p>
+               <ul><textarea name="note" rows="10" cols="60"></textarea></ul>
+               <input type="submit" value="Request a renewal" class="submit">
+       </div>
+</form>
+</div>
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
+