itle);
      $byline.val(clonedArtwork.byline);
      $attribution.val(clonedArtwork.attribution || '');
      $detailsurl.val(clonedArtwork.detailsUri);
      $imageurl.val(clonedArtwork.imageUri);
      $thumburl.val(clonedArtwork.thumbUri);
      delete clonedArtwork.publishDate;
      delete clonedArtwork.id;
      $json.val(JSON.stringify(clonedArtwork, null, 2));
      $addfromexternal.hide();
    } else {
      editorFieldsToJson();
      $addfromexternal.show();
    }

    updateEditorState();

    