Extension talk:BibManager

Active discussions

Editing and deleting of entries does not work with MW 1.19.2Edit

The latest version from git (ver. 1 according to what is written on Special:Version page) does not allow to edit and delete entries. When I try to edit an entry (click on edit icon on the Special:BibManagerList page and then pressing Save button) it shows a page with message "No Citation or EntryType provided.". Similar by deleting, it produces a page with message "The dataset "" was not found!". But the citation itself seems to be working normally.--Rarruga (talk) 09:46, 5 November 2012 (UTC)

Sorry to hear that. The BibManager is tested only with MW 1.16.x. I will look at the problem as soon as possible. But it may take some time. If you are able to fix it youself, feel free to commit a patch. Osnard (talk) 17:04, 16 November 2012 (UTC)
Thank you for the reply. I would fix the problem by myself if I knew PHP well enough. Unfortunately it is not the case. ;( --Rarruga (talk) 14:47, 28 November 2012 (UTC)
The problem is now fixed! A friend of mine has fixed it. He has changed multiple files so I can not described easily what was exactly the problem. If somebody needs I can send an archive with the fixed extension.--Rarruga (talk) 20:07, 30 November 2012 (UTC)
I have the same problem with the MW1.19.2 version. Can I geht the archive with the fixed extension. Hjschwarz (talk) 08:23, 7 December 2012 (UTC)
So do I. How can I get the archive with the fixed extension? P.swiki (talk)
Last weekend, I fixed this problem by myself. It just work now for me! P.swiki (talk)
Could you please send me the archive which did work or what I have to change?Hjschwarz (talk) 14:01, 4 January 2013 (UTC)
I'd love to receive the fix too so I can add it to the GIT repo. --Osnard (talk) 09:43, 7 January 2013 (UTC)
Sorry for delay. My fixed version is in http://molwiki.org/BibManager.tar.gz It also fixes the described below "BibManager overview doubles action instructions" issue. --Rarruga (talk) 14:26, 29 January 2013 (UTC)
Thank you very much. I'm going to review you changes soon and commit them. --Osnard (talk) 12:14, 22 March 2013 (UTC)
I just installed BibManager (REL1_26 branch) for the first time and I also stumbled upon this problem. Any estimate on when you will fix this? 2013 is a while ago. -- 10:33, 20 December 2015 (UTC)
And so do I. My MediaWiki version is 1.25.2 and BibManager is of version 1.23.0 (e0ddcf7). In case of being relevant: php is of version 5.6.14-0. When I try to delete an entry it shows "The dataset "" was not found!" and when I try to edit an entry it compromises the keyword being already used.
The download does not exist anymore. Is there another solution? --G_Wer (talk) 9 February 2016

BibManager overview doubles action instructionsEdit

On Bibmanager Overview there is far to the right besides the table again the "action" instructions "edit", "delete", as text and not as a image as in the table. This should be removed. Does anyone have a solution for that problem. Hjschwarz (talk) 08:35, 7 December 2012 (UTC)

A solution: on BibMangerPagerList.php chagnes on line 41 and 46 insert - '' - and delete - wfMsg( 'bm_list_table_edit' ) - and - wfMsg( 'bm_list_table_delete' ) -
  39      $specialPageQuery = array ( 'bm_bibtexCitation' => $row->bm_bibtexCitation );
  40     $editLink = $wgUser->getSkin()->link(
  41        SpecialPage::getTitleFor( "BibManagerEdit" ), '',
  42         array ( 'class' => 'icon edit',
  43         'title' => wfMsg( "bm_list_table_edit" ) ), $specialPageQuery
  44     );
  45     $deleteLink = $wgUser->getSkin()->link(
  46         SpecialPage::getTitleFor( 'BibManagerDelete' ),'',
  47         array ( 'class' => 'icon delete',
  48         'title' => wfMsg( "bm_list_table_delete" ) ), $specialPageQuery
  49     );

and in BibMangerCommon.Css on line 79 replace - text-indent: 9999px;- by - height: 15px; -

  76   #bm_table a.icon {
  77       position: relative;
  78       width: 16px;
  79       height: 15px; /* text-indent: 9999px; */
  80       margin: 3px;
  81       background-repeat: no-repeat;
  82       display: inline-block;
  83    } 14:52, 25 December 2012 (UTC)

Thanks for the contribution. --Osnard (talk) 09:43, 7 January 2013 (UTC)

