Bugzilla – Attachment 31134 Details for
Bug 7817
Items Permanent location (shelving location) is set to NULL when item is edited
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7817: QA Follow-up: Print a warning when permanent location is mapped
Bug-7817-QA-Follow-up-Print-a-warning-when-permane.patch (text/plain), 1.77 KB, created by
Marcel de Rooy
on 2014-08-25 11:26:50 UTC
(
hide
)
Description:
Bug 7817: QA Follow-up: Print a warning when permanent location is mapped
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2014-08-25 11:26:50 UTC
Size:
1.77 KB
patch
obsolete
>From 6e5072103101a94fe0e4b9ab4cf7e72da4bbfe0d Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 25 Aug 2014 13:24:03 +0200 >Subject: [PATCH] Bug 7817: QA Follow-up: Print a warning when permanent > location is mapped >Content-Type: text/plain; charset=utf-8 > >Item field permanent location should not be mapped to the MARC structure. >If a library did so, this dbrev will print a warning. >If refers to report 12818 for help in moving the data to more_subfields_xml. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Tested by putting permanent_location in and out of the MARC structure. >--- > installer/data/mysql/updatedatabase.pl | 15 +++++++++++++++ > 1 files changed, 15 insertions(+), 0 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index de77bf3..0a2e2aa 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -8613,6 +8613,21 @@ if ( CheckVersion($DBversion) ) { > SetVersion($DBversion); > } > >+ >+$DBversion = '3.17.00.XXX'; >+if ( CheckVersion($DBversion) ) { >+ my @temp= $dbh->selectrow_array(qq| >+ SELECT count(*) >+ FROM marc_subfield_structure >+ WHERE kohafield='permanent_location' OR kohafield='items.permanent_location' >+ |); >+ print "Upgrade to $DBversion done (Bug 7817: Check for permanent_location)\n"; >+ if( $temp[0] ) { >+ print "WARNING for Koha administrator: Your database contains one or more mappings for permanent_location to the MARC structure. This item field however is for internal use and should not be linked to a MARC (sub)field. Please correct it. See also Bugzilla reports 7817 and 12818.\n"; >+ } >+ SetVersion($DBversion); >+} >+ > =head1 FUNCTIONS > > =head2 TableExists($table) >-- >1.7.7.6
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 7817
:
28949
|
28970
|
28971
|
29093
|
30350
|
30923
|
30924
|
31133
| 31134 |
31464