Bugzilla – Attachment 191681 Details for
Bug 41649
Add support for setting the magnetic media flag for SIP in Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41649: Add sip_magnetic field to itemtypes table
0c0588d.patch (text/plain), 2.76 KB, created by
Martin Renvoize (ashimema)
on 2026-01-20 12:48:18 UTC
(
hide
)
Description:
Bug 41649: Add sip_magnetic field to itemtypes table
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2026-01-20 12:48:18 UTC
Size:
2.76 KB
patch
obsolete
>From 0c0588de938bb77bfa43cd2cb14e72da0f34a417 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@openfifth.co.uk> >Date: Fri, 16 Jan 2026 08:00:07 +0000 >Subject: [PATCH] Bug 41649: Add sip_magnetic field to itemtypes table > >This patch adds the new sip_magnetic boolean flag field to the itemtypes >table to allow flagging the itemtype as magnetic for sip responses. >--- > .../data/mysql/atomicupdate/bug_41649.pl | 24 +++++++++++++++++++ > installer/data/mysql/kohastructure.sql | 1 + > 2 files changed, 25 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_41649.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_41649.pl b/installer/data/mysql/atomicupdate/bug_41649.pl >new file mode 100755 >index 00000000000..880ed5f8189 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_41649.pl >@@ -0,0 +1,24 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => "41649", >+ description => "Add sip_magnetic column to itemtypes table for SIP media handling", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ # Add sip_magnetic column to itemtypes table >+ unless ( column_exists( 'itemtypes', 'sip_magnetic' ) ) { >+ $dbh->do( >+ q{ >+ ALTER TABLE itemtypes >+ ADD COLUMN sip_magnetic TINYINT(1) NOT NULL DEFAULT 0 >+ COMMENT 'Indicates if items of this type are magnetic media for SIP' >+ AFTER sip_media_type >+ } >+ ); >+ say_success( $out, "Added column 'itemtypes.sip_magnetic'" ); >+ } >+ }, >+}; >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index e65b2af7ca4..67c0eec61fe 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -4308,6 +4308,7 @@ CREATE TABLE `itemtypes` ( > `checkinmsg` varchar(255) DEFAULT NULL COMMENT 'message that is displayed when an item with the given item type is checked in', > `checkinmsgtype` char(16) NOT NULL DEFAULT 'message' COMMENT 'type (CSS class) for the checkinmsg, can be ''alert'' or ''message''', > `sip_media_type` varchar(3) DEFAULT NULL COMMENT 'SIP2 protocol media type for this itemtype', >+ `sip_magnetic` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Indicates if items of this type are magnetic media for SIP', > `hideinopac` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Hide the item type from the search options in OPAC', > `searchcategory` varchar(80) DEFAULT NULL COMMENT 'Group this item type with others with the same value on OPAC search options', > `automatic_checkin` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'If automatic checkin is enabled for items of this type', >-- >2.52.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41649
:
191552
|
191553
|
191554
|
191555
|
191556
|
191673
|
191674
|
191675
|
191676
|
191677
|
191678
|
191679
|
191680
| 191681 |
191682
|
191683
|
191684
|
191685
|
191686