Cannot get <biblib> workingEdit

I have imported some references and now I try to cite them in an article. It works so far as hovering with the cursor on a citation shows the reference details. But when ending the article with <biblib /> to display the reference list, a text is displayed at the bottom of the article page saying that "there were no citations found in the article".

MediaWiki version: 1.20.3 PHP version: 5.3.27


Some Problems with MW 1.23 LTSEdit

It seems there are some heavy and some little problems with BibManager v1.1.0 for MW 1.22+:

  1. All of the files in the directory "specialpages" create an error at line 7 using the function "wfLoadExtensionMessages( 'BibManager' );"
  2. At "SpecialPages" the group for the BibManager pages is given as "<specialpages-group-BibManager>"
  3. After clicking on any of the Hyperlinks to a BibManager specialpage a message "No such special page" (EN) or "Spezialseite nicht vorhanden" (DE) occurs
  4. (also at MW 1.16 with BibManager v1) After deleting an entry, a message "Your data was successfully saved" instead of "...deleted" is given
  5. (also at MW 1.16 with BibManager v1) HTML-Code: In the file "includes/BibManagerPagerList.php" in line 133 the given value is "<tr>" to close a table row
  6. Only the listings and the import do work, the 3 methods "New entry", "Edit entry" and "Delete entry" do not work (as described above for MW 1.19) - "No Citation or EntryType provided."
    1. Method "Delete": Names of the form element are "wpbm_...", but script is looking for "bm_..."
    2. Method "Delete": Comparing of $formData['bm_delete'] as string with boolean is always not equal

Here are some solutions that I found, but some of them without knowing about unwanted effects:

  1. In nearly all files of specialpages (BibManager[Create|Delete|Edit|List|ListAuthors]_body.php) change line 7 to a comment:
    #wfLoadExtensionMessages( 'BibManager' );
  2. Check after installation of "BibManager" if the update process with PHP und "maintenance/update.php" was executed. Otherwise set in file "BibManager.php" line 66 as comment as in the next item
  3. In file "BibManager.php" setting line 66 as comment - not to use "BibManagerAlias" - seems to be the solution for the availability of the BibManager special pages:
    #$wgExtensionMessagesFiles['BibManagerAlias'] =  dir . 'BibManager.alias.php';
  4. Some language files and the specialpage file "BibManagerDelete_body.php" have to be changed
    1. In the json language files in the directory "i18n" add nearly at the end of the list after "bm_success_save-complete..." a new line:
      1. for en.json: "bm_success_delete":
        "<div class=\"successbox\"><strong>The data were successfully deleted!</strong></div><div class=\"visualClear\" id=\"mw-pref-clear\"></div>",
      2. for de.json and de-formal.json: "bm_success_delete":
        "<div class=\"successbox\"><strong>Die Daten wurden erfolgreich gelöscht!</strong></div><div class=\"visualClear\" id=\"mw-pref-clear\"></div>",
    2. In file "specialpages/BibManagerDelete_body.php" in line 95 change "bm_success_save-complete" to "bm_success_delete":
      $wgOut->addHtml( wfMsg( 'bm_success_delete' ) );
  5. In file "BibManagerPagerList.php" change line 133 to
    $tablerow[] = '</tr>';
  6. -- updated 10 February 2016: Setting names for the form elements in the array "$formDescriptor" at "BibManagerDelete_body.php", "BibManagerCreate_body.php" and "BibManagerEdit_body.php" with prefix "bm_" is successful for method "Delete" but not for "Create" with redirect to "Edit" and not for "Edit"
    • Method "Delete": In the specialpages file "BibManagerDelete_body.php" in the array $formDescriptor at line 60 add for the form elements "bm_delete" and "bm_bibtexCitation" an array element for the attribute "name" with the value "mb_delete" and "bm_bibtexCitation" and in the function formSubmit() at the end of line 89 convert "true" to string
      $formDescriptor = array (
      'bm_delete' = array (
      'class' => 'HTMLHiddenField';
      'default' => true,
      'name' => 'bm_delete',
      'bm_bibtexCitation' = array (
      'class' => 'HTMLHiddenField';
      'default' => $citation,
      'name' => 'bm_bibtexCitation',
      if ( empty( $formData['bm_delete'] ) || $formData['bm_delete'] !== (string)true )

--G_Wer (talk) 9 February 2016

Return to "BibManager" page.