fix up POD
authorGalen Charlton <gmc@esilibrary.com>
Mon, 26 Sep 2011 02:51:56 +0000 (22:51 -0400)
committerDan Scott <dscott@laurentian.ca>
Tue, 11 Oct 2011 13:59:41 +0000 (09:59 -0400)
- avoids some noise when building the Perl modules for
  distributions that check for correctness when converting
  POD to man pages
- add a an author test, taken straight from the Test::Pod
  documentation, for POD correctness

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>

Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Picklist.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/biblio.pm
Open-ILS/src/perlmods/lib/OpenILS/Utils/CStoreEditor.pm
Open-ILS/src/perlmods/lib/OpenILS/Utils/ModsParser.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/Redirect.pm
Open-ILS/src/perlmods/xt/author/pod.t [new file with mode: 0644]

index eee578f..eacdaaa 100644 (file)
@@ -381,8 +381,10 @@ sub retrieve_pl_lineitem {
     return undef;
 }
 
-=head comment
+=head1 comment
+
 request open-ils.cstore open-ils.cstore.json_query.atomic {"select":{"jub":[{"transform":"count", "attregate":1, "column":"id","alias":"count"}]}, "from":"jub","where":{"picklist":1}}
+
 =cut
 
 
index fb685d6..658fa22 100644 (file)
@@ -463,7 +463,7 @@ for my $fmclass ( (Fieldmapper->classes) ) {
                );
        }
 
-=comment
+=head1 comment
 
        unless ( __PACKAGE__->is_registered( $api_prefix.'.search_like' ) ) {
                __PACKAGE__->register_method(
@@ -570,7 +570,7 @@ for my $fmclass ( (Fieldmapper->classes) ) {
                        );
                }
 
-=comment
+=head1 comment
 
                unless ( __PACKAGE__->is_registered( $api_prefix.'.search_like.'.$field ) ) {
                        __PACKAGE__->register_method(
index 03237ca..48c6e39 100644 (file)
@@ -129,7 +129,8 @@ sub checkauth {
        return $self->{requestor} = $content->{userobj};
 }
 
-=head test
+=head1 test
+
 sub checkauth {
        my $self = shift;
        $cache = OpenSRF::Utils::Cache->new('global') unless $cache;
@@ -139,6 +140,7 @@ sub checkauth {
        $self->event(OpenILS::Event->new('NO_SESSION'));
        return undef;
 }
+
 =cut
 
 
index 287890c..1ab2c86 100644 (file)
@@ -162,7 +162,8 @@ sub get_field_value {
        return @string;
 }
 
-=head
+=head1 old implementation
+
 sub _modsdoc_to_values {
        my( $self, $mods ) = @_;
        my $data = {};
@@ -179,6 +180,7 @@ sub _modsdoc_to_values {
        }
        return $data;
 }
+
 =cut
 
 sub modsdoc_to_values {
index 99667d0..560ccc6 100644 (file)
@@ -100,7 +100,8 @@ sub handler {
         $url .= "/eg/opac/home";
         $url .= "?orig_loc=$orig_loc" if $orig_loc;
 
-=head potential locale/skin implementation
+=head1 potential locale/skin implementation
+
         if($locale ne 'en-US') {
             $apache->headers_out->add(
                 "Set-Cookie" => $cgi->cookie(
diff --git a/Open-ILS/src/perlmods/xt/author/pod.t b/Open-ILS/src/perlmods/xt/author/pod.t
new file mode 100644 (file)
index 0000000..da5da6f
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Test::More;
+eval "use Test::Pod 1.00";
+plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
+
+all_pod_files_ok();