Skip to content

Commit

Permalink
Merge pull request DivinumOfficium#4228 from FAJ-Munich/master
Browse files Browse the repository at this point in the history
Kalendarium: Ranks of Octaves etc.
  • Loading branch information
APMarcello3 authored Dec 25, 2024
2 parents 8f832fe + 87a1c69 commit a490c2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/cgi-bin/horas/kalendar/kal.pl
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ sub latin_uppercase {
# findkalentry - read rank from sancti file
sub findkalentry {
my ($entry, $ver) = @_;
our $winner = subdirname('Sancti', $ver) . $entry;
my %saint = %{setupstring('Latin', "$winner.txt")};
our $winner = subdirname('Sancti', $ver) . "$entry.txt";
my %saint = %{setupstring('Latin', "$winner")};

my @srank = split(";;", $saint{Rank});

Expand All @@ -95,7 +95,7 @@ sub findkalentry {
our $rank = @srank[2];
my $rankname = rankname('Latin');

# TODO: get rid of below line when setupstrin respects version conditionals
# TODO: get rid of below line when setupstring respects version conditionals
$rankname =~ s/IV. classis/Memoria/ if $ver =~ /Monastic|Ordo Praedicatorum/;

(
Expand All @@ -116,7 +116,7 @@ sub kalendar_entry {

my $output = join(' ', findkalentry($s, $ver));

$output = '' if $ver =~ /196/ && $date =~ /01-(?:0[7-9]|1[012])/;
$output = '' if $ver =~ /1955|196/ && $date =~ /01-(?:0[7-9]|1[012])/;

while (my $ke = shift @kalentries) {
my ($d1, $d2) = findkalentry($ke, $ver);
Expand Down

0 comments on commit a490c2d

Please sign in to comment.