Bugzilla – Attachment 108281 Details for
Bug 25867
Label holdingbranch as Current library rather than Current location
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25867: Database update for changing existing frameworks
Bug-25867-Database-update-for-changing-existing-fr.patch (text/plain), 2.06 KB, created by
Nick Clemens (kidclamp)
on 2020-08-14 13:58:24 UTC
(
hide
)
Description:
Bug 25867: Database update for changing existing frameworks
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-08-14 13:58:24 UTC
Size:
2.06 KB
patch
obsolete
>From 3213beeb8aaec34471cb600f08fa73422887e949 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Fri, 14 Aug 2020 13:17:01 +0000 >Subject: [PATCH] Bug 25867: Database update for changing existing frameworks > >This updates the descriptions for 952$a und $b in all existing >frameworks, if the English description hasn't been changed since >installing Koha. > >To test: >- Look at your item edit form or on the MARC tab > for the descriptions shown for $a and $b for any framework >- Note the descriptons say '... location' >- Change one or more using the frameworks. >- Run the database update >- Verify only the unchanged ones have been updated > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > .../mysql/atomicupdate/bug_25867_location_renames.perl | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_25867_location_renames.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_25867_location_renames.perl b/installer/data/mysql/atomicupdate/bug_25867_location_renames.perl >new file mode 100644 >index 0000000000..5a43e7e05b >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_25867_location_renames.perl >@@ -0,0 +1,14 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ >+ $dbh->do( "UPDATE marc_subfield_structure SET liblibrarian = 'Home library' WHERE liblibrarian = 'Permanent location' >+ AND tagfield = 952 and tagsubfield = 'a'" ); >+ $dbh->do( "UPDATE marc_subfield_structure SET libopac = 'Home library' WHERE libopac = 'Permanent location' >+ AND tagfield = 952 and tagsubfield = 'a'" ); >+ $dbh->do( "UPDATE marc_subfield_structure SET liblibrarian = 'Current library' WHERE liblibrarian = 'Current location' >+ AND tagfield = 952 and tagsubfield = 'b'" ); >+ $dbh->do( "UPDATE marc_subfield_structure SET libopac = 'Current library' WHERE libopac = 'Current location' >+ AND tagfield = 952 and tagsubfield = 'b'" ); >+ >+ NewVersion( $DBversion, 25867, "Update subfield descriptions for 952\$a and 952\$b"); >+} >-- >2.11.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 25867
:
107051
|
107436
|
108276
|
108277
|
108280
| 108281