MediaWiki talk:Gadget-advanced-search.js

Latest comment: 6 years ago by Perhelion in topic update request


Bug :search-file-copyright setting ineffective edit

{{editprotected}} I've noticed that searches for CC-licensed content don't work properly.

Should

<option value="by">$file-cc</option></select>

be

<option value="cc">$file-cc</option></select>

?

Maybe not, but there's a bug...

To reproduce:

  1. https://commons.wikimedia.org/w/index.php?title=Special%3ASearch&search=insource%3Acreativecommons.org%2Fabout%2Fdownloads++&search-file-copyright=any gives 187 results.
  2. https://commons.wikimedia.org/w/index.php?title=Special%3ASearch&search=insource%3Acreativecommons.org%2Fabout%2Fdownloads++&search-file-copyright=pd does too.
  3. https://commons.wikimedia.org/w/index.php?title=Special%3ASearch&search=insource%3Acreativecommons.org%2Fabout%2Fdownloads++&search-file-copyright=by does as well.
  4. https://commons.wikimedia.org/w/index.php?title=Special%3ASearch&search=insource%3Acreativecommons.org%2Fabout%2Fdownloads++&search-file-copyright=cc does too.

It doesn't seem to make a difference what is set under File options: Copyright status:

--Elvey (talk) 19:46, 29 March 2016 (UTC)Reply

I guess this is a snack for Bawolff (talk · contribs) -- Rillke(q?) 03:32, 31 March 2016 (UTC)Reply
The idea of this magic is apparently…
pd
hastemplate:PD-Layout (40 hits)
cc
hastemplate:CC-Layout (16 hits)
any
n/a (143 hits)
… If the script does this (untested) it's okay. –Be..anyone 💩 21:55, 14 April 2016 (UTC)Reply
@Bawolff: Could you evaluate this request and either approve or reject it? --Jarekt (talk) 12:08, 19 April 2016 (UTC)Reply
Shall we tag it as
  Stale
since nobody can approve it? --Jarekt (talk) 12:52, 22 April 2016 (UTC)Reply
Tested, no, it does not work for me as intended (select PD, click search, 143 as for all). –Be..anyone 💩 14:41, 22 April 2016 (UTC)Reply

Not working edit

I was trying to find PD images and failed. No idea what the reason could be but there is simply no difference in search results whether 'Copyright status' is changed or not. -- Ата (talk) 09:43, 20 March 2017 (UTC)Reply

Not working 2 edit

Even the categories are not working. I was trying to find specific files in Category:Canada by adding "Canada" in the box "In all of these categories", but search results are not limited to that category. Like above, no difference in search results whether it is used or not. --P 1 9 9   14:15, 3 April 2017 (UTC)Reply

Russian localization edit

{{Editprotected}}

ru: {
   'header-cat': 'Поиск по категориям:',
   'header-file': 'Типы файлов:',
   'cat-any': 'В любой из этих категорий:',
   'cat-all': 'Во всех этих категориях:',
   'cat-none': 'Ни в одной из этих категорий:',
   'cat-depth': 'Включать подкатегории до глубины:',
   'file-type': 'Включать только следующие типы файлов:',
   'file-license': 'Правовой статус:',
   'file-type-all': 'Все',
   'file-type-multimedia': 'Медиафайлы',
   'file-type-jpeg': 'Фотографии (JPEG)',
   'file-type-vector': 'Векторные изображения (SVG)',
   'file-type-drawing': 'Рисунки и чертежи',
   'file-pd': 'Абсолютно никаких ограничений (общественное достояние)',
   'file-cc': 'Допускается свободное повторное использование по лицензии Creative Commons',
   'file-any': 'Показать все (все файлы на Викискладе могут быть повторно использованы при определённых условиях)',
  }

--Kaganer (talk) 13:06, 14 December 2017 (UTC)Reply

  Done Thank you! -- User: Perhelion 01:40, 20 December 2017 (UTC)Reply

Separators edit

@Bawolff: , In my opinion, there is some interface bug. Horizontal separators should be moved down. See screenshot: [1]. --Kaganer (talk) 13:16, 14 December 2017 (UTC)Reply

Anyway this options don't work for me. -- User: Perhelion 01:42, 20 December 2017 (UTC)Reply
For me also... see phab:T182878. --Kaganer (talk) 11:37, 21 December 2017 (UTC)Reply

Link to Help vs example of filling edit

A link to help will also be welcome. Now it is not clear how to specify a list of categories (what should be the delimiter)? Or an example of filling could be displayed directly in the field.--Kaganer (talk) 13:22, 14 December 2017 (UTC)Reply

update request edit

{{Editprotected}}

Would an admin be able to update this gadget to the new version at User:Bawolff/advancedSearch.js. Thanks. Bawolff (talk) 22:13, 23 January 2018 (UTC)Reply

  Done Awesome! Thank you! -- User: Perhelion 19:52, 24 January 2018 (UTC)Reply
@Bawolff: There is an heavy bug, if you don't fill a category, the search string got incategory:"", which leads every search to nothing (if you search a cat)! -- User: Perhelion 22:55, 24 January 2018 (UTC)Reply
@Perhelion: Whoops. Guess I didn't test that very good. Would you be able to update the gadget again with the fix? https://commons.wikimedia.org/w/index.php?title=User:Bawolff/advancedSearch.js&diff=prev&oldid=282596784 Bawolff (talk) 01:20, 25 January 2018 (UTC)Reply
  Done Thank you! -- User: Perhelion 01:56, 25 January 2018 (UTC)Reply
Return to "Gadget-advanced-search.js" page.