| Summary: | Framework default value special var for year in Manual | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Fridolin Somers <fridolin.somers> |
| Component: | Documentation | Assignee: | Bugs List <koha-bugs> |
| Status: | RESOLVED INVALID | QA Contact: | Testopia <testopia> |
| Severity: | normal | ||
| Priority: | P5 - low | CC: | laurence.rault |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
Already updated in the current manual https://koha-community.org/manual/latest/en/html/administration.html#marc-bibliographic-frameworks |
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;