Bug 21066: Update English sample notices
Applies to sample notices and sample news. Replace timestamp by publicationdate. Also adjust notice in TemplateToolkit.t. Test plan: Run dbrev and verify if ISSUESLIP refers to opac_news.publicationdate. Run t/db_dependent/Letters/TemplateToolkit.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
a168e647bb
commit
883d404a1a
|
|
@ -0,0 +1,9 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
$dbh->do(q|
|
||||
UPDATE letter
|
||||
SET content = REPLACE(content,?,?)
|
||||
WHERE content LIKE ?
|
||||
|, undef, 'opac_news.timestamp', 'opac_news.publicationdate', '%opac_news.timestamp%' );
|
||||
NewVersion( $DBversion, 21066, "Replace timestamp references in letters table");
|
||||
}
|
||||
|
|
@ -505,7 +505,7 @@ tables:
|
|||
- "<div class=\"newsitem\">"
|
||||
- "<h5 style=\"margin-bottom: 1px; margin-top: 1px\"><b><<opac_news.title>></b></h5>"
|
||||
- "<p style=\"margin-bottom: 1px; margin-top: 1px\"><<opac_news.content>></p>"
|
||||
- "<p class=\"newsfooter\" style=\"font-size: 8pt; font-style:italic; margin-bottom: 1px; margin-top: 1px\">Posted on <<opac_news.timestamp>></p>"
|
||||
- "<p class=\"newsfooter\" style=\"font-size: 8pt; font-style:italic; margin-bottom: 1px; margin-top: 1px\">Posted on <<opac_news.publicationdate>></p>"
|
||||
- "<hr />"
|
||||
- "</div>"
|
||||
- "</news>"
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ tables:
|
|||
content:
|
||||
- "Welcome to Koha. Koha is a full-featured open-source ILS. Developed initially in New Zealand by Katipo Communications Ltd and first deployed in January of 2000 for Horowhenua Library Trust, Koha is currently maintained by a team of software providers and library technology staff from around the globe."
|
||||
lang: "koha"
|
||||
timestamp: "2007-10-29 05:25:58"
|
||||
publicationdate: "2007-10-29 05:25:58"
|
||||
expirationdate: "2099-01-10"
|
||||
number: 1
|
||||
|
||||
|
|
@ -46,6 +46,6 @@ tables:
|
|||
- "</ul>"
|
||||
- ""
|
||||
lang: "koha"
|
||||
timestamp: "2007-10-29 05:34:45"
|
||||
publicationdate: "2007-10-29 05:34:45"
|
||||
expirationdate: "2099-01-10"
|
||||
number: 2
|
||||
|
|
|
|||
|
|
@ -658,7 +658,7 @@ Date due: <<issues.date_due | dateonly>><br />
|
|||
<div class="newsitem">
|
||||
<h5 style="margin-bottom: 1px; margin-top: 1px"><b><<opac_news.title>></b></h5>
|
||||
<p style="margin-bottom: 1px; margin-top: 1px"><<opac_news.content>></p>
|
||||
<p class="newsfooter" style="font-size: 8pt; font-style:italic; margin-bottom: 1px; margin-top: 1px">Posted on <<opac_news.timestamp>></p>
|
||||
<p class="newsfooter" style="font-size: 8pt; font-style:italic; margin-bottom: 1px; margin-top: 1px">Posted on <<opac_news.publicationdate>></p>
|
||||
<hr />
|
||||
</div>
|
||||
</news>
|
||||
|
|
@ -1165,3 +1165,5 @@ sub process_letter {
|
|||
);
|
||||
return $letter;
|
||||
}
|
||||
|
||||
$schema->storage->txn_rollback;
|
||||
|
|
|
|||
Loading…
Reference in New Issue