Bugzilla – Attachment 16218 Details for
Bug 5342
Serial claiming improvements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 5342: Followup: Delete all occurrences of preview
Bug-5342-Followup-Delete-all-occurrences-of-previe.patch (text/plain), 6.41 KB, created by
Jonathan Druart
on 2013-03-18 10:04:35 UTC
(
hide
)
Description:
Bug 5342: Followup: Delete all occurrences of preview
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-03-18 10:04:35 UTC
Size:
6.41 KB
patch
obsolete
>From 004083862279cd487c80d139aaf3f55e37755fc4 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 9 Mar 2012 12:21:23 +0100 >Subject: [PATCH] Bug 5342: Followup: Delete all occurrences of preview > >This feature is useless, apparently not used. >--- > .../prog/en/modules/serials/claims.tt | 82 +------------------- > serials/claims.pl | 34 ++++---- > 2 files changed, 18 insertions(+), 98 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt >index f6bd0ee..7040679 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt >@@ -9,7 +9,7 @@ > <script type="text/javascript"> > //<![CDATA[ > [% IF (dateformat == 'metric') %]dt_add_type_uk_date();[% END %] >- $(document).ready(function() { >+ $(document).ready(function() { > [% UNLESS ( preview ) %] > var sTable = $("#claimst").dataTable($.extend(true, {}, dataTablesDefaults, { > "sDom": 't', >@@ -19,9 +19,9 @@ > "bPaginate": false > })); > [% END %] >- $('#supplierid').change(function() { >- $('#claims').submit(); >- }); >+ $('#supplierid').change(function() { >+ $('#claims').submit(); >+ }); > > // Checkboxes : Select All / None > $("span.checkall").html("<input type=\"checkbox\" name=\"CheckAll\"> "+_("Check All")+"</input>"); >@@ -139,23 +139,15 @@ > $("table#claimst tbody tr").show(); > } > >- function popup(supplierid,serialid){ >- window.open('claims.pl?supplierid='+ supplierid +'&serialid='+ serialid +'&op=preview' ,'popup', 'width=600,height=400,toolbar=no,scrollbars=yes'); >- } >- > //]]> > </script> > </head> > <body id="ser_claims" class="ser"> > [% INCLUDE 'header.inc' %] >-[% UNLESS ( preview ) %] > [% INCLUDE 'serials-search.inc' %] >-[% END %] > > <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> › Claims</div> > >-[% UNLESS ( preview ) %] >- > <div id="doc3" class="yui-t2"> > > <div id="bd"> >@@ -320,77 +312,11 @@ > </fieldset> > [% END %] > >-[% ELSE %] >- >-<div id="doc" class="yui-t7"> >- <div id="bd"> >- >-[% IF ( supplierloop ) %] >- [% FOREACH supplierloo IN supplierloop %] >- [% IF ( supplierloo.name ) %] >- <p><b>[% supplierloo.name %]</b><br /> >- [% END %] >- [% IF ( supplierloo.postal ) %] >- [% supplierloo.postal %]<br /> >- [% END %] >- [% IF ( supplierloo.contphone ) %] >- Ph: [% supplierloo.contphone %]<br /> >- [% END %] >- [% IF ( supplierloo.contfax ) %] >- Fax: [% supplierloo.contfax %]<br /> >- [% END %] >- [% IF ( supplierloo.contemail ) %] >- Email: [% supplierloo.contemail %]<br /> >- [% END %] >- [% IF ( supplierloo.accountnumber ) %] >- A/C: [% supplierloo.accountnumber %]</p> >- [% END %] >- [% IF ( supplierloo.contact ) %] >- <p>Dear [% supplierloo.contact %]</p> >- [% ELSE %] >- <p>To whom it may concern</p> >- [% END %] >- <p>The following items have not been received from you and are now considered missing:</p> >- [% END %] >-[% END %] >- [% IF ( missingissues ) %] >- <h3>Missing issues</h3> >- <table> >- <tr> >- <td><b>Vendor<b></td> >- <td><b>Title</b></td> >- <td><b>Issue number</b></td> >- <td><b>Missing since</b></td> >- </tr> >- [% FOREACH missingissue IN missingissues %] >- <tr> >- <td> >- [% missingissue.name %] >- </td> >- <td> >- [% missingissue.Title |html %] >- </td> >- <td> >- [% missingissue.serialseq %] >- </td> >- <td> >- [% missingissue.planneddate %] >- </td> >- </tr> >- [% END %] >- </table> >- [% END %] >- >-<p class="noprint"><a href="#" onclick="window.print(); return false;">Print</a> <a href="#" class="close">Close</a></p> >-[% END %] >- > </div> > </div> > >-[% UNLESS ( preview ) %] > <div class="yui-b"> > [% INCLUDE 'serials-menu.inc' %] > </div> >-[% END %] > </div> > [% INCLUDE 'intranet-bottom.inc' %] >diff --git a/serials/claims.pl b/serials/claims.pl >index 4eff321..446143e 100755 >--- a/serials/claims.pl >+++ b/serials/claims.pl >@@ -59,26 +59,21 @@ for my $s (@{$supplierlist} ) { > my $branchloop = GetBranchesLoop(); > unshift @$branchloop, {value=> 'all',name=>''}; > >-my $preview=0; >-if($op && $op eq 'preview'){ >- $preview = 1; >-} else { >- my @serialnums=$input->param('serialid'); >- if (@serialnums) { # i.e. they have been flagged to generate claims >- my $err; >- eval { >- $err = SendAlerts('claimissues',\@serialnums,$input->param("letter_code")); >- if ( not ref $err or not exists $err->{error} ) { >- UpdateClaimdateIssues(\@serialnums); >- } >- }; >- if ( $@ ) { >- $template->param(error_claim => $@); >- } elsif ( ref $err and exists $err->{error} and $err->{error} eq "no_email" ) { >- $template->{VARS}->{'error_claim'} = "no_email"; >- } else { >- $template->{VARS}->{'info_claim'} = 1; >+my @serialnums=$input->param('serialid'); >+if (@serialnums) { # i.e. they have been flagged to generate claims >+ my $err; >+ eval { >+ $err = SendAlerts('claimissues',\@serialnums,$input->param("letter_code")); >+ if ( not ref $err or not exists $err->{error} ) { >+ UpdateClaimdateIssues(\@serialnums); > } >+ }; >+ if ( $@ ) { >+ $template->param(error_claim => $@); >+ } elsif ( ref $err and exists $err->{error} and $err->{error} eq "no_email" ) { >+ $template->{VARS}->{'error_claim'} = "no_email"; >+ } else { >+ $template->{VARS}->{'info_claim'} = 1; > } > } > >@@ -102,7 +97,6 @@ $template->param( > phone => $supplierinfo[0]->{phone}, > booksellerfax => $supplierinfo[0]->{booksellerfax}, > bookselleremail => $supplierinfo[0]->{bookselleremail}, >- preview => $preview, > missingissues => \@missingissues, > supplierid => $supplierid, > claimletter => $claimletter, >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 5342
:
8115
|
8116
|
8309
|
8334
|
8335
|
8611
|
8682
|
8683
|
8900
|
8910
|
9168
|
9169
|
9976
|
9977
|
10211
|
10212
|
10245
|
10258
|
14444
|
14445
|
14446
|
16217
|
16218
|
16219
|
19512
|
31277
|
31375
|
31454
|
31694
|
31902
|
32171
|
32172