Bug 22721: Remove frameworkcode parameter in GetMarcFromKohaField calls
[koha-ffzg.git] / svc / bib
diff --git a/svc/bib b/svc/bib
index 5898517..50580e8 100755 (executable)
--- a/svc/bib
+++ b/svc/bib
@@ -80,7 +80,7 @@ sub update_bib {
     my $query = shift;
     my $biblionumber = shift;
     my $old_record = GetMarcBiblio({ biblionumber => $biblionumber });
-    my $frameworkcode = $query->url_param('frameworkcode') // '';
+    my $frameworkcode = $query->url_param('frameworkcode') // GetFrameworkCode($biblionumber);
     unless  (defined $old_record) {
         print $query->header(-type => 'text/xml', -status => '404 Not Found');
         return;
@@ -98,7 +98,7 @@ sub update_bib {
     } else {
         my $fullrecord = $record->clone();
         my ( $itemtag, $itemsubfield ) =
-          GetMarcFromKohaField( "items.itemnumber", '' );
+          GetMarcFromKohaField( "items.itemnumber" );
 
         # delete any item tags
         foreach my $field ( $record->field($itemtag) ) {