Skip to content

Commit

Permalink
path to the ressources fixed in the eg kwalify
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Chantreux committed Apr 22, 2014
1 parent 7f510fc commit a952f70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eg/validate
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ of the record i dumped using C<bin/dump>:
a template is a set of rules used by MARC::MIR to extract an intellectual
datastructure from a MARC record (you can see it as a cataloguing framework).

see C<data/hugo.template.yml> contains rules to get
see C<eg/data/hugo.template.yml> contains rules to get

by: Victor Hugo.
contributor:
Expand All @@ -44,16 +44,16 @@ from the ISO2709 (read comments)

=head2 Datastructure Kwalification

see C<data/hugo.kwalify.yml> contains rules to validate any structure.
see C<eg/data/hugo.kwalify.yml> contains rules to validate any structure.

=cut

my $template = MARC::MIR::Template->new
(YAML::LoadFile "data/hugo.template.yml");
(YAML::LoadFile "eg/data/hugo.template.yml");

sub validation_errors (_) {
state $schema =
(YAML::LoadFile "data/hugo.kwalify.yml")
(YAML::LoadFile "eg/data/hugo.kwalify.yml")
->{schema};

state $validator = Kwalify::Validator->new;
Expand Down

0 comments on commit a952f70

Please sign in to comment.