Enhancement 5074 (Adding possibility to cleanup_database.pl to purge only older sessions) [for 3.0.x and master]
Currently, the misc/cronjobs script cleanup_database truncates the session table (deleting all records, including active sessions).
With an additional parameter sessdays, this behavior could be changed or (perhaps better) extended. If the parameter sessdays is passed along with a number of days, the script only deletes older session records. This is accomplished by examining the values of lasttime, atime or ctime in the record.
So, calling the script like:
./cleanup_database.pl -v -sessions -sessdays 7
will only delete sessions records older than 7 days. The "old style" call
./cleanup_database.pl -v -sessions
still works too and truncates the table as before.
Patch can be applied to 3.0.x and master.
Bug 5066 (Incorrect use of localtime function when calling _session_log) for 3.0.x only
This patch applies to 3.0.x only and solves a little bug in using the localtime function when writing to tmp/sessionlog. It should be called in scalar context iinstead of list context.
Followup bug4263 : dateaccessioned should not be blanked
Previous commit on bug 4263 reintroduced bug 2466 namely item subfields would not be wiped out.
This patch takes the need for dateacessioned not to be blanked.
But also wipe out desired item subfields.
MT3915: deleted biblios would stick in zebra indexes
Since the update of biblios would be done AFTER the deletion of biblios,
and since biblios would be updated just before being deleted (in order to delete the items)
update process would recreate the biblio.
This patch fixes the order in order to do the deletion AFTER the update.
Marcel de Rooy [Wed, 9 Jun 2010 14:00:09 +0000 (16:00 +0200)]
Bug 4866 for 3.0.x (Enable Change event for item plugins)
A few lines of code in additem.pl make it possible to add the Change event next to Blur and Focus for item plugins. This prevents running the plugin if the data has not changed. Patch sent for 3.0.x.
Marcel de Rooy [Thu, 10 Jun 2010 11:08:02 +0000 (11:08 +0000)]
Bug 4839 (System pref for MARC field 008 authorities; additional logic for position 14) [version 3.0.x]
Currently, the default for this marc field is hardcoded in the plugin code of
marc21_field_008_authorities.pl (two occurrences).
I suggest to move this value to a new system preference. If this pref should
not exist, the old hardcoded value could still be used.
Furthermore, the default for position 14 (heading use: main or added entry)
should be dependent on the authority type. For CHRON_TERM, GENRE/FORM and
TOPIC_TERM, it should be b (not appropriate) instead of a (appropriate).
This patch applies to 3.0.x only. Additional patch submitted for master.
Marcel de Rooy [Wed, 9 Jun 2010 12:33:27 +0000 (14:33 +0200)]
Bug 4512 for 3.0.x only (Encoding issue in downloaded data of guided reports) RESENT
The line binmode STDOUT, ':utf8'; garbles the output. It was already utf8. The statement should be used on binary data, not on plain text. The statement occurred more frequently in older versions of the script; this last occurrence must be deleted too.
Frédéric Demians [Fri, 27 Nov 2009 17:16:55 +0000 (18:16 +0100)]
Bug 3814: SIP2 Server logging doesn't work on OpenSolaris
This patch put in SIPconfig.xml SIP2 server logging parameters. This is
way it's possible to modify where SIP2 logs are sent. And fix
OpenSolaris bug.
WARNING: After an upgrade, installation using a custom SIP2 server
config file will need to copy default SIPconfig.xml added section:
<!--
Set Net::Server::PreFork runtime parameters
syslog_ident will identify SIP2 Koha server entries in syslog
For OpenSolaris, add: syslog_logsock=stream
-->
<server-params
min_servers='1'
min_spare_servers='0'
log_file='Sys::Syslog'
syslog_ident='koha_sip'
syslog_facility='local6'
/>
Adds IndependentBranchPatrons system preferences for libraries which would not like to see patrons from other libraries
Adds XSLT systempreferences so that path can be provided
Also adds CSV exports
Adds a page for subscription history management
Changes the way reserves are allowed. You HAVE TO enter the itemtypes and holds Policy in order to enable your patron to reserve
It adds 10 changes in database, which adds some new tables required for some partial features ports from 3.2 due to the previous release and updates languages tag for portuguese and updates Calendar SystemPreference.
This patch fixes the name of the system preference according to the usage done in C4::XSLT
And also takes the value of the system preferences (XSLTDetailsDisplay and XSLTResultsDisplay) set in 3.0.6.03
rather than rewriting the value without taking a previous updated value into account
Bug 4326 ; returndate were fixed on the day before
dropbox mode was set even though it was not dropbox.
This patch is an adaptation of Ian Walls
http://www.mail-archive.com/koha-patches@lists.koha.org/msg04736.html
Garry Collum [Sat, 20 Mar 2010 01:25:35 +0000 (21:25 -0400)]
Bug 4276: Proposed fix for "Related Subjects" links in Opac.
Adds fields other than 'a' to the links for subject headings in the Opac details page.
Also adds subfield b of a Corporate Author (710) to the appropriate link. Otherwise you may have a link with "United States" instead of "United States. Public Works Adminstration"
batchRebuildBiblioTables.pl doesn't crash anymore when GetMarcBiblio fails.
Unprocessed biblionumbers are displayed at the end of the execution instead.