Bug 28546 - Framework default value special var for year in Manual
Summary: Framework default value special var for year in Manual
Status: Needs documenting
Alias: None
Product: Koha
Classification: Unclassified
Component: Documentation (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-10 14:06 UTC by Fridolin Somers
Modified: 2023-07-01 11:09 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fridolin Somers 2021-06-10 14:06:53 UTC
There is a mistake (or change) in framework default value special vars.

In manual :

There are several values that you can use here that will be replaced automatically when a new record is created:

    <<MM>> - the current month, 2 digits
    <<DD>> - the current day of month, 2 digits
    <<YEAR>> - the current year, 4 digits
    <<USER>> - the username of the currently logged in user

For example: a default of "<<MM>>/<<DD>>/<<YEAR>>" (without quotes) will print the current date in the form of "01/21/2021"

See
https://gitlab.com/koha-community/koha-manual/-/blob/master/source/administration.rst

But in Koha code in cataloguing/addbiblio.pl :
        $value =~ s/<<YYYY>>/$year/g;
        $value =~ s/<<YY>>/$shortyear/g;