Bug 17245: Untranslatable abbreviated names of seasons.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / result.tt
index 2f46119..6566893 100644 (file)
@@ -1,21 +1,25 @@
 [% INCLUDE 'doc-head-open.inc' %]
-<title>Koha &rsaquo; Serials &rsaquo; Search Results</title>
+<title>Koha &rsaquo; Serials &rsaquo; Search results</title>
 [% INCLUDE 'doc-head-close.inc' %]
-<script type="text/javascript" language="javascript">
+<script type="text/javascript">
 //<![CDATA[
-function GetIt(bibno,title)
-{
-    title = title.replace(/\?/,"\?");
-    title = title.replace(/"/,"\"");
-    title = title.replace(/'/,"\'");
-    opener.document.f.biblionumber.value = bibno;
-    opener.document.f.title.value = title;
-    window.close();
-}
+    $(document).ready(function(){
+        $(".select_title").on("click",function(e){
+            e.preventDefault();
+            var biblionumber = $(this).data("biblionumber");
+            GetIt( biblionumber, $(this) );
+        });
+    });
+    function GetIt(bibno,title) {
+        title = title.parents('tr').find('.title').text();
+        opener.document.f.biblionumber.value = bibno;
+        opener.document.f.title.value = title;
+        window.close();
+    }
 //]]>
 </script>
 </head>
-<body>
+<body id="ser_result" class="ser">
 
 <div id="doc" class="yui-t7">
    <div id="bd">
@@ -29,11 +33,12 @@ function GetIt(bibno,title)
        <th>Author</th>
        <th>Publisher</th>
        <th>Publication year</th>
+       <th>ISSN</th>
           <th>&nbsp;</th>
     </tr>
     [% FOREACH resultsloo IN resultsloop %]
         <tr>
-            <td>[% resultsloo.title |html %] [% resultsloo.subtitle |html %]
+            <td class="title">[% resultsloo.title |html %] [% resultsloo.subtitle |html %]
             </td>
             <td>
                 [% resultsloo.author |html %]
@@ -44,21 +49,34 @@ function GetIt(bibno,title)
             <td>
                 [% resultsloo.publicationyear |html %]
             </td>
-                       <td><a href="#" onclick="GetIt('[% resultsloo.biblionumber %]','[% resultsloo.title |url %]');" title="Choose this record">Choose</a></td>
+            <td>
+                [% resultsloo.issn |html %]
+            </td>
+            <td><a class="btn btn-mini select_title" data-biblionumber="[% resultsloo.biblionumber %]" href="#" title="Choose this record">Choose</a></td>
         </tr>
     [% END %]
     </table>
 [% ELSE %]
-<h2>No results found for <b>[% query %]</b></h2>
-[% END %]
-[% IF ( displayprev ) %]
-<a href="/cgi-bin/koha/serials/subscription-bib-search.pl?op=do_search&amp;type=intranet&amp;startfrom=[% startfromprev |url %]&amp;q=[% query |url %]">&lt;&lt;</a>
-[% END %]
-[% IF ( displaynext ) %]
-<a href="/cgi-bin/koha/serials/subscription-bib-search.pl?op=do_search&amp;type=intranet&amp;startfrom=[% startfromnext |url %]&amp;q=[% query |url %]">&gt;&gt;</a>
+
+    <div class="dialog message">
+        <p>No results found for <b>[% query %]</b></p>
+    </div>
+
 [% END %]
+
+<div class="pages">
+    [% IF ( displayprev ) %]
+        <a class="nav" href="/cgi-bin/koha/serials/subscription-bib-search.pl?op=do_search&amp;type=intranet&amp;startfrom=[% startfromprev |url %]&amp;q=[% query |url %]">&lt;&lt; Previous</a>
+    [% END %]
+    [% IF ( displaynext ) %]
+        <a class="nav" href="/cgi-bin/koha/serials/subscription-bib-search.pl?op=do_search&amp;type=intranet&amp;startfrom=[% startfromnext |url %]&amp;q=[% query |url %]">Next  &gt;&gt;</a>
+    [% END %]
+</div>
+
 <p><a href="subscription-bib-search.pl">Search for another record</a></p>
-<fieldset class="action"><a class="button close" href="#">Close</a></fieldset>
+
+<div id="closewindow"><a class="btn btn-default close" href="#">Close</a></div>
+
 </div>
 
 [% INCLUDE 'intranet-bottom.inc' %]