Label photos (tagging) #29
标签
未选择里程碑
未指派成员
1 名参与者
通知
到期时间
未设置到期时间。
依赖工单
没有设置依赖项。
参考:aheathershaw/blue-twilight#29
正在加载...
在新工单中引用
没有提供说明。
删除分支 %!s(<nil>)
删除分支是永久的。虽然已删除的分支在实际被删除前有可能会短时间存在,但这在大多数情况下无法撤销。是否继续?
Provide the ability to "tag" or "label" photos with multiple arbitrary terms.
There should be a new management page in the admin section, and appropriate permissions. The management page should allow creation of new labels, and removal/rename of existing labels.
Underneath the photo metadata fields (album photos tab) provide an auto-complete suggestion box where you can type labels in - comma separated? New labels get added automatically, existing labels get linked.
In the gallery, labels should be listed below the photo (or the metadata?) with links to the relevant "label" page - which follows the same design as the "show album" gallery page.
The dynamic label gallery views should also be included in the Google sitemap.
Because labelled photos can come from any number of albums, BT needs to ensure it only returns photos from albums the user can access.
Therefore use the same method that retrieved albums available to the current user to get a list of accessible album IDs, and filter the photo-by-label query to this list.
One outstanding issue - if you add a new label to multiple photos before hitting Save Changes, multiple instances of the same label are created in the database.
When a label is about to be created, need to check if it exists first as it may have been created within the same operation.
Migrated from https://github.com/andysh-uk/blue-twilight/issues/